{
  "openapi": "3.0.0",
  "info": {
    "description": "## Authentication\n\nMost of the API calls that Horizon uses require you to be authenticated to the API.\nThe first authentication can either be done through the use of an X509 certificate or using credentials of a local account, but every single API call afterward will need to bear the authentication information nonetheless.\nRegardless of the chosen authentication method, the authorization used must have sufficient permissions to perform the desired operation.\n\n### Authenticating using API-ID and API-KEY\n\nThis method of authentication requires you to send your Horizon local account credentials as HTTP headers.\nTo check whether the credentials are correct, you can perform a *GET* request on `/api/v1/security/principals/self` and check for the response status :\n```shell\n $ curl https://horizon.evertrust.fr/api/v1/security/principals/self -H \"X-API-ID: administrator\" -H \"X-API-KEY: horizon\" -H \"Accept: application/json\"\n```\n\nPossible responses are:\n\n| HTTP Response code | Additional information                                                   |\n|--------------------|--------------------------------------------------------------------------|\n| 200                | The login information were correct                                       |\n| 401                | Authentication error, please refer to the response body for more details |\n\n### Authenticating using an X509 certificate\n\nThis method of authentication requires to have a created authorization based on an X509 certificate that has the clientAuth EKU.\nIt also requires you to have imported the CA that issued this certificate in Horizon and turning on the \"Trusted for client authentication\" switch on that CA.\nYou must then present the certificate on the request you are performing.\n\nTo check for the authentication, you can perform a *GET* request on `/api/v1/security/principals/self` :\n\n```shell\n $ curl https://horizon.evertrust.fr/api/v1/security/principals/self --cert horizon-login-dev-guide.pem --key horizon-login-dev-guide.key -H \"Accept: application/json\"\n```\n\nPossible responses are:\n\n| HTTP Response code | Additional information                                                   |\n|--------------------|--------------------------------------------------------------------------|\n| 200                | The login information were correct                                       |\n| 401                | Authentication error, please refer to the response body for more details |\n\n### Handling next authentications using the Play Session\n\nOnce the first authentication is done, the API generates a cookie called \"PLAY_SESSION\".\nThis cookie holds the authentication information that was used to make the first login (using either previously mentioned method). To save its value for later use, just append the _-c cookies.txt_ to either of the previous curl requests.\nInstead of using the credentials as headers or passing the certificate at each API call, you can use the cookie :\n\n```shell\n $ curl https://horizon.evertrust.fr/api/v1/security/principals/self -b cookies.txt -H \"Accept: application/json\"\n```\n\n### Handling CSRF Token \n\n\nOur api are used by a frontend and require a CSRF protection.\nA CSRF token validation is needed when all of the following are true:\n\n- The request method is not GET, HEAD or OPTIONS.\n- The request has one or more Cookie or Authorization headers.\n\nReceiving the following response with valid credentials can mean that your request has failed the CSRF token validation:\n\n```json\n{\n    \"error\": \"SEC-AUTH-002\",\n    \"message\": \"Invalid credentials or principal does not exist\",\n    \"title\": \"Invalid credentials or principal does not exist\",\n    \"status\": 401\n}\n```\n\nTo avoid the CSRF token validation in api usage:\n- Authentication using API-ID and API-KEY headers should be prioritized as http basic authentication results in the creation of an Authorization header. \n- Avoid the use of cookies as api usage does not require them.\n\nIf you cannot avoid those cases, the following procedure explains how to handle the CSRF token validation. \n\nFirst you will have to retrieve a valid cookie CSRF token from the server.\n\n```shell\n $ curl https://horizon.evertrust.fr/api/v1/security/principals/self --header 'X-API-ID:administrator' --header 'X-API-KEY:horizon' -c cookies.txt\n```\n\nOnce done the file `cookies.txt` should have two entries:\n- A play session \n- A CSRF token:\n\n```text\nlocalhost\tFALSE\t/\tFALSE\t0\tcsrf-token\t456aa18162e8736047dbd878617283aa361cd83e-1708941483170-da503a15304a666a96748f5d\nlocalhost\tFALSE\t/\tFALSE\t1708942383\tPLAY_SESSION\teyJhbGciOiJIUzI1NiJ9.eyJkYXRhIjp7ImlkZW50aWZpZXIiOiJhZG1pbmlzdHJhdG9yIiwibmFtZSI6Ikhvcml6b24gQWRtaW5pc3RyYXRvciIsImlkcFR5cGUiOiJMb2NhbCIsImlkcE5hbWUiOiJsb2NhbCJ9LCJleHAiOjE3MDg5NDIzODMsIm5iZiI6MTcwODk0MTQ4MywiaWF0IjoxNzA4OTQxNDgzfQ.79xRjdGhaVv_5mM8bpkLgcL78QCEWu08zgthP_dt9Pc\n```\n\nTo successfully authenticate to the server, both the csrf-token cookie and a `csrf-token` header containing the cookie content should be defined.\n\nSending a POST request using cookies without the `csrf-token` header will result in the forbidden html page:\n\n```shell\ncurl --location 'localhost:9000/api/v1/certificate/labels' \\\n--header 'X-API-ID: administrator' \\\n--header 'X-API-KEY: evertrust' \\\n--header 'Content-Type: application/json' \\\n-b cookies.txt \\\n--data '{\n    \"name\": \"NEW_LABEL\",\n    \"displayName\" : [],\n    \"description\": []\n}'\n```\n\nA valid authentication also copies the content in the `csrf-token` header:\n\n```shell\ncurl --location 'localhost:9000/api/v1/certificate/labels' \\\n--header 'X-API-ID: administrator' \\\n--header 'X-API-KEY: evertrust' \\\n--header 'csrf-token: 456aa18162e8736047dbd878617283aa361cd83e-1708941483170-da503a15304a666a96748f5d' \\\n--header 'Content-Type: application/json' \\\n--data '{\n    \"name\": \"NEW_LABEL\",\n    \"regex\": null,\n    \"displayName\" : [],\n    \"description\": []\n}'\n```",
    "title": "Horizon API",
    "version": "2.9.0"
  },
  "servers": [
    {
      "url": "http://localhost:9000",
      "description": "local server"
    }
  ],
  "security": [
    {
      "apiId": [],
      "apiKey": []
    },
    {
      "cookieAuth": []
    }
  ],
  "tags": [
    {
      "name": "automation.execution",
      "x-displayName": "Automation execution",
      "description": "Automation execution API"
    },
    {
      "name": "automation.policy",
      "x-displayName": "Automation policy",
      "description": "Automation policy API"
    },
    {
      "name": "automation.lifecycle",
      "x-displayName": "Automation lifecycle",
      "description": "Automation lifecycle API"
    },
    {
      "name": "certificate.analytics",
      "x-displayName": "Certificate analytics",
      "description": "Certificate analytics API (Get info, force update and flush)"
    },
    {
      "name": "event.analytics",
      "x-displayName": "Event analytics",
      "description": "Event analytics API (Get info, force update and flush)"
    },
    {
      "name": "discovery.event.analytics",
      "x-displayName": "Discovery event analytics",
      "description": "Discovery event analytics API (Get info, force update and flush)"
    },
    {
      "name": "adoc",
      "x-displayName": "Configuration cookbook",
      "description": "The configuration cookbook APIs allows the user to export in a human-readable format all the configurations applied to the Horizon instance."
    },
    {
      "name": "ca",
      "x-displayName": "Certificate Authorities",
      "description": "CA API"
    },
    {
      "name": "cache",
      "x-displayName": "Cache CRL",
      "description": "Cache API"
    },
    {
      "name": "certificate.label",
      "x-displayName": "Certificate Labels",
      "description": "Certificate Label API"
    },
    {
      "name": "certificate.grading.policy",
      "x-displayName": "Certificate Grading Policies",
      "description": "Certificate Grading Policy API"
    },
    {
      "name": "certificate.grading.ruleset",
      "x-displayName": "Certificate Grading Rulesets",
      "description": "Certificate Grading Ruleset API"
    },
    {
      "name": "certificate.profile",
      "x-displayName": "Certificate Profiles",
      "description": "Certificate Profile API"
    },
    {
      "name": "certificate",
      "x-displayName": "Certificates",
      "description": "The Certificate object represents a certificate that is known to Horizon. Horizon can manage its compliance with your corporate policies, and can also manage its lifecycle. A certificate can either be issued through Horizon or be discovered by a third-party client, such as horizon-cli. You won't be able to directly issue certificates through this API, but you'll need to use the Requests API instead."
    },
    {
      "name": "discovery.campaign",
      "x-displayName": "Discovery Campaigns",
      "description": "A discovery campaign is an object that is required to perform any kind of discovery operation. It holds all the discovery metadata of the certificates that were discovered under a specific campaign."
    },
    {
      "name": "discovery.event",
      "x-displayName": "Discovery Events",
      "description": "A discovery event is a specific event type that can only be raised through the discovery workflow."
    },
    {
      "name": "discovery.feed",
      "x-displayName": "Discovery Feed",
      "description": "The discovery feed allows a discovery client (like Horizon CLI) to push certificates into Horizon alongside with discovery data, let it be an unmanaged certificate that we want to be aware of or a managed one that we want to track the use of."
    },
    {
      "name": "license",
      "x-displayName": "License",
      "description": "License API"
    },
    {
      "name": "pki.connector",
      "x-displayName": "PKI Connectors",
      "description": "PKI - Connector API"
    },
    {
      "name": "pki.queue",
      "x-displayName": "PKI Queues",
      "description": "PKI - Queue API"
    },
    {
      "name": "http.httpproxy",
      "x-displayName": "HTTP Proxies",
      "description": "HTTP Proxy API"
    },
    {
      "name": "system.configuration",
      "x-displayName": "System configuration",
      "description": "System configuration handle global settings for Horizon"
    },
    {
      "name": "thirdparty.connector",
      "x-displayName": "Third Party Connectors",
      "description": "Third Party Connector API"
    },
    {
      "name": "request",
      "x-displayName": "Requests",
      "description": "Requests are how certificates are enrolled through Horizon. A request is linked to a profile, which specifies a PKI connector that will be used to issue the certificate, and grants rights to users to issue certificates on the given profile.\n\n## Requests lifecycle\n\nAll Horizon requests share the same lifecycle steps :\n\n1. The request is submitted by the requester;\n1. If the requester has direct permissions on the considered workflow, the request is immediately completed;\n1. If the requester only has request permissions on the considered workflow, the request is set as Pending;\n1. While the request is pending, the requester may cancel the request, putting it in the Canceled state;\n1. While the request is pending, the approver may deny the request, putting it in the Denied state;\n1. While the request is pending, the approver may accept the request, putting it in the Approved state;\n1. If the request concerns an EST or a SCEP challenge, the request stays Approved until the challenge is used, at which point it will be put in the Completed state;\n1. Otherwise, the request immediately goes from Approved to Completed.\n"
    },
    {
      "name": "event",
      "x-displayName": "Events",
      "description": "Event API"
    },
    {
      "name": "scheduler.task",
      "x-displayName": "Scheduled Tasks",
      "description": "Scheduled tasks allow operations to be run on a recurring schedule using CRON expressions. Lifecycle or reporting schedule tasks can be created."
    },
    {
      "name": "security.identity.local",
      "x-displayName": "Local Identities",
      "description": "A local identity represents a local Horizon account, than will both be able to use the Horizon APIs and log in to the web UI. You might use local identities for identifying your users but also use them as technical service accounts, for example to allow a third-party client to perform actions on Horizon."
    },
    {
      "name": "security.identity.provider",
      "x-displayName": "Identity Providers",
      "description": "An Identity Provider represents a way to authenticate to Horizon. Since Horizon supports multiple authentication methods (Local account, X509, OpenID connect), it can be configured to enable or disable several of them."
    },
    {
      "name": "security.passwordpolicy",
      "x-displayName": "Password Policies",
      "description": "A password policy defines the rules that must be enforced for the password management in Horizon. They are used to enforce constraints on the local account, the PKCS#12 and the challenge passwords, and their generation."
    },
    {
      "name": "security.principal",
      "x-displayName": "Principals",
      "description": "A security principal represents a user in Horizon. It can be used to grant permissions to users, and to assign roles and teams to them."
    },
    {
      "name": "security.principalinfo",
      "x-displayName": "Principal Information",
      "description": "Security - Principal Information API"
    },
    {
      "name": "security.role",
      "x-displayName": "Roles",
      "description": "Use roles to apply a group of permissions to multiple users without having to assign each permission individually."
    },
    {
      "name": "security.team",
      "x-displayName": "Teams",
      "description": "Teams are a way to enhance the ownership capabilities of the product. They are essentially a group of principals that own objects (certificates, requests) and do not grant any permission per se."
    },
    {
      "name": "security.tenant",
      "x-displayName": "Tenants",
      "description": "Security - Tenants API"
    },
    {
      "name": "team",
      "x-displayName": "RA Teams",
      "description": "This API, available in the RA, allows team managers to manage team members."
    },
    {
      "name": "security.scimprofile",
      "x-displayName": "Scim Profiles",
      "description": "Scim profiles are used to enabled the mapping between Scim and Horizon."
    },
    {
      "name": "trigger",
      "x-displayName": "Triggers",
      "description": "Triggers are actions executed on an event.\n## Triggers and notifications \n These actions includes two categories:\n- third party synchronization\n- notifications\n\nWhile being very different on the functional side, these two categories follow the same behavior and are both configured using this API.\n"
    },
    {
      "name": "trustchain",
      "x-displayName": "Trust Chains",
      "description": "Trust chain API"
    },
    {
      "name": "wcce",
      "x-displayName": "WCCE",
      "description": "WCCE Module API"
    },
    {
      "name": "templatestring",
      "x-displayName": "Computation rules",
      "description": "Computation rules' testing API"
    },
    {
      "name": "rfc5280",
      "x-displayName": "Decoding API (RFC5280)",
      "description": "API to decode RFC5280 objects (certificates, CRLs, CSRs, ...)"
    },
    {
      "name": "security.credentials",
      "x-displayName": "Credentials",
      "description": "Credentials regroup all third parties authentication secrets for secure and easy management."
    },
    {
      "name": "datasource",
      "x-displayName": "Datasources",
      "description": "Datasources allow data to be retrieved from external sources for various usages."
    },
    {
      "name": "datasource.flow",
      "x-displayName": "Datasource Flows",
      "description": "Datasource Flows allow to schedule datasource execution."
    },
    {
      "name": "report.csv",
      "x-displayName": "Report CSV",
      "description": "Manage reports generated by link reports scheduled tasks"
    },
    {
      "name": "configurations.export",
      "x-displayName": "Configuration import/export",
      "description": "Export and import configuration from one instance to another."
    },
    {
      "name": "archive",
      "x-displayName": "Archive",
      "description": "Archive items to parquet files."
    }
  ],
  "paths": {
    "/api/v1/adoc": {
      "get": {
        "description": "Generate the configuration cookbook in adoc format based on the principal administration permission(s)",
        "operationId": "adoc.get",
        "responses": {
          "200": {
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "description": "The Configuration cookbook"
          },
          "401": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth003"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth004"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth005"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth006"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth007"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth008"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth009"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Unauthorized access"
          },
          "403": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecPerm001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic004"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Forbidden action"
          },
          "500": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Adoc001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Internal Server error"
          }
        },
        "summary": "Generate the configuration cookbook in adoc format",
        "tags": [
          "adoc"
        ]
      }
    },
    "/api/v1/automation/executions": {
      "get": {
        "description": "List the existing execution policies",
        "operationId": "automation.execution.list",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "items": {
                    "$ref": "#/components/schemas/ExecutionPolicyResponse"
                  },
                  "type": "array"
                }
              }
            },
            "description": "Execution Policy list"
          },
          "204": {
            "description": "No execution policy defined or insufficient permissions"
          },
          "401": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth003"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth004"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth005"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth006"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth007"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth008"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth009"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Unauthorized request"
          },
          "403": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecPerm001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic004"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Forbidden action"
          },
          "500": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/ExecutionPolicy001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Internal Server error"
          }
        },
        "summary": "List the existing execution policies",
        "tags": [
          "automation.execution"
        ]
      },
      "post": {
        "description": "Register a new execution policy",
        "operationId": "automation.execution.add",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ExecutionPolicy"
              }
            }
          },
          "description": "Execution policy to register",
          "required": true
        },
        "responses": {
          "201": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ExecutionPolicyResponse"
                }
              }
            },
            "description": "Execution policy successfully registered"
          },
          "400": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/ExecutionPolicy002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            400
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/ExecutionPolicy004"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            400
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Bad Request"
          },
          "401": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth003"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth004"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth005"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth006"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth007"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth008"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth009"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Unauthorized request"
          },
          "403": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecPerm001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic004"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Forbidden action"
          },
          "500": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/ExecutionPolicy001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Internal Server error"
          }
        },
        "summary": "Register a new execution policy",
        "tags": [
          "automation.execution"
        ]
      },
      "put": {
        "description": "Update an existing execution policy",
        "operationId": "automation.execution.update",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ExecutionPolicy"
              }
            }
          },
          "description": "Execution policy to update",
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ExecutionPolicyResponse"
                }
              }
            },
            "description": "Execution policy successfully updated"
          },
          "400": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/ExecutionPolicy002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            400
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Bad Request"
          },
          "401": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth003"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth004"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth005"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth006"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth007"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth008"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth009"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Unauthorized request"
          },
          "403": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecPerm001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic004"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Forbidden action"
          },
          "404": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/ExecutionPolicy003"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            404
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Not Found"
          },
          "500": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/ExecutionPolicy001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Internal Server error"
          }
        },
        "summary": "Update an existing execution policy",
        "tags": [
          "automation.execution"
        ]
      }
    },
    "/api/v1/automation/executions/{name}": {
      "delete": {
        "description": "Delete an existing execution policy based on its name",
        "operationId": "automation.execution.delete",
        "parameters": [
          {
            "in": "path",
            "name": "name",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "Execution policy successfully deleted"
          },
          "401": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth003"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth004"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth005"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth006"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth007"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth008"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth009"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Unauthorized request"
          },
          "403": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecPerm001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/ExecutionPolicy005"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic004"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Forbidden action"
          },
          "404": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/ExecutionPolicy003"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            404
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Not Found"
          },
          "500": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/ExecutionPolicy001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Internal Server error"
          }
        },
        "summary": "Delete an existing execution policy",
        "tags": [
          "automation.execution"
        ]
      },
      "get": {
        "description": "Retrieve an existing execution policy based on its name",
        "operationId": "automation.execution.get",
        "parameters": [
          {
            "in": "path",
            "name": "name",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ExecutionPolicyResponse"
                }
              }
            },
            "description": "The execution policy"
          },
          "401": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth003"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth004"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth005"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth006"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth007"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth008"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth009"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Unauthorized request"
          },
          "403": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecPerm001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic004"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Forbidden action"
          },
          "404": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/ExecutionPolicy003"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            404
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Not Found"
          },
          "500": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/ExecutionPolicy001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Internal Server error"
          }
        },
        "summary": "Retrieve an existing execution policy",
        "tags": [
          "automation.execution"
        ]
      }
    },
    "/api/v1/automation/policies": {
      "get": {
        "description": "List the existing automation policies",
        "operationId": "automation.policy.list",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "items": {
                    "$ref": "#/components/schemas/AutomationPolicyResponse"
                  },
                  "type": "array"
                }
              }
            },
            "description": "Automation Policy list"
          },
          "204": {
            "description": "No automation policy defined"
          },
          "401": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth003"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth004"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth005"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth006"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth007"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth008"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth009"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Unauthorized request"
          },
          "403": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecPerm001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic004"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Forbidden action"
          },
          "500": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/AutomationPolicy001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Internal Server error"
          }
        },
        "summary": "List the existing automation policies",
        "tags": [
          "automation.policy"
        ]
      },
      "post": {
        "description": "Register a new automation policy",
        "operationId": "automation.policy.add",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AutomationPolicy"
              }
            }
          },
          "description": "Automation policy to register",
          "required": true
        },
        "responses": {
          "201": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AutomationPolicyResponse"
                }
              }
            },
            "description": "Automation policy successfully registered"
          },
          "400": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/AutomationPolicy002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            400
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/AutomationPolicy004"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            400
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Bad Request"
          },
          "401": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth003"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth004"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth005"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth006"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth007"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth008"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth009"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Unauthorized request"
          },
          "403": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecPerm001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic004"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Forbidden action"
          },
          "500": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/AutomationPolicy001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Internal Server error"
          }
        },
        "summary": "Register a new automation policy",
        "tags": [
          "automation.policy"
        ]
      },
      "put": {
        "description": "Update an existing automation policy",
        "operationId": "automation.policy.update",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AutomationPolicy"
              }
            }
          },
          "description": "Automation policy to update",
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AutomationPolicyResponse"
                }
              }
            },
            "description": "Automation policy successfully updated"
          },
          "400": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/AutomationPolicy002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            400
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Bad Request"
          },
          "401": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth003"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth004"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth005"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth006"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth007"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth008"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth009"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Unauthorized request"
          },
          "403": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecPerm001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic004"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Forbidden action"
          },
          "404": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/AutomationPolicy003"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            404
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Not Found"
          },
          "500": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/AutomationPolicy001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Internal Server error"
          }
        },
        "summary": "Update an existing automation policy",
        "tags": [
          "automation.policy"
        ]
      }
    },
    "/api/v1/automation/policies/{name}": {
      "delete": {
        "description": "Delete an existing automation policy based on its name",
        "operationId": "automation.policy.delete",
        "parameters": [
          {
            "in": "path",
            "name": "name",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "Automation policy successfully deleted"
          },
          "401": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth003"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth004"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth005"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth006"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth007"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth008"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth009"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Unauthorized request"
          },
          "403": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecPerm001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/AutomationPolicy005"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic004"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Forbidden action"
          },
          "404": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/AutomationPolicy003"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            404
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Not Found"
          },
          "500": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/AutomationPolicy001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Internal Server error"
          }
        },
        "summary": "Delete an existing automation policy",
        "tags": [
          "automation.policy"
        ]
      },
      "get": {
        "description": "Retrieve an existing automation policy based on its name",
        "operationId": "automation.policy.get",
        "parameters": [
          {
            "in": "path",
            "name": "name",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AutomationPolicyResponse"
                }
              }
            },
            "description": "The automation policy"
          },
          "401": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth003"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth004"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth005"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth006"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth007"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth008"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth009"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Unauthorized request"
          },
          "403": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecPerm001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic004"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Forbidden action"
          },
          "404": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/AutomationPolicy003"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            404
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Not Found"
          },
          "500": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/AutomationPolicy001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Internal Server error"
          }
        },
        "summary": "Retrieve an existing automation policy",
        "tags": [
          "automation.policy"
        ]
      }
    },
    "/api/v1/automation/lifecycle/{name}/verify": {
      "get": {
        "description": "Verify the certificate against the Automation policy",
        "operationId": "automation.policy.lifecycle.verify",
        "parameters": [
          {
            "in": "path",
            "name": "name",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AutomationReportResponse"
                }
              }
            },
            "description": "The certificate does not comply with the Automation policy"
          },
          "204": {
            "description": "The certificate is compliant with the Automation policy"
          },
          "400": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth010"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            400
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Bad Request"
          },
          "403": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic004"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth003"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth004"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth005"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth006"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Forbidden action"
          },
          "404": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/AutomationPolicy002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            404
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/AutomationPolicy003"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            404
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Not Found"
          },
          "500": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/AutomationPolicy001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Internal Server error"
          }
        },
        "summary": "Verify the certificate against the Automation policy",
        "tags": [
          "automation.lifecycle"
        ]
      }
    },
    "/api/v1/automation/lifecycle/{name}": {
      "get": {
        "description": "Retrieve the enroll materials needed for the profile associated with the automation policy",
        "operationId": "automation.policy.lifecycle.get",
        "parameters": [
          {
            "in": "path",
            "name": "name",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "201": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "$ref": "#/components/schemas/AcmeExternalInitParameters"
                    },
                    {
                      "$ref": "#/components/schemas/AcmeInitParameters"
                    },
                    {
                      "$ref": "#/components/schemas/EstInitParameters"
                    },
                    {
                      "$ref": "#/components/schemas/ScepInitParameters"
                    },
                    {
                      "$ref": "#/components/schemas/WebraInitParameters"
                    }
                  ]
                }
              }
            },
            "description": "Automation policy enrolment materials successfully retrieved"
          },
          "400": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/AutomationPolicy002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            400
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/AutomationPolicy004"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            400
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Bad Request"
          },
          "401": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth003"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth004"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth005"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth006"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth007"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth008"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth009"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Unauthorized request"
          },
          "403": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecPerm001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic004"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Forbidden action"
          },
          "500": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/AutomationPolicy001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Internal Server error"
          }
        },
        "summary": "Retrieve the enroll materials",
        "tags": [
          "automation.lifecycle"
        ]
      }
    },
    "/api/v1/analytics/certificates": {
      "get": {
        "description": "Retrieve the certificate analytics status",
        "operationId": "analytics.certificate.get",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "items": {
                    "type": "object",
                    "title": "Analytics status",
                    "properties": {
                      "ready": {
                        "description": "If the certificate analytics is ready to use",
                        "type": "boolean"
                      },
                      "count": {
                        "description": "The number of certificate synchronized",
                        "type": "integer",
                        "format": "int64"
                      },
                      "maxLastModification": {
                        "readOnly": true,
                        "nullable": true,
                        "format": "epoch",
                        "type": "integer",
                        "example": 1609459200000,
                        "description": "The last modification date synchronized"
                      },
                      "error": {
                        "readOnly": true,
                        "nullable": true,
                        "type": "string",
                        "description": "If an error happened during the synchronization process"
                      }
                    },
                    "required": [
                      "ready",
                      "count"
                    ]
                  }
                }
              }
            },
            "description": "The status of the certificate analytics"
          },
          "401": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth003"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth004"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth005"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth006"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth007"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth008"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth009"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Unauthorized action"
          },
          "403": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecPerm001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Analytics002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic004"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Forbidden action"
          },
          "500": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Analytics001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Internal Server error"
          }
        },
        "summary": "Retrieve the certificate analytics status",
        "tags": [
          "certificate.analytics"
        ]
      },
      "patch": {
        "description": "Schedule a new certificate analytics synchronization",
        "operationId": "analytics.certificate.update",
        "responses": {
          "204": {
            "description": "Certificate analytics synchronization successfully scheduled"
          },
          "401": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth003"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth004"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth005"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth006"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth007"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth008"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth009"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Unauthorized request"
          },
          "403": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecPerm001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic004"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Analytics002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Forbidden action"
          },
          "500": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Analytics001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Internal Server error"
          }
        },
        "summary": "Schedule a new certificate analytics synchronization",
        "tags": [
          "certificate.analytics"
        ]
      },
      "delete": {
        "description": "Flush and restart a certificate analytics synchronization. The certificate analytics will be disabled until the synchronization is done",
        "operationId": "analytics.certificate.flush",
        "responses": {
          "204": {
            "description": "Certificate analytics successfully flushed"
          },
          "401": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth003"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth004"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth005"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth006"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth007"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth008"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth009"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Unauthorized request"
          },
          "403": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecPerm001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic004"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Analytics002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Forbidden action"
          },
          "500": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Analytics001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Internal Server error"
          }
        },
        "summary": "Flush certificate analytics synchronization",
        "tags": [
          "certificate.analytics"
        ]
      }
    },
    "/api/v1/analytics/events": {
      "get": {
        "description": "Retrieve the event analytics status",
        "operationId": "analytics.event.get",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "items": {
                    "type": "object",
                    "title": "Analytics status",
                    "properties": {
                      "ready": {
                        "description": "If the event analytics is ready to use",
                        "type": "boolean"
                      },
                      "count": {
                        "description": "The number of event synchronized",
                        "type": "integer",
                        "format": "int64"
                      },
                      "_id": {
                        "readOnly": true,
                        "allOf": [
                          {
                            "$ref": "#/components/schemas/Id"
                          }
                        ],
                        "description": "The last event id synchronized"
                      },
                      "error": {
                        "readOnly": true,
                        "nullable": true,
                        "type": "string",
                        "description": "If an error happened during the synchronization process"
                      }
                    },
                    "required": [
                      "ready",
                      "count"
                    ]
                  }
                }
              }
            },
            "description": "The status of the event analytics"
          },
          "401": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth003"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth004"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth005"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth006"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth007"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth008"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth009"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Unauthorized action"
          },
          "403": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecPerm001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Analytics003"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic004"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Forbidden action"
          },
          "500": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Analytics001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Internal Server error"
          }
        },
        "summary": "Retrieve the event analytics status",
        "tags": [
          "event.analytics"
        ]
      },
      "patch": {
        "description": "Schedule a new event analytics synchronization",
        "operationId": "analytics.event.update",
        "responses": {
          "204": {
            "description": "Event analytics synchronization successfully scheduled"
          },
          "401": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth003"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth004"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth005"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth006"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth007"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth008"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth009"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Unauthorized request"
          },
          "403": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecPerm001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic004"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Analytics003"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Forbidden action"
          },
          "500": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Analytics001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Internal Server error"
          }
        },
        "summary": "Schedule a new event analytics synchronization",
        "tags": [
          "event.analytics"
        ]
      },
      "delete": {
        "description": "Flush and restart a event analytics synchronization. The event analytics will be disabled until the synchronization is done",
        "operationId": "analytics.event.flush",
        "responses": {
          "204": {
            "description": "Event analytics successfully flushed"
          },
          "401": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth003"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth004"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth005"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth006"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth007"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth008"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth009"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Unauthorized request"
          },
          "403": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecPerm001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic004"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Analytics003"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Forbidden action"
          },
          "500": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Analytics001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Internal Server error"
          }
        },
        "summary": "Flush event analytics synchronization",
        "tags": [
          "event.analytics"
        ]
      }
    },
    "/api/v1/analytics/discovery/events": {
      "get": {
        "description": "Retrieve the discovery event analytics status",
        "operationId": "analytics.discovery.event.get",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "items": {
                    "type": "object",
                    "title": "Analytics status",
                    "properties": {
                      "ready": {
                        "description": "If the discovery event analytics is ready to use",
                        "type": "boolean"
                      },
                      "count": {
                        "description": "The number of discovery event synchronized",
                        "type": "integer",
                        "format": "int64"
                      },
                      "_id": {
                        "readOnly": true,
                        "allOf": [
                          {
                            "$ref": "#/components/schemas/Id"
                          }
                        ],
                        "description": "The last discovery event id synchronized"
                      },
                      "error": {
                        "readOnly": true,
                        "nullable": true,
                        "type": "string",
                        "description": "If an error happened during the synchronization process"
                      }
                    },
                    "required": [
                      "ready",
                      "count"
                    ]
                  }
                }
              }
            },
            "description": "The status of the discovery event analytics"
          },
          "401": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth003"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth004"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth005"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth006"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth007"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth008"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth009"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Unauthorized action"
          },
          "403": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecPerm001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Analytics003"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic004"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Forbidden action"
          },
          "500": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Analytics001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Internal Server error"
          }
        },
        "summary": "Retrieve the discovery event analytics status",
        "tags": [
          "discovery.event.analytics"
        ]
      },
      "patch": {
        "description": "Schedule a new discovery event analytics synchronization",
        "operationId": "analytics.discovery.event.update",
        "responses": {
          "204": {
            "description": "Discovery event analytics synchronization successfully scheduled"
          },
          "401": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth003"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth004"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth005"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth006"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth007"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth008"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth009"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Unauthorized request"
          },
          "403": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecPerm001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic004"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Analytics003"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Forbidden action"
          },
          "500": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Analytics001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Internal Server error"
          }
        },
        "summary": "Schedule a new discovery event analytics synchronization",
        "tags": [
          "discovery.event.analytics"
        ]
      },
      "delete": {
        "description": "Flush and restart a discovery event analytics synchronization. The discovery event analytics will be disabled until the synchronization is done",
        "operationId": "analytics.discovery.event.flush",
        "responses": {
          "204": {
            "description": "Discovery event analytics successfully flushed"
          },
          "401": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth003"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth004"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth005"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth006"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth007"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth008"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth009"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Unauthorized request"
          },
          "403": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecPerm001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic004"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Analytics003"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Forbidden action"
          },
          "500": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Analytics001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Internal Server error"
          }
        },
        "summary": "Flush discovery event analytics synchronization",
        "tags": [
          "discovery.event.analytics"
        ]
      }
    },
    "/api/v1/archives": {
      "get": {
        "summary": "List the existing archives",
        "description": "List the existing archives",
        "operationId": "archive.list",
        "tags": [
          "archive"
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "items": {
                    "$ref": "#/components/schemas/ArchiveResponses"
                  },
                  "type": "array"
                }
              }
            },
            "description": "Archive list"
          },
          "204": {
            "description": "No archive defined"
          },
          "401": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth003"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth004"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth005"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth006"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth007"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth008"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth009"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Unauthorized request"
          },
          "403": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecPerm001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic004"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Forbidden action"
          },
          "500": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Archive001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Internal Server error"
          }
        }
      },
      "post": {
        "description": "Register a new archive",
        "operationId": "archive.add",
        "summary": "Register a new archive",
        "tags": [
          "archive"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Archives"
              }
            }
          },
          "description": "Archive to register",
          "required": true
        },
        "responses": {
          "201": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ArchiveResponses"
                }
              }
            },
            "description": "Archive successfully registered"
          },
          "400": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Archive002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            400
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Archive004"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            400
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Bad Request"
          },
          "401": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth003"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth004"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth005"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth006"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth007"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth008"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth009"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Unauthorized request"
          },
          "403": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecPerm001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic004"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Forbidden action"
          },
          "500": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Archive001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Internal Server error"
          }
        }
      }
    },
    "/api/v1/archives/{name}/download": {
      "get": {
        "description": "Download an existing archive based on its name",
        "operationId": "archive.download",
        "summary": "Download an existing archive",
        "tags": [
          "archive"
        ],
        "parameters": [
          {
            "in": "path",
            "name": "name",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/vnd.apache.parquet": {
                "schema": {
                  "format": "binary",
                  "type": "string",
                  "description": "The parquet file that was generated for this archive"
                }
              }
            },
            "description": "The archive parquet file"
          },
          "401": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth003"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth004"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth005"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth006"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth007"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth008"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth009"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Unauthorized request"
          },
          "403": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Archive008"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecPerm001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic004"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Forbidden action"
          },
          "404": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Archive003"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            404
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Not Found"
          },
          "500": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Archive001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Internal Server error"
          }
        }
      }
    },
    "/api/v1/archives/{name}/cancel": {
      "get": {
        "description": "Cancel a completed archive based on its name.\nThis operation is only available on completed archives that were not yet purged.\n",
        "operationId": "archive.cancel",
        "summary": "Cancel a completed archive",
        "tags": [
          "archive"
        ],
        "parameters": [
          {
            "in": "path",
            "name": "name",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "Cancellation was queued"
          },
          "401": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth003"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth004"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth005"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth006"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth007"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth008"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth009"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Unauthorized request"
          },
          "403": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Archive007"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecPerm001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic004"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Forbidden action"
          },
          "404": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Archive003"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            404
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Not Found"
          },
          "500": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Archive001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Internal Server error"
          }
        }
      }
    },
    "/api/v1/archives/{name}/retry": {
      "get": {
        "description": "Retry a failed archive based on its name.\nThis operation is only available on archives that failed to generate the file.\n",
        "operationId": "archive.retry",
        "summary": "Retry a failed archive",
        "tags": [
          "archive"
        ],
        "parameters": [
          {
            "in": "path",
            "name": "name",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "Retry was queued"
          },
          "401": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth003"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth004"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth005"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth006"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth007"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth008"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth009"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Unauthorized request"
          },
          "403": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Archive006"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecPerm001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic004"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Forbidden action"
          },
          "404": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Archive003"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            404
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Not Found"
          },
          "500": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Archive001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Internal Server error"
          }
        }
      }
    },
    "/api/v1/archives/count": {
      "post": {
        "description": "Get the estimated count of the items that will be archived by the given archive",
        "operationId": "archive.count",
        "summary": "Get an estimated count of an archive content",
        "tags": [
          "archive"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Archives"
              }
            }
          },
          "description": "Archive to count",
          "required": true
        },
        "responses": {
          "201": {
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "count": {
                      "type": "integer",
                      "description": "The number of items affected"
                    }
                  },
                  "required": [
                    "count"
                  ]
                }
              }
            },
            "description": "The item count"
          },
          "400": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Archive002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            400
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Bad Request"
          },
          "401": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth003"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth004"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth005"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth006"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth007"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth008"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth009"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Unauthorized request"
          },
          "403": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecPerm001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic004"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Forbidden action"
          },
          "500": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Archive001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Internal Server error"
          }
        }
      }
    },
    "/api/v1/archives/{name}": {
      "get": {
        "description": "Retrieve an existing archive based on its name",
        "operationId": "archive.get",
        "summary": "Retrieve an existing archive",
        "tags": [
          "archive"
        ],
        "parameters": [
          {
            "in": "path",
            "name": "name",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ArchiveResponses"
                }
              }
            },
            "description": "The archive"
          },
          "401": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth003"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth004"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth005"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth006"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth007"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth008"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth009"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Unauthorized request"
          },
          "403": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecPerm001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic004"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Forbidden action"
          },
          "404": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Archive003"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            404
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Not Found"
          },
          "500": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Archive001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Internal Server error"
          }
        }
      },
      "delete": {
        "description": "Delete an existing archive based on its name",
        "operationId": "archive.delete",
        "summary": "Delete an existing archive",
        "tags": [
          "archive"
        ],
        "parameters": [
          {
            "in": "path",
            "name": "name",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "Archive successfully deleted"
          },
          "400": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Archive005"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            400
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Bad request"
          },
          "401": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth003"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth004"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth005"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth006"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth007"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth008"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth009"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Unauthorized request"
          },
          "403": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecPerm001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/ExecutionPolicy005"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic004"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Forbidden action"
          },
          "404": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Archive003"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            404
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Not Found"
          },
          "500": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Archive001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Internal Server error"
          }
        }
      }
    },
    "/api/v1/caches/crls": {
      "get": {
        "description": "List the CRL cache info",
        "operationId": "cache.crl.list",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "items": {
                    "$ref": "#/components/schemas/CachedCRLInfosResponse"
                  },
                  "type": "array"
                }
              }
            },
            "description": "Retrieved CRL info"
          },
          "204": {
            "description": "No CRL Cache or insufficient permissions"
          },
          "401": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth003"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth004"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth005"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth006"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth007"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth008"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth009"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Unauthorized request"
          },
          "403": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecPerm001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic004"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Forbidden action"
          },
          "500": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Cache001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Internal Server error"
          }
        },
        "summary": "List the CRL cache info",
        "tags": [
          "cache"
        ]
      }
    },
    "/api/v1/caches/crls/{ca}": {
      "get": {
        "description": "Retrieve the CRL cache info for a specific certificate authority based on its name",
        "operationId": "cache.crl.get",
        "parameters": [
          {
            "in": "path",
            "name": "ca",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CachedCRLInfosResponse"
                }
              }
            },
            "description": "Retrieve CRL info for the specified Certificate Authority"
          },
          "204": {
            "description": "No CRL Cache for the specified Certificate Authority"
          },
          "401": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth003"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth004"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth005"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth006"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth007"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth008"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth009"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Unauthorized request"
          },
          "403": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecPerm001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic004"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Forbidden action"
          },
          "404": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Cache002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            404
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Not Found"
          },
          "500": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Cache001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Internal Server error"
          }
        },
        "summary": "Retrieve the CRL cache info for a specific certificate authority",
        "tags": [
          "cache"
        ]
      }
    },
    "/api/v1/cas": {
      "get": {
        "description": "List the existing certificate authorities",
        "operationId": "ca.list",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "items": {
                    "$ref": "#/components/schemas/CertificateAuthorityResponse"
                  },
                  "type": "array"
                }
              }
            },
            "description": "Certificate authority list"
          },
          "204": {
            "description": "No certificate authority defined or insufficient permissions"
          },
          "401": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth003"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth004"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth005"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth006"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth007"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth008"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth009"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Unauthorized request"
          },
          "403": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecPerm001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic004"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Forbidden action"
          },
          "500": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Ca001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Internal Server error"
          }
        },
        "summary": "List the existing certificate authorities",
        "tags": [
          "ca"
        ]
      },
      "post": {
        "description": "Register a new certificate authority",
        "operationId": "ca.add",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CertificateAuthorityRequest"
              }
            }
          },
          "description": "Certificate authority to register",
          "required": true
        },
        "responses": {
          "201": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CertificateAuthorityResponse"
                }
              }
            },
            "description": "Certificate authority successfully registered"
          },
          "400": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Ca002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            400
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Ca004"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            400
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Bad Request"
          },
          "401": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth003"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth004"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth005"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth006"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth007"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth008"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth009"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Unauthorized request"
          },
          "403": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecPerm001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic004"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Forbidden action"
          },
          "500": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Ca001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Internal Server error"
          }
        },
        "summary": "Register a new certificate authority",
        "tags": [
          "ca"
        ]
      },
      "put": {
        "description": "Update an existing certificate authority",
        "operationId": "ca.update",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CertificateAuthorityRequest"
              }
            }
          },
          "description": "Certificate authority to update",
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CertificateAuthorityResponse"
                }
              }
            },
            "description": "Certificate authority successfully updated"
          },
          "400": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Ca002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            400
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Bad Request"
          },
          "401": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth003"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth004"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth005"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth006"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth007"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth008"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth009"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Unauthorized request"
          },
          "403": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecPerm001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic004"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Forbidden action"
          },
          "404": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Ca003"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            404
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Not Found"
          },
          "500": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Ca001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Internal Server error"
          }
        },
        "summary": "Update an existing certificate authority",
        "tags": [
          "ca"
        ]
      }
    },
    "/api/v1/cas/{name}": {
      "delete": {
        "description": "Delete an existing certificate authority based on its name",
        "operationId": "ca.delete",
        "parameters": [
          {
            "in": "path",
            "name": "name",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "Certificate authority successfully deleted"
          },
          "401": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth003"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth004"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth005"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth006"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth007"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth008"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth009"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Unauthorized request"
          },
          "403": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecPerm001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Ca005"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic004"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Forbidden action"
          },
          "404": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Ca003"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            404
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Not Found"
          },
          "500": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Ca001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Internal Server error"
          }
        },
        "summary": "Delete an existing certificate authority",
        "tags": [
          "ca"
        ]
      },
      "get": {
        "description": "Retrieve an existing certificate authority based on its name",
        "operationId": "ca.get",
        "parameters": [
          {
            "in": "path",
            "name": "name",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CertificateAuthorityResponse"
                }
              }
            },
            "description": "The certificate authority"
          },
          "401": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth003"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth004"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth005"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth006"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth007"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth008"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth009"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Unauthorized request"
          },
          "403": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecPerm001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic004"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Forbidden action"
          },
          "404": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Ca003"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            404
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Not Found"
          },
          "500": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Ca001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Internal Server error"
          }
        },
        "summary": "Retrieve an existing certificate authority",
        "tags": [
          "ca"
        ]
      }
    },
    "/api/v1/certificate/grading/policies/{name}": {
      "get": {
        "description": "Retrieve an existing grading policy based on its name",
        "operationId": "grading.policy.get",
        "parameters": [
          {
            "in": "path",
            "name": "name",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GradingPolicyResponse"
                }
              }
            },
            "description": "The grading policy"
          },
          "401": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth003"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth004"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth005"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth006"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth007"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth008"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth009"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Unauthorized request"
          },
          "403": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecPerm001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Forbidden action"
          },
          "404": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/GradingPolicy003"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            404
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Not Found"
          },
          "500": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/GradingPolicy001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Internal Server error"
          }
        },
        "summary": "Retrieve an existing grading policy",
        "tags": [
          "certificate.grading.policy"
        ]
      }
    },
    "/api/v1/certificate/grading/policies/{policy}/explain/{input}": {
      "get": {
        "description": "Explain a Grading Policy based on a certificate provided URL encoded (PEM or DER) in the URL",
        "operationId": "grading.policy.explain.url",
        "parameters": [
          {
            "in": "path",
            "name": "policy",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "input",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ExplainedGradingPolicyResponse"
                }
              }
            },
            "description": "Explained Grading Policy regarding the provided certificate"
          },
          "400": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/GradingPolicy005"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            400
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Bad Request"
          },
          "404": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/GradingPolicy003"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            404
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Not Found"
          },
          "500": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/GradingPolicy001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Internal Server error"
          }
        },
        "summary": "Explain a Grading Policy",
        "tags": [
          "certificate.grading.policy"
        ]
      }
    },
    "/api/v1/certificate/grading/policies/{policy}/explain": {
      "post": {
        "description": "Explain a Grading Policy based on a certificate provided in the request body",
        "operationId": "grading.policy.explain.file",
        "parameters": [
          {
            "in": "path",
            "name": "policy",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "multipart/form-data": {
              "schema": {
                "properties": {
                  "x509": {
                    "oneOf": [
                      {
                        "format": "binary",
                        "type": "string"
                      },
                      {
                        "format": "byte",
                        "type": "string"
                      }
                    ]
                  }
                },
                "type": "object"
              }
            }
          },
          "description": "The X509 certificate file PEM or DER encoded",
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ExplainedGradingPolicyResponse"
                }
              }
            },
            "description": "Explained Grading Policy regarding the provided certificate"
          },
          "400": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/GradingPolicy005"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            400
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Bad Request"
          },
          "404": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/GradingPolicy003"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            404
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Not Found"
          },
          "500": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/GradingPolicy001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Internal Server error"
          }
        },
        "summary": "Explain a Grading Policy",
        "tags": [
          "certificate.grading.policy"
        ]
      }
    },
    "/api/v1/certificate/grading/policies/{policy}/run": {
      "get": {
        "description": "Run a grading policy on every profile/discovery campaigns referenced the grading policy",
        "operationId": "grading.policy.run",
        "parameters": [
          {
            "in": "path",
            "name": "policy",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "The grading policy is running (it is a slow operation that can take time)"
          },
          "401": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth003"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth004"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth005"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth006"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth007"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth008"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth009"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Unauthorized request"
          },
          "404": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/GradingPolicy003"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            404
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Not Found"
          },
          "500": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/GradingPolicy001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Internal Server error"
          }
        },
        "summary": "Run a grading policy",
        "tags": [
          "certificate.grading.policy"
        ]
      }
    },
    "/api/v1/certificate/grading/policies": {
      "get": {
        "description": "List the existing grading policies",
        "operationId": "grading.policy.list",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "items": {
                    "$ref": "#/components/schemas/GradingPolicyResponse"
                  },
                  "type": "array"
                }
              }
            },
            "description": "Grading policy list"
          },
          "204": {
            "description": "No grading policy defined"
          },
          "401": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth003"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth004"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth005"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth006"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth007"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth008"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth009"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Unauthorized request"
          },
          "403": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecPerm001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Forbidden action"
          },
          "500": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/GradingPolicy001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Internal Server error"
          }
        },
        "summary": "List the existing grading policies",
        "tags": [
          "certificate.grading.policy"
        ]
      }
    },
    "/api/v1/certificate/grading/rulesets/{name}": {
      "get": {
        "description": "Retrieve an existing grading rukeset based on its name",
        "operationId": "grading.ruleset.get",
        "parameters": [
          {
            "in": "path",
            "name": "name",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GradingRulesetResponse"
                }
              }
            },
            "description": "The grading ruleset"
          },
          "401": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth003"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth004"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth005"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth006"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth007"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth008"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth009"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Unauthorized request"
          },
          "403": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecPerm001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Forbidden action"
          },
          "404": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/GradingRuleset003"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            404
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Not Found"
          },
          "500": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/GradingRuleset001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Internal Server error"
          }
        },
        "summary": "Retrieve an existing grading ruleset",
        "tags": [
          "certificate.grading.ruleset"
        ]
      }
    },
    "/api/v1/certificate/grading/rulesets/{ruleset}/explain/{input}": {
      "get": {
        "description": "Explain a Grading Ruleset based on a certificate provided URL encoded (PEM or DER) in the URL",
        "operationId": "grading.ruleset.explain.url",
        "parameters": [
          {
            "in": "path",
            "name": "ruleset",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "input",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ExplainedGradingRulesetResponse"
                }
              }
            },
            "description": "Explained Grading Ruleset regarding the provided certificate"
          },
          "400": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/GradingRuleset005"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            400
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Bad Request"
          },
          "404": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/GradingRuleset003"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            404
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Not Found"
          },
          "500": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/GradingRuleset001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Internal Server error"
          }
        },
        "summary": "Explain a Grading Ruleset",
        "tags": [
          "certificate.grading.ruleset"
        ]
      }
    },
    "/api/v1/certificate/grading/rulesets/{ruleset}/explain": {
      "post": {
        "description": "Explain a Grading Ruleset based on a certificate provided in the request body",
        "operationId": "grading.ruleset.explain.file",
        "parameters": [
          {
            "in": "path",
            "name": "ruleset",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "multipart/form-data": {
              "schema": {
                "properties": {
                  "x509": {
                    "oneOf": [
                      {
                        "format": "binary",
                        "type": "string"
                      },
                      {
                        "format": "byte",
                        "type": "string"
                      }
                    ]
                  }
                },
                "type": "object"
              }
            }
          },
          "description": "The X509 certificate file PEM or DER encoded",
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ExplainedGradingRulesetResponse"
                }
              }
            },
            "description": "Explained Grading Ruleset regarding the provided certificate"
          },
          "400": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/GradingRuleset005"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            400
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Bad Request"
          },
          "404": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/GradingRuleset003"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            404
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Not Found"
          },
          "500": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/GradingRuleset001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Internal Server error"
          }
        },
        "summary": "Explain a Grading Ruleset",
        "tags": [
          "certificate.grading.ruleset"
        ]
      }
    },
    "/api/v1/certificate/grading/rulesets": {
      "get": {
        "description": "List the existing grading rulesets",
        "operationId": "grading.ruleset.list",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "items": {
                    "$ref": "#/components/schemas/GradingRulesetResponse"
                  },
                  "type": "array"
                }
              }
            },
            "description": "Grading ruleset list"
          },
          "204": {
            "description": "No grading policy defined"
          },
          "401": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth003"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth004"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth005"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth006"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth007"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth008"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth009"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Unauthorized request"
          },
          "403": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecPerm001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Forbidden action"
          },
          "500": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/GradingRuleset001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Internal Server error"
          }
        },
        "summary": "List the existing grading rulesets",
        "tags": [
          "certificate.grading.ruleset"
        ]
      }
    },
    "/api/v1/certificate/labels": {
      "get": {
        "description": "List the existing labels",
        "operationId": "label.list",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "items": {
                    "$ref": "#/components/schemas/LabelResponse"
                  },
                  "type": "array"
                }
              }
            },
            "description": "Label list"
          },
          "204": {
            "description": "No label defined or insufficient permissions"
          },
          "400": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/CertLabel005"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            400
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Bad Request"
          },
          "401": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth003"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth004"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth005"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth006"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth007"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth008"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth009"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Unauthorized request"
          },
          "403": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecPerm001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic004"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Forbidden action"
          },
          "500": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/CertLabel001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Internal Server error"
          }
        },
        "summary": "List the existing labels",
        "tags": [
          "certificate.label"
        ]
      },
      "post": {
        "description": "Register a new label",
        "operationId": "label.add",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Label"
              }
            }
          },
          "description": "Label to register",
          "required": true
        },
        "responses": {
          "201": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/LabelResponse"
                }
              }
            },
            "description": "Label successfully registered"
          },
          "400": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/CertLabel002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            400
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/CertLabel004"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            400
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Bad Request"
          },
          "401": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth003"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth004"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth005"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth006"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth007"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth008"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth009"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Unauthorized request"
          },
          "403": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecPerm001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic004"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Forbidden action"
          },
          "500": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/CertLabel001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Internal Server error"
          }
        },
        "summary": "Register a new label",
        "tags": [
          "certificate.label"
        ]
      },
      "put": {
        "description": "Update an existing label",
        "operationId": "label.update",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Label"
              }
            }
          },
          "description": "Label to update",
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/LabelResponse"
                }
              }
            },
            "description": "Label successfully updated"
          },
          "400": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/CertLabel002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            400
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Bad Request"
          },
          "401": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth003"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth004"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth005"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth006"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth007"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth008"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth009"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Unauthorized request"
          },
          "403": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecPerm001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic004"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Forbidden action"
          },
          "404": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/CertLabel003"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            404
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Not Found"
          },
          "500": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/CertLabel001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Internal Server error"
          }
        },
        "summary": "Update an existing label",
        "tags": [
          "certificate.label"
        ]
      }
    },
    "/api/v1/certificate/labels/{name}": {
      "get": {
        "description": "Retrieve an existing label based on its name",
        "operationId": "label.get",
        "parameters": [
          {
            "in": "path",
            "name": "name",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/LabelResponse"
                }
              }
            },
            "description": "The label"
          },
          "401": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth003"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth004"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth005"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth006"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth007"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth008"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth009"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Unauthorized request"
          },
          "403": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecPerm001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic004"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Forbidden action"
          },
          "404": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/CertLabel003"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            404
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Not Found"
          },
          "500": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/CertLabel001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Internal Server error"
          }
        },
        "summary": "Retrieve an existing label",
        "tags": [
          "certificate.label"
        ]
      },
      "delete": {
        "description": "Delete an existing label based on its name",
        "operationId": "label.delete",
        "parameters": [
          {
            "in": "path",
            "name": "name",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "Label successfully deleted"
          },
          "401": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth003"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth004"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth005"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth006"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth007"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth008"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth009"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Unauthorized request"
          },
          "403": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecPerm001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/CertLabel005"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic004"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Forbidden action"
          },
          "404": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/CertLabel003"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            404
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Not Found"
          },
          "500": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/CertLabel001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Internal Server error"
          }
        },
        "summary": "Delete an existing label",
        "tags": [
          "certificate.label"
        ]
      }
    },
    "/api/v1/certificate/profiles": {
      "get": {
        "description": "List the existing certificate profiles with the capability to filter on a list of module(s)",
        "operationId": "certificate.profile.list",
        "parameters": [
          {
            "in": "query",
            "name": "modules",
            "required": false,
            "schema": {
              "items": {
                "type": "string"
              },
              "type": "array"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "items": {
                    "allOf": [
                      {
                        "$ref": "#/components/schemas/CertificateProfileResponses"
                      }
                    ]
                  },
                  "type": "array"
                }
              }
            },
            "description": "Certificate profile list"
          },
          "204": {
            "description": "No certificate profile defined or insufficient permissions"
          },
          "400": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/CertProfile005"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            400
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Bad Request"
          },
          "401": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth003"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth004"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth005"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth006"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth007"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth008"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth009"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Unauthorized request"
          },
          "403": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic004"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Forbidden action"
          },
          "500": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/CertProfile001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Internal Server error"
          }
        },
        "summary": "List the existing certificate profiles",
        "tags": [
          "certificate.profile"
        ]
      },
      "post": {
        "description": "Register a new certificate profile",
        "operationId": "certificate.profile.add",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/CertificateProfiles"
                  }
                ]
              }
            }
          },
          "description": "Certificate profile to register",
          "required": true
        },
        "responses": {
          "201": {
            "content": {
              "application/json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/CertificateProfileResponses"
                    }
                  ]
                }
              }
            },
            "description": "Certificate profile successfully registered"
          },
          "400": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/CertProfile002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            400
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/CertProfile004"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            400
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Bad Request"
          },
          "401": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth003"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth004"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth005"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth006"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth007"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth008"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth009"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Unauthorized request"
          },
          "403": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecPerm001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic004"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Forbidden action"
          },
          "500": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/CertProfile001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Internal Server error"
          }
        },
        "summary": "Register a new certificate profile",
        "tags": [
          "certificate.profile"
        ]
      },
      "put": {
        "description": "Update an existing certificate profile",
        "operationId": "certificate.profile.update",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/CertificateProfiles"
                  }
                ]
              }
            }
          },
          "description": "Certificate profile to update",
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/CertificateProfileResponses"
                    }
                  ]
                }
              }
            },
            "description": "Certificate profile successfully updated"
          },
          "400": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/CertProfile002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            400
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Bad Request"
          },
          "401": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth003"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth004"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth005"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth006"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth007"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth008"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth009"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Unauthorized request"
          },
          "403": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/CertProfile002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecPerm001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic004"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Forbidden action"
          },
          "404": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/CertProfile003"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            404
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Not Found"
          },
          "500": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/CertProfile001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Internal Server error"
          }
        },
        "summary": "Update an existing certificate profile",
        "tags": [
          "certificate.profile"
        ]
      }
    },
    "/api/v1/certificate/profiles/{name}": {
      "get": {
        "description": "Retrieve a specific certificate profile based on its name",
        "operationId": "certificate.profile.get",
        "parameters": [
          {
            "in": "path",
            "name": "name",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/CertificateProfileResponses"
                    }
                  ]
                }
              }
            },
            "description": "The certificate profile"
          },
          "401": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth003"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth004"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth005"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth006"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth007"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth008"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth009"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Unauthorized request"
          },
          "403": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecPerm001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic004"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Forbidden action"
          },
          "404": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/CertProfile003"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            404
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Not Found"
          },
          "500": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/CertProfile001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Internal Server error"
          }
        },
        "summary": "Retrieve a specific certificate profile",
        "tags": [
          "certificate.profile"
        ]
      },
      "delete": {
        "description": "Delete a certificate profile based on its name. Will also delete any role or principal permission associated to this profile",
        "operationId": "certificate.profile.delete",
        "parameters": [
          {
            "in": "path",
            "name": "name",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "Certificate profile was successfully deleted"
          },
          "401": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth003"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth004"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth005"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth006"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth007"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth008"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth009"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Unauthorized request"
          },
          "403": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecPerm001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/CertProfile006"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic004"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Forbidden action"
          },
          "404": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/CertProfile003"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            404
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Not Found"
          },
          "500": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/CertProfile001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Internal Server error"
          }
        },
        "summary": "Delete a certificate profile",
        "tags": [
          "certificate.profile"
        ]
      }
    },
    "/api/v1/discovery/events/csv": {
      "post": {
        "description": "Send a discovery event search query (in HDQL format) and return the discovery event search results in CSV format",
        "operationId": "discovery.event.csv",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/DiscoveryEventSearchQuery"
              }
            }
          },
          "description": "The discovery event search query",
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "text/csv": {}
            },
            "description": "The discovery event search results in CSV format"
          },
          "204": {
            "description": "No discovery event found"
          },
          "400": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Hql001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            400
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Bad Request"
          },
          "401": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth003"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth004"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth005"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth006"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth007"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth008"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth009"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Unauthorized request"
          },
          "403": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecPerm001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic004"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Forbidden action"
          },
          "500": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/DiscEvt001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Internal Server error"
          }
        },
        "summary": "Discovery event search",
        "tags": [
          "discovery.event"
        ]
      }
    },
    "/api/v1/events/search": {
      "post": {
        "description": "Send an event search query (in HEQL format) and return the event search results",
        "operationId": "event.search",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/EventSearchQuery"
              }
            }
          },
          "description": "The event search query",
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EventSearchResultsResponse"
                }
              }
            },
            "description": "The event search results"
          },
          "400": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Evt002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            400
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Hql001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            400
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Bad Request"
          },
          "401": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth003"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth004"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth005"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth006"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth007"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth008"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth009"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Unauthorized request"
          },
          "403": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecPerm001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic004"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Forbidden action"
          },
          "500": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Evt001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Internal Server error"
          }
        },
        "summary": "Event search",
        "tags": [
          "event"
        ]
      }
    },
    "/api/v1/events/verify": {
      "get": {
        "description": "verify event from id:\n  - is id specified: verify only one event\n  - is from specified: verify every event from the event specified to the last event registered\n  - is to specified: verify every event from the beginning to the event specified\n  - is from and to specified: verify every event between the events specified\n",
        "operationId": "event.validate",
        "parameters": [
          {
            "in": "query",
            "name": "id",
            "required": false,
            "schema": {
              "nullable": true,
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "from",
            "required": false,
            "schema": {
              "nullable": true,
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "to",
            "required": false,
            "schema": {
              "nullable": true,
              "type": "string"
            }
          }
        ],
        "responses": {
          "201": {
            "description": "Specified Event(s) are valid"
          },
          "400": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Evt004"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            400
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Bad Request"
          },
          "401": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth003"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth004"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth005"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth006"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth007"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth008"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth009"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Unauthorized request"
          },
          "403": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecPerm001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic004"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Forbidden action"
          },
          "404": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Evt003"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            404
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Not Found"
          },
          "409": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            },
            "description": "Invalid request. Possible error codes are:\n  - '***EVT-004***' : Invalid Event\n"
          },
          "500": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Evt001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Internal Server error"
          }
        },
        "summary": "Event verify",
        "tags": [
          "event"
        ]
      }
    },
    "/api/v1/events/{id}": {
      "get": {
        "description": "Retrieve an existing event based on its id",
        "operationId": "event.get",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EventResponse"
                }
              }
            },
            "description": "The Event"
          },
          "401": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth003"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth004"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth005"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth006"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth007"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth008"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth009"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Unauthorized request"
          },
          "403": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecPerm001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic004"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Forbidden action"
          },
          "404": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Evt003"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            404
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Not Found"
          },
          "500": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Evt001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Internal Server error"
          }
        },
        "summary": "Retrieved an existing Event",
        "tags": [
          "event"
        ]
      }
    },
    "/api/v1/licenses/modules": {
      "get": {
        "description": "Retrieve the license entitled modules",
        "operationId": "licenses.modules",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "items": {
                    "type": "string"
                  },
                  "type": "array"
                }
              }
            },
            "description": "The list of module activated"
          },
          "403": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic004"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Forbidden action"
          },
          "500": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Internal Server error"
          }
        },
        "summary": "Retrieve the license entitled modules",
        "tags": [
          "license"
        ]
      }
    },
    "/api/v1/licenses": {
      "get": {
        "description": "Return the complete information regarding the license:\n   - License validity\n   - License expiration date\n   - Entitled Modules along with the holder limit (if any)\n",
        "operationId": "licenses.list",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/LicenseInfoResponse"
                }
              }
            },
            "description": "License information"
          },
          "401": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth003"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth004"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth005"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth006"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth007"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth008"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth009"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Unauthorized request"
          },
          "403": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecPerm001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic004"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Forbidden action"
          },
          "500": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Internal Server error"
          }
        },
        "summary": "Retrieve the license information",
        "tags": [
          "license"
        ]
      }
    },
    "/api/v1/pki/connectors": {
      "get": {
        "description": "List the existing PKI connector(s)",
        "operationId": "pki.connector.list",
        "summary": "List the existing PKI connector(s)",
        "tags": [
          "pki.connector"
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "items": {
                    "allOf": [
                      {
                        "$ref": "#/components/schemas/PKIResponses"
                      }
                    ]
                  },
                  "type": "array"
                }
              }
            },
            "description": "PKI connector list"
          },
          "204": {
            "description": "No PKI connector defined or insufficient permissions"
          },
          "401": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth003"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth004"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth005"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth006"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth007"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth008"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth009"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Unauthorized request"
          },
          "403": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecPerm001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic004"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Forbidden action"
          },
          "500": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/PkiConnector001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Internal Server error"
          }
        }
      },
      "post": {
        "description": "Register a new PKI connector",
        "operationId": "pki.connector.add",
        "summary": "Register a new PKI connector",
        "tags": [
          "pki.connector"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/PKIConnectors"
                  }
                ]
              }
            }
          },
          "description": "PKI connector to register",
          "required": true
        },
        "responses": {
          "201": {
            "content": {
              "application/json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/PKIResponses"
                    }
                  ]
                }
              }
            },
            "description": "PKI connector successfully registered"
          },
          "400": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/PkiConnector002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            400
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/PkiConnector004"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            400
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Bad Request"
          },
          "401": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth003"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth004"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth005"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth006"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth007"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth008"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth009"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Unauthorized request"
          },
          "403": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecPerm001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic004"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Forbidden action"
          },
          "500": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/PkiConnector001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Internal Server error"
          }
        }
      },
      "put": {
        "description": "Update an existing PKI connector",
        "operationId": "pki.connector.update",
        "summary": "Update an existing PKI connector",
        "tags": [
          "pki.connector"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/PKIConnectors"
                  }
                ]
              }
            }
          },
          "description": "PKI connector to update",
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/PKIResponses"
                    }
                  ]
                }
              }
            },
            "description": "PKI connector successfully updated"
          },
          "400": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/PkiConnector002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            400
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Bad Request"
          },
          "401": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth003"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth004"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth005"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth006"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth007"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth008"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth009"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Unauthorized request"
          },
          "403": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecPerm001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic004"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Forbidden action"
          },
          "404": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/PkiConnector003"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            404
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Not Found"
          },
          "500": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/PkiConnector001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Internal Server error"
          }
        }
      }
    },
    "/api/v1/pki/connectors/{name}": {
      "get": {
        "description": "Retrieve an existing PKI connector based on its name",
        "operationId": "pki.connector.get",
        "summary": "Retrieve an existing PKI connector",
        "tags": [
          "pki.connector"
        ],
        "parameters": [
          {
            "in": "path",
            "name": "name",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/PKIResponses"
                    }
                  ]
                }
              }
            },
            "description": "The PKI connector"
          },
          "401": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth003"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth004"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth005"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth006"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth007"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth008"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth009"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Unauthorized request"
          },
          "403": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecPerm001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic004"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Forbidden action"
          },
          "404": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/PkiConnector003"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            404
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Not Found"
          },
          "500": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/PkiConnector001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Internal Server error"
          }
        }
      },
      "delete": {
        "description": "Delete an existing PKI connector based on its name",
        "operationId": "pki.connector.delete",
        "summary": "Delete an existing PKI connector",
        "tags": [
          "pki.connector"
        ],
        "parameters": [
          {
            "in": "path",
            "name": "name",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "PKI connector successfully deleted"
          },
          "400": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/PkiConnector005"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            400
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Bad Request"
          },
          "401": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth003"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth004"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth005"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth006"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth007"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth008"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth009"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Unauthorized request"
          },
          "403": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecPerm001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic004"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Forbidden action"
          },
          "404": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/PkiConnector003"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            404
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Not Found"
          },
          "500": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/PkiConnector001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Internal Server error"
          }
        }
      }
    },
    "/api/v1/pki/queues": {
      "get": {
        "description": "List the existing pki queue(s)",
        "operationId": "pkiqueue.list",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "items": {
                    "$ref": "#/components/schemas/PKIQueueResponse"
                  },
                  "type": "array"
                }
              }
            },
            "description": "Pki queue list"
          },
          "204": {
            "description": "No pki queue defined or insufficient permissions"
          },
          "401": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth003"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth004"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth005"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth006"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth007"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth008"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth009"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Unauthorized request"
          },
          "403": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecPerm001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic004"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Forbidden action"
          },
          "500": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/PkiQueue001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Internal Server error"
          }
        },
        "summary": "List the existing pki queue(s)",
        "tags": [
          "pki.queue"
        ]
      },
      "post": {
        "description": "Register a new pki queue",
        "operationId": "pkiqueue.add",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PKIQueue"
              }
            }
          },
          "description": "The pki queue to register",
          "required": true
        },
        "responses": {
          "201": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PKIQueueResponse"
                }
              }
            },
            "description": "PKI queue successfully registered"
          },
          "400": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/PkiQueue002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            400
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/PkiQueue004"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            400
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Bad Request"
          },
          "401": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth003"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth004"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth005"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth006"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth007"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth008"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth009"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Unauthorized request"
          },
          "403": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecPerm001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic004"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Forbidden action"
          },
          "500": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/PkiQueue001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Internal Server error"
          }
        },
        "summary": "Register a new pki queue",
        "tags": [
          "pki.queue"
        ]
      },
      "put": {
        "description": "Update an existing pki queue",
        "operationId": "pkiqueue.update",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PKIQueue"
              }
            }
          },
          "description": "The pki queue to update",
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PKIQueueResponse"
                }
              }
            },
            "description": "PKI queue successfully updated"
          },
          "400": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/PkiQueue002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            400
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Bad Request"
          },
          "401": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth003"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth004"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth005"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth006"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth007"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth008"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth009"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Unauthorized request"
          },
          "403": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecPerm001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic004"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Forbidden action"
          },
          "404": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/PkiQueue003"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            404
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Not Found"
          },
          "500": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/PkiQueue001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Internal Server error"
          }
        },
        "summary": "Update an existing pki queue",
        "tags": [
          "pki.queue"
        ]
      }
    },
    "/api/v1/pki/queues/{name}": {
      "delete": {
        "description": "Delete an existing pki queue based on its name",
        "operationId": "pkiqueue.delete",
        "parameters": [
          {
            "in": "path",
            "name": "name",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "PKI queue successfully deleted"
          },
          "400": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/PkiQueue005"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            400
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Bad Request"
          },
          "401": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth003"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth004"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth005"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth006"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth007"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth008"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth009"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Unauthorized request"
          },
          "403": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecPerm001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic004"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Forbidden action"
          },
          "404": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/PkiQueue003"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            404
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Not Found"
          },
          "500": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/PkiQueue001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Internal Server error"
          }
        },
        "summary": "Delete an existing pki queue",
        "tags": [
          "pki.queue"
        ]
      },
      "get": {
        "description": "Retrieve an existing pki queue based on its name",
        "operationId": "pkiqueue.get",
        "parameters": [
          {
            "in": "path",
            "name": "name",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PKIQueueResponse"
                }
              }
            },
            "description": "The pkiqueue"
          },
          "401": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth003"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth004"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth005"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth006"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth007"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth008"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth009"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Unauthorized request"
          },
          "403": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecPerm001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic004"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Forbidden action"
          },
          "404": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/PkiQueue003"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            404
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Not Found"
          },
          "500": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/PkiQueue001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Internal Server error"
          }
        },
        "summary": "Retrieve an existing pki queue",
        "tags": [
          "pki.queue"
        ]
      }
    },
    "/api/v1/proxy/httpproxies": {
      "get": {
        "description": "List the existing HTTP proxy(ies)",
        "operationId": "httpproxy.list",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "items": {
                    "$ref": "#/components/schemas/HttpProxyResponse"
                  },
                  "type": "array"
                }
              }
            },
            "description": "HTTP proxy list"
          },
          "204": {
            "description": "No HTTP proxy defined or insufficient permissions"
          },
          "401": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth003"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth004"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth005"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth006"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth007"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth008"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth009"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Unauthorized request"
          },
          "403": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecPerm001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic004"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Forbidden action"
          },
          "500": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/HttpProxy001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Internal Server error"
          }
        },
        "summary": "List the existing HTTP proxy(ies)",
        "tags": [
          "http.httpproxy"
        ]
      },
      "post": {
        "description": "Register a new HTTP proxy",
        "operationId": "httpproxy.add",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/HttpProxy"
              }
            }
          },
          "description": "HTTP proxy to register",
          "required": true
        },
        "responses": {
          "201": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HttpProxyResponse"
                }
              }
            },
            "description": "HTTP proxy successfully registered"
          },
          "400": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/HttpProxy002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            400
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/HttpProxy004"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            400
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Bad Request"
          },
          "401": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth003"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth004"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth005"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth006"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth007"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth008"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth009"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Unauthorized request"
          },
          "403": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecPerm001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic004"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Forbidden action"
          },
          "500": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/HttpProxy001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Internal Server error"
          }
        },
        "summary": "Register a new HTTP proxy",
        "tags": [
          "http.httpproxy"
        ]
      },
      "put": {
        "description": "Update an existing HTTP proxy",
        "operationId": "httpproxy.update",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/HttpProxy"
              }
            }
          },
          "description": "HTTP proxy to update",
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HttpProxyResponse"
                }
              }
            },
            "description": "HTTP proxy successfully updated"
          },
          "400": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/HttpProxy002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            400
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Bad Request"
          },
          "401": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth003"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth004"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth005"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth006"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth007"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth008"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth009"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Unauthorized request"
          },
          "403": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecPerm001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic004"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Forbidden action"
          },
          "404": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/HttpProxy003"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            404
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Not Found"
          },
          "500": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/HttpProxy001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Internal Server error"
          }
        },
        "summary": "Update an existing HTTP proxy",
        "tags": [
          "http.httpproxy"
        ]
      }
    },
    "/api/v1/proxy/httpproxies/{name}": {
      "get": {
        "description": "Retrieve an existing HTTP proxy based on its name",
        "operationId": "httpproxy.get",
        "parameters": [
          {
            "in": "path",
            "name": "name",
            "required": true,
            "description": "Name of the HTTP Proxy to retrieve",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HttpProxyResponse"
                }
              }
            },
            "description": "The HTTP proxy"
          },
          "401": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth003"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth004"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth005"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth006"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth007"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth008"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth009"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Unauthorized request"
          },
          "403": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecPerm001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic004"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Forbidden action"
          },
          "404": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/HttpProxy003"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            404
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Not Found"
          },
          "500": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/HttpProxy001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Internal Server error"
          }
        },
        "summary": "Retrieve an existing HTTP proxy",
        "tags": [
          "http.httpproxy"
        ]
      },
      "delete": {
        "description": "Delete an existing HTTP proxy based on its name",
        "operationId": "httpproxy.delete",
        "parameters": [
          {
            "in": "path",
            "name": "name",
            "required": true,
            "description": "Name of the HTTP Proxy to delete",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "HTTP proxy successfully deleted"
          },
          "400": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/HttpProxy005"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            400
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Bad Request"
          },
          "401": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth003"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth004"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth005"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth006"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth007"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth008"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth009"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Unauthorized request"
          },
          "403": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecPerm001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic004"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Forbidden action"
          },
          "404": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/HttpProxy003"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            404
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Not Found"
          },
          "500": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/HttpProxy001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Internal Server error"
          }
        },
        "summary": "Delete an existing HTTP proxy",
        "tags": [
          "http.httpproxy"
        ]
      }
    },
    "/api/v1/system/configuration": {
      "get": {
        "description": "List the system configurations",
        "operationId": "system.configuration.list",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "items": {
                    "oneOf": [
                      {
                        "$ref": "#/components/schemas/LicenseConfigurationResponse"
                      },
                      {
                        "$ref": "#/components/schemas/InternalMonitorConfigurationResponse"
                      },
                      {
                        "$ref": "#/components/schemas/InterfaceCustomizationConfigurationResponse"
                      }
                    ]
                  },
                  "type": "array"
                }
              }
            },
            "description": "System configurations list"
          },
          "204": {
            "description": "No configurations defined or insufficient permissions"
          },
          "401": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth003"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth004"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth005"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth006"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth007"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth008"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth009"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Unauthorized request"
          },
          "403": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic004"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Forbidden action"
          },
          "500": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SystemConfiguration001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Internal Server error"
          }
        },
        "summary": "List the existing system configurations",
        "tags": [
          "system.configuration"
        ]
      },
      "put": {
        "description": "Upsert a system configuration",
        "operationId": "system.configuration.upsert",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "oneOf": [
                  {
                    "$ref": "#/components/schemas/LicenseConfiguration"
                  },
                  {
                    "$ref": "#/components/schemas/InternalMonitorConfiguration"
                  },
                  {
                    "$ref": "#/components/schemas/InterfaceCustomizationConfiguration"
                  }
                ]
              }
            }
          },
          "description": "System configuration entry to upsert",
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "$ref": "#/components/schemas/LicenseConfigurationResponse"
                    },
                    {
                      "$ref": "#/components/schemas/InternalMonitorConfigurationResponse"
                    },
                    {
                      "$ref": "#/components/schemas/InterfaceCustomizationConfigurationResponse"
                    }
                  ]
                }
              }
            },
            "description": "System configuration successfully upserted"
          },
          "400": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SystemConfiguration002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            400
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Bad Request"
          },
          "401": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth003"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth004"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth005"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth006"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth007"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth008"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth009"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Unauthorized request"
          },
          "403": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecPerm001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic004"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Forbidden action"
          },
          "500": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SystemConfiguration001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Internal Server error"
          }
        },
        "summary": "Upsert a system configuration",
        "tags": [
          "system.configuration"
        ]
      }
    },
    "/api/v1/system/configuration/{type}": {
      "get": {
        "description": "Get an existing system configuration",
        "operationId": "system.configuration.get",
        "parameters": [
          {
            "in": "path",
            "name": "type",
            "description": "Type of the configuration entry to get",
            "schema": {
              "enum": [
                "license",
                "internal_monitor",
                "interface_customization"
              ],
              "type": "string"
            },
            "required": true
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "$ref": "#/components/schemas/LicenseConfigurationResponse"
                    },
                    {
                      "$ref": "#/components/schemas/InternalMonitorConfigurationResponse"
                    },
                    {
                      "$ref": "#/components/schemas/InterfaceCustomizationConfigurationResponse"
                    }
                  ]
                }
              }
            },
            "description": "The requested system configuration"
          },
          "401": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth003"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth004"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth005"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth006"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth007"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth008"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth009"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Unauthorized request"
          },
          "403": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecPerm001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic004"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Forbidden action"
          },
          "404": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SystemConfiguration003"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            404
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Not found"
          },
          "500": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SystemConfiguration001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Internal Server error"
          }
        },
        "summary": "Upsert a system configuration",
        "tags": [
          "system.configuration"
        ]
      }
    },
    "/api/v1/rfc5280/detect": {
      "post": {
        "description": "Detect and parse a RFC 5280 related file (certificate bundle, certificate, crl, csr)",
        "operationId": "rfc5280.detect",
        "requestBody": {
          "content": {
            "multipart/form-data": {
              "schema": {
                "properties": {
                  "file": {
                    "oneOf": [
                      {
                        "format": "binary",
                        "type": "string"
                      },
                      {
                        "format": "byte",
                        "type": "string"
                      }
                    ]
                  }
                },
                "type": "object"
              }
            }
          },
          "description": "The file to parse",
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "$ref": "#/components/schemas/Rfc5280BundleResponse"
                    },
                    {
                      "$ref": "#/components/schemas/Rfc5280CertificateResponse"
                    },
                    {
                      "$ref": "#/components/schemas/Rfc5280CRLResponse"
                    },
                    {
                      "$ref": "#/components/schemas/Rfc5280CSRResponse"
                    }
                  ]
                }
              }
            },
            "description": "The RFC 5280 object type and value"
          },
          "400": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Rfc5280005"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            400
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Bad Request"
          },
          "403": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic004"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Forbidden action"
          },
          "500": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Rfc5280001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Internal Server error"
          }
        },
        "summary": "Detect and parse a RFC 5280 related file",
        "tags": [
          "rfc5280"
        ]
      }
    },
    "/api/v1/rfc5280/pkcs10/{pem}": {
      "get": {
        "description": "Decode a pkcs#10 (url encoded)",
        "operationId": "rfc5280.pkcs10.pem",
        "parameters": [
          {
            "in": "path",
            "name": "pem",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CFCertificationRequestResponse"
                }
              }
            },
            "description": "Decoded pkcs#10"
          },
          "400": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Rfc5280003"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            400
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Bad Request"
          },
          "403": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic004"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Forbidden action"
          },
          "500": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Internal Server error"
          }
        },
        "summary": "Decode a pkcs#10 (url encoded)",
        "tags": [
          "rfc5280"
        ]
      }
    },
    "/api/v1/rfc5280/pkcs10": {
      "post": {
        "description": "Decode a pkcs#10 (file)",
        "operationId": "rfc5280.pkcs10.file",
        "requestBody": {
          "content": {
            "multipart/form-data": {
              "schema": {
                "properties": {
                  "pkcs10": {
                    "oneOf": [
                      {
                        "format": "binary",
                        "type": "string"
                      },
                      {
                        "format": "byte",
                        "type": "string"
                      }
                    ]
                  }
                },
                "type": "object"
              }
            }
          },
          "description": "The pkcs#10 file PEM or DER encoded",
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CFCertificationRequestResponse"
                }
              }
            },
            "description": "Decoded pkcs#10"
          },
          "400": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Rfc5280003"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            400
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Bad Request"
          },
          "403": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic004"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Forbidden action"
          },
          "500": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Internal Server error"
          }
        },
        "summary": "Decode a pkcs#10 (file)",
        "tags": [
          "rfc5280"
        ]
      }
    },
    "/api/v1/rfc5280/pkcs12": {
      "post": {
        "description": "Extract the certificate and associated private key from a pkcs#12 (file)",
        "operationId": "rfc5280.pkcs12.file",
        "requestBody": {
          "content": {
            "multipart/form-data": {
              "schema": {
                "properties": {
                  "pkcs12": {
                    "oneOf": [
                      {
                        "format": "binary",
                        "type": "string"
                      },
                      {
                        "format": "byte",
                        "type": "string"
                      }
                    ]
                  }
                },
                "type": "object"
              }
            }
          },
          "description": "The pkcs#12 file PEM or DER encoded",
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Rfc5280Pkcs12ContentResponse"
                }
              }
            },
            "description": "The content of the pkcs#12"
          },
          "400": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Rfc5280004"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            400
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Bad Request"
          },
          "403": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic004"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Forbidden action"
          },
          "500": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Internal Server error"
          }
        },
        "summary": "Extract the certificate and associated private key from a pkcs#12 (file)",
        "tags": [
          "rfc5280"
        ]
      }
    },
    "/api/v1/rfc5280/tc/{pem}": {
      "get": {
        "description": "Retrieve the Trust chain from a x509 certificate (url encoded)",
        "operationId": "rfc5280.tc.pem",
        "parameters": [
          {
            "in": "path",
            "name": "pem",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "order",
            "required": false,
            "schema": {
              "enum": [
                "rtl",
                "ltr",
                "irtl",
                "iltr"
              ],
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "items": {
                    "$ref": "#/components/schemas/CFCertificateResponse"
                  },
                  "type": "array"
                }
              },
              "application/x-pem-file": {
                "schema": {
                  "type": "string"
                }
              },
              "application/x-pkcs7-certificates": {
                "schema": {
                  "format": "binary",
                  "type": "string"
                }
              }
            },
            "description": "The trust chain bundle including the specified certificate"
          },
          "400": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Rfc5280002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            400
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Bad Request"
          },
          "403": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic004"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Forbidden action"
          },
          "500": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Rfc5280001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Internal Server error"
          }
        },
        "summary": "Retrieve the Trust chain from a x509 certificate (url encoded)",
        "tags": [
          "rfc5280"
        ]
      }
    },
    "/api/v1/rfc5280/tc": {
      "post": {
        "description": "Retrieve the Trust chain from a x509 certificate (file)",
        "operationId": "rfc5280.tc.file",
        "parameters": [
          {
            "in": "query",
            "name": "order",
            "required": false,
            "schema": {
              "enum": [
                "rtl",
                "ltr",
                "irtl",
                "iltr"
              ],
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "multipart/form-data": {
              "schema": {
                "properties": {
                  "x509": {
                    "oneOf": [
                      {
                        "format": "binary",
                        "type": "string"
                      },
                      {
                        "format": "byte",
                        "type": "string"
                      }
                    ]
                  }
                },
                "type": "object"
              }
            }
          },
          "description": "The x509 certificate file PEM or DER encoded",
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "items": {
                    "$ref": "#/components/schemas/CFCertificateResponse"
                  },
                  "type": "array"
                }
              },
              "application/x-pem-file": {
                "schema": {
                  "type": "string"
                }
              },
              "application/x-pkcs7-certificates": {
                "schema": {
                  "format": "binary",
                  "type": "string"
                }
              }
            },
            "description": "The trust chain bundle including the specified certificate"
          },
          "400": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Rfc5280002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            400
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Bad Request"
          },
          "403": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic004"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Forbidden action"
          },
          "500": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Rfc5280001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Internal Server error"
          }
        },
        "summary": "Retrieve the Trust chain from a x509 certificate (file)",
        "tags": [
          "rfc5280"
        ]
      }
    },
    "/api/v1/rfc5280/x509/{pem}": {
      "get": {
        "description": "Decode a x509 certificate (url encoded)",
        "operationId": "rfc5280.x509.pem",
        "parameters": [
          {
            "in": "path",
            "name": "pem",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CFCertificateResponse"
                }
              },
              "application/pkix-cert": {
                "schema": {
                  "format": "binary",
                  "type": "string"
                }
              },
              "application/x-pem-file": {
                "schema": {
                  "type": "string"
                }
              },
              "application/x-pkcs7-certificates": {
                "schema": {
                  "format": "binary",
                  "type": "string"
                }
              }
            },
            "description": "The decoded x509 certificate"
          },
          "400": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Rfc5280002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            400
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Bad Request"
          },
          "403": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic004"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Forbidden action"
          },
          "500": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Internal Server error"
          }
        },
        "summary": "Decode a x509 certificate (url encoded)",
        "tags": [
          "rfc5280"
        ]
      }
    },
    "/api/v1/rfc5280/x509": {
      "post": {
        "description": "Decode a x509 certificate (file)",
        "operationId": "rfc5280.x509.file",
        "requestBody": {
          "content": {
            "multipart/form-data": {
              "schema": {
                "properties": {
                  "x509": {
                    "oneOf": [
                      {
                        "format": "binary",
                        "type": "string"
                      },
                      {
                        "format": "byte",
                        "type": "string"
                      }
                    ]
                  }
                },
                "type": "object"
              }
            }
          },
          "description": "The x509 certificate file PEM or DER encoded",
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CFCertificateResponse"
                }
              },
              "application/pkix-cert": {
                "schema": {
                  "format": "binary",
                  "type": "string"
                }
              },
              "application/x-pem-file": {
                "schema": {
                  "type": "string"
                }
              },
              "application/x-pkcs7-certificates": {
                "schema": {
                  "format": "binary",
                  "type": "string"
                }
              }
            },
            "description": "The decoded x509 certificate"
          },
          "400": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Rfc5280002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            400
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Bad Request"
          },
          "403": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic004"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Forbidden action"
          },
          "500": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Internal Server error"
          }
        },
        "summary": "Decode a x509 certificate (file)",
        "tags": [
          "rfc5280"
        ]
      }
    },
    "/api/v1/scheduler/tasks": {
      "get": {
        "description": "List the existing scheduled task(s)",
        "operationId": "scheduler.task.list",
        "parameters": [
          {
            "in": "query",
            "name": "scheduledTaskType",
            "required": false,
            "schema": {
              "nullable": true,
              "type": "string",
              "enum": [
                "report",
                "thirdparty"
              ],
              "description": "If set to null, then the API will return all types of scheduled tasks"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "items": {
                    "allOf": [
                      {
                        "$ref": "#/components/schemas/ScheduledTaskResponses"
                      }
                    ]
                  },
                  "type": "array"
                }
              }
            },
            "description": "Scheduled task list"
          },
          "204": {
            "description": "No scheduled task defined or insufficient permissions"
          },
          "400": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SchedTask002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            400
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Bad Request"
          },
          "401": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth003"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth004"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth005"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth006"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth007"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth008"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth009"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Unauthorized request"
          },
          "403": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecPerm001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic004"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Forbidden action"
          },
          "500": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SchedTask001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Internal Server error"
          }
        },
        "summary": "List the existing scheduled task(s)",
        "tags": [
          "scheduler.task"
        ]
      },
      "post": {
        "description": "Register a new scheduled task",
        "operationId": "scheduler.task.add",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/ScheduledTasks"
                  }
                ]
              }
            }
          },
          "description": "Scheduled task to register",
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/ScheduledTaskResponses"
                    }
                  ]
                }
              }
            },
            "description": "Scheduled task successfully registered"
          },
          "400": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SchedTask002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            400
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SchedTask004"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            400
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Bad Request"
          },
          "401": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth003"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth004"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth005"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth006"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth007"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth008"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth009"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Unauthorized request"
          },
          "403": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecPerm001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic004"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Forbidden action"
          },
          "404": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SchedTask003"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            404
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Not Found"
          },
          "500": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SchedTask001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Internal Server error"
          }
        },
        "summary": "Register a new scheduled task",
        "tags": [
          "scheduler.task"
        ]
      },
      "put": {
        "description": "Update an existing scheduled task",
        "operationId": "scheduler.task.update",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/ScheduledTasks"
                  }
                ]
              }
            }
          },
          "description": "Scheduled task to update",
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/ScheduledTaskResponses"
                    }
                  ]
                }
              }
            },
            "description": "Scheduled task successfully updated"
          },
          "400": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SchedTask002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            400
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Bad Request"
          },
          "401": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth003"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth004"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth005"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth006"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth007"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth008"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth009"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Unauthorized request"
          },
          "403": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecPerm001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic004"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Forbidden action"
          },
          "404": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SchedTask003"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            404
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Not Found"
          },
          "500": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SchedTask001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Internal Server error"
          }
        },
        "summary": "Update an existing scheduled task",
        "tags": [
          "scheduler.task"
        ]
      }
    },
    "/api/v1/scheduler/tasks/{id}/run": {
      "get": {
        "description": "Run an existing scheduled task based on its id",
        "operationId": "scheduler.task.run",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "Scheduled task successfully started"
          },
          "400": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SchedTask002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            400
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Bad Request"
          },
          "401": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth003"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth004"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth005"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth006"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth007"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth008"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth009"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Unauthorized request"
          },
          "403": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecPerm001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic004"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Forbidden action"
          },
          "404": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SchedTask003"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            404
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Not Found"
          },
          "500": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SchedTask001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Internal Server error"
          }
        },
        "summary": "Run an existing scheduled task",
        "tags": [
          "scheduler.task"
        ]
      }
    },
    "/api/v1/scheduler/tasks/{id}": {
      "get": {
        "description": "Retrieve an existing scheduled task based on its id",
        "operationId": "scheduler.task.get",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/ScheduledTaskResponses"
                    }
                  ]
                }
              }
            },
            "description": "The scheduled task"
          },
          "401": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth003"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth004"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth005"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth006"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth007"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth008"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth009"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Unauthorized request"
          },
          "403": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecPerm001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic004"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Forbidden action"
          },
          "404": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SchedTask003"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            404
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Not Found"
          },
          "500": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SchedTask001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Internal Server error"
          }
        },
        "summary": "Retrieve an existing scheduled task",
        "tags": [
          "scheduler.task"
        ]
      },
      "delete": {
        "description": "Delete an existing scheduled task based on its id",
        "operationId": "scheduler.task.delete",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "Scheduled task successfully deleted"
          },
          "401": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth003"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth004"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth005"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth006"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth007"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth008"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth009"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Unauthorized request"
          },
          "403": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecPerm001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic004"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Forbidden action"
          },
          "404": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SchedTask003"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            404
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Not Found"
          },
          "500": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SchedTask001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Internal Server error"
          }
        },
        "summary": "Delete an existing scheduled task",
        "tags": [
          "scheduler.task"
        ]
      }
    },
    "/api/v1/reports": {
      "get": {
        "summary": "List all registered CSV reports",
        "description": "List all registered CSV reports, including the expired ones if necessary.\n\nThis API does not return the reports contents but a set of metadata describing each report\n",
        "operationId": "report.csv.listAllMetadata",
        "parameters": [
          {
            "in": "query",
            "name": "expired",
            "required": false,
            "schema": {
              "type": "boolean",
              "default": false
            },
            "description": "If set to `true` the API will return expired and available reports CSV"
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/ReportCSVMetadata"
                  }
                }
              }
            },
            "description": "Return a set of reports CSV metadata"
          },
          "204": {
            "description": "No metadata available"
          },
          "401": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecPerm001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth003"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth004"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth005"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth006"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth007"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth008"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth009"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Unauthorized request"
          },
          "403": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecPerm001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic004"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Forbidden action"
          },
          "500": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/ReportCsvError001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Internal Server error"
          }
        },
        "tags": [
          "report.csv"
        ]
      }
    },
    "/api/v1/reports/{reportName}": {
      "get": {
        "summary": "List all CSV reports linked to one report",
        "description": "List all CSV reports linked to one report. Expired reports can also be included.\n\nThis API does not return the reports contents but a set of metadata describing each report\n",
        "operationId": "report.csv.listAllMetadataByReportID",
        "parameters": [
          {
            "in": "path",
            "name": "reportName",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Report identifier to list the CSV reports from"
          },
          {
            "in": "query",
            "name": "expired",
            "required": false,
            "schema": {
              "type": "boolean",
              "default": false
            },
            "description": "If set to `true` the API will return expired and available reports CSV"
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/ReportCSVMetadata"
                  }
                }
              }
            },
            "description": "CSV Reports metadata"
          },
          "204": {
            "description": "No metadata available"
          },
          "401": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth003"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth004"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth005"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth006"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth007"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth008"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth009"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Unauthorized request"
          },
          "403": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecPerm001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic004"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Forbidden action"
          },
          "500": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/ReportCsvError001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Internal Server error"
          }
        },
        "tags": [
          "report.csv"
        ]
      }
    },
    "/reports/{uuid}": {
      "get": {
        "summary": "Download a CSV report by its UUID",
        "security": [],
        "description": "Download a CSV report by its UUID. Downloading a CSV does not require authentication",
        "operationId": "report.csv.downloadByUUID",
        "parameters": [
          {
            "in": "path",
            "name": "uuid",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/UUID"
            },
            "description": "The identifier of the CSV to download (UUID)"
          }
        ],
        "responses": {
          "200": {
            "content": {
              "text/csv": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "description": "HTTP Stream containing the CSV contents"
          },
          "403": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecPerm001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic004"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Forbidden action"
          },
          "404": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/ReportCsvError002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            404
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "CSV Report not found"
          },
          "500": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/ReportCsvError001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Internal Server error"
          }
        },
        "tags": [
          "report.csv"
        ]
      }
    },
    "/api/v1/reports/{uuid}": {
      "delete": {
        "description": "Delete a report CSV by its UUID",
        "summary": "Delete a report CSV by its UUID",
        "operationId": "report.csv.delete",
        "parameters": [
          {
            "in": "path",
            "name": "uuid",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/UUID"
            },
            "description": "The UUID of the report CSV to delete"
          }
        ],
        "responses": {
          "204": {
            "description": "The report CSV has been successfully deleted"
          },
          "401": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecPerm001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth003"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth004"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth005"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth006"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth007"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth008"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth009"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Unauthorized request"
          },
          "403": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecPerm001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic004"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Forbidden action"
          },
          "404": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/ReportCsvError002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            404
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "The report CSV with the given UUID is not found"
          },
          "500": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/ReportCsvError001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Internal Server error"
          }
        },
        "tags": [
          "report.csv"
        ]
      }
    },
    "/api/v1/security/identity/locals": {
      "get": {
        "operationId": "security.identity.local.list",
        "tags": [
          "security.identity.local"
        ],
        "summary": "List local identities",
        "description": "Retrieve the list of all existing local identities.",
        "responses": {
          "200": {
            "description": "Local identity list",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/LocalIdentityResponse"
                  }
                }
              }
            }
          },
          "204": {
            "description": "No local identity defined or insufficient permissions"
          },
          "401": {
            "description": "Authentication error",
            "content": {
              "application/problem+json": {
                "schema": {
                  "anyOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth003"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth004"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth005"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth006"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth007"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth008"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth009"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/LocalId009"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/LocalId010"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            }
          },
          "403": {
            "description": "Forbidden action",
            "content": {
              "application/problem+json": {
                "schema": {
                  "anyOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecPerm001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic004"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            }
          },
          "500": {
            "description": "Unexpected internal server error.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "anyOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/LocalId001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            }
          }
        }
      },
      "post": {
        "operationId": "security.identity.local.add",
        "tags": [
          "security.identity.local"
        ],
        "summary": "Create a local identity",
        "description": "Create a local identity. By default, a local identity doesn't have a password and therefore cannot log in to Horizon. To set a password, call the [set password endpoint](#tag/security.identity.local/operation/security.identity.local.password.set) after creating the local identity.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/LocalIdentityOnAdd"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Local identity successfully registered",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/LocalIdentityResponse"
                }
              }
            }
          },
          "400": {
            "description": "Unable to register the local identity",
            "content": {
              "application/problem+json": {
                "schema": {
                  "anyOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/LocalId002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            400
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/LocalId004"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            400
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            }
          },
          "401": {
            "description": "Authentication error",
            "content": {
              "application/problem+json": {
                "schema": {
                  "anyOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth003"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth004"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth005"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth006"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth007"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth008"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth009"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/LocalId009"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/LocalId010"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            }
          },
          "403": {
            "description": "Forbidden action",
            "content": {
              "application/problem+json": {
                "schema": {
                  "anyOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecPerm001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic004"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            }
          },
          "500": {
            "description": "Unexpected internal server error",
            "content": {
              "application/problem+json": {
                "schema": {
                  "anyOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/LocalId001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            }
          }
        }
      },
      "put": {
        "operationId": "security.identity.local.update",
        "tags": [
          "security.identity.local"
        ],
        "summary": "Update a local identity",
        "description": "Update a local identity",
        "requestBody": {
          "description": "Local identity to update",
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/LocalIdentity"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Local identity successfully updated",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/LocalIdentityResponse"
                }
              }
            }
          },
          "400": {
            "description": "Unable to update local identity",
            "content": {
              "application/problem+json": {
                "schema": {
                  "anyOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/LocalId002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            400
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            }
          },
          "401": {
            "description": "Authentication error",
            "content": {
              "application/problem+json": {
                "schema": {
                  "anyOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth003"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth004"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth005"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth006"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth007"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth008"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth009"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/LocalId009"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/LocalId010"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            }
          },
          "403": {
            "description": "Forbidden action",
            "content": {
              "application/problem+json": {
                "schema": {
                  "anyOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecPerm001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic004"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            }
          },
          "404": {
            "description": "Local identity not found",
            "content": {
              "application/problem+json": {
                "schema": {
                  "anyOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/LocalId003"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            404
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            }
          },
          "500": {
            "description": "Unexpected internal server error",
            "content": {
              "application/problem+json": {
                "schema": {
                  "anyOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/LocalId001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            }
          }
        }
      },
      "patch": {
        "operationId": "security.identity.local.password.set",
        "tags": [
          "security.identity.local"
        ],
        "summary": "Set the password for a local identity",
        "description": "You can define the password that will be used by this local identity to log in to the web UI or use APIs. You must have the right management permissions to perform this action, and the password must meet the local identity provider's password policy requirements, if any has been defined.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SetPasswordRequest"
              }
            }
          }
        },
        "responses": {
          "204": {
            "description": "Local identity's successfully set"
          },
          "400": {
            "description": "Unable to set local identity password",
            "content": {
              "application/problem+json": {
                "schema": {
                  "anyOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/LocalId007"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            400
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/LocalId010"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            400
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            }
          },
          "401": {
            "description": "Authentication error",
            "content": {
              "application/problem+json": {
                "schema": {
                  "anyOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth003"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth004"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth005"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth006"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth007"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth008"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth009"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/LocalId009"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/LocalId010"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            }
          },
          "403": {
            "description": "Forbidden action",
            "content": {
              "application/problem+json": {
                "schema": {
                  "anyOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecPerm001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/LocalId005"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic004"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            }
          },
          "404": {
            "description": "Local identity not found",
            "content": {
              "application/problem+json": {
                "schema": {
                  "anyOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/LocalId003"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            404
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            }
          },
          "500": {
            "description": "Unexpected internal server error",
            "content": {
              "application/problem+json": {
                "schema": {
                  "anyOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/LocalId001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/security/identity/locals/{identifier}": {
      "get": {
        "operationId": "security.identity.local.get",
        "tags": [
          "security.identity.local"
        ],
        "summary": "Retrieve a local identity",
        "description": "Given an identifier, retrieve the full Local Identity object using this endpoint.",
        "responses": {
          "200": {
            "description": "The local identity",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/LocalIdentityResponse"
                }
              }
            }
          },
          "401": {
            "description": "Authentication error",
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth003"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth004"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth005"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth006"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth007"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth008"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth009"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/LocalId009"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            }
          },
          "403": {
            "description": "Forbidden action",
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecPerm001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic004"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            }
          },
          "404": {
            "description": "Local identity not found",
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/LocalId003"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            404
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            }
          },
          "500": {
            "description": "Unexpected internal server error",
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/LocalId001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            }
          }
        },
        "parameters": [
          {
            "in": "path",
            "name": "identifier",
            "description": "Local identity identifier.",
            "example": "administrator",
            "schema": {
              "type": "string"
            },
            "required": true
          }
        ]
      },
      "delete": {
        "operationId": "security.identity.local.delete",
        "tags": [
          "security.identity.local"
        ],
        "summary": "Delete a local identity",
        "description": "Delete an existing local identity based on its identifier",
        "responses": {
          "204": {
            "description": "Local identity successfully deleted"
          },
          "401": {
            "description": "Authentication error.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth003"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth004"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth005"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth006"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth007"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth008"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth009"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/LocalId009"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            }
          },
          "403": {
            "description": "Forbidden action",
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecPerm001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecPerm008"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic004"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            }
          },
          "404": {
            "description": "Local identity not found",
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/LocalId003"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            404
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            }
          },
          "500": {
            "description": "Unexpected internal server error",
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/LocalId001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            }
          }
        },
        "parameters": [
          {
            "in": "path",
            "name": "identifier",
            "description": "Local identity identifier.",
            "example": "administrator",
            "schema": {
              "type": "string"
            },
            "required": true
          }
        ]
      }
    },
    "/api/v1/security/identity/locals/password/{identifier}": {
      "get": {
        "operationId": "security.identity.local.password.reset.request",
        "tags": [
          "security.identity.local"
        ],
        "summary": "Request a password reset",
        "description": "This is the first step in the password reset flow. The user will receive a reset UUID by email that can be used to complete the password reset request.",
        "responses": {
          "201": {
            "description": "Password reset request successfully registered"
          },
          "401": {
            "description": "Bad request error",
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/LocalId011"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            }
          },
          "403": {
            "description": "Forbidden action",
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic004"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            }
          },
          "500": {
            "description": "Unexpected internal server error",
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/LocalId001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            }
          }
        },
        "parameters": [
          {
            "in": "path",
            "name": "identifier",
            "description": "Local identity identifier",
            "example": "administrator",
            "schema": {
              "type": "string"
            },
            "required": true
          }
        ]
      }
    },
    "/api/v1/security/identity/locals/password": {
      "post": {
        "operationId": "security.identity.local.password.reset",
        "tags": [
          "security.identity.local"
        ],
        "summary": "Reset a password",
        "description": "This is the second step of the password reset flow. Following a password reset request, the user will receive a reset UUID by email. They can then send this UUID and a new password to reset their password.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ResetPasswordRequest"
              }
            }
          }
        },
        "responses": {
          "204": {
            "description": "Local identity's password successfully reset"
          },
          "401": {
            "description": "Authentication error",
            "content": {
              "application/problem+json": {
                "schema": {
                  "anyOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/LocalId009"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/LocalId010"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/LocalId011"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            }
          },
          "403": {
            "description": "Forbidden action",
            "content": {
              "application/problem+json": {
                "schema": {
                  "anyOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic004"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            }
          },
          "500": {
            "description": "Unexpected internal server error",
            "content": {
              "application/problem+json": {
                "schema": {
                  "anyOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/LocalId001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/security/identity/providers/dynamic/enabled": {
      "get": {
        "operationId": "security.identity.provider.enabled",
        "tags": [
          "security.identity.provider"
        ],
        "summary": "List the enabled identity provider(s)",
        "description": "Return the list of enabled dynamic identity provider(s)",
        "responses": {
          "200": {
            "description": "Dynamic enabled identity provider list",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/EnabledIdentityProviderResponse"
                  }
                }
              }
            }
          },
          "204": {
            "description": "No enabled identity provider"
          },
          "403": {
            "description": "Forbidden action",
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic004"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            }
          },
          "500": {
            "description": "Identity Provider Error",
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecIdProv001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            }
          }
        },
        "parameters": [
          {
            "in": "query",
            "name": "enabledOnUI",
            "schema": {
              "nullable": true,
              "type": "boolean"
            },
            "required": false,
            "description": "Whether the identity provider is visible on the UI"
          }
        ]
      }
    },
    "/api/v1/security/identity/providers": {
      "get": {
        "operationId": "security.identity.provider.list",
        "tags": [
          "security.identity.provider"
        ],
        "summary": "List all the identity provider(s)",
        "description": "List all the existing identity provider(s), regardless of whether they are enabled.",
        "responses": {
          "200": {
            "description": "Identity provider list",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "oneOf": [
                      {
                        "$ref": "#/components/schemas/LocalIdentityProviderResponse"
                      },
                      {
                        "$ref": "#/components/schemas/OidcIdentityProviderResponse"
                      }
                    ]
                  }
                }
              }
            }
          },
          "204": {
            "description": "No identity provider defined or insufficient permissions"
          },
          "401": {
            "description": "Authentication error",
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth003"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth004"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth005"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth006"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth007"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth008"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth009"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            }
          },
          "403": {
            "description": "Forbidden action",
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecPerm001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic004"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            }
          },
          "500": {
            "description": "Unexpected internal server error",
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecIdProv001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            }
          }
        }
      },
      "post": {
        "operationId": "security.identity.provider.add",
        "tags": [
          "security.identity.provider"
        ],
        "summary": "Create a new identity provider",
        "description": "Create a new identity provider. The identity provider can be either a local identity provider or an OIDC identity provider.",
        "requestBody": {
          "description": "The identity provider to register",
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "oneOf": [
                  {
                    "$ref": "#/components/schemas/LocalIdentityProvider"
                  },
                  {
                    "$ref": "#/components/schemas/OidcIdentityProvider"
                  }
                ]
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Identity provider successfully registered",
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "$ref": "#/components/schemas/OidcIdentityProviderResponse"
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "description": "Unable to register the identity provider",
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecIdProv002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            400
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecIdProv004"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            400
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            }
          },
          "401": {
            "description": "Authentication error",
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth003"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth004"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth005"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth006"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth007"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth008"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth009"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            }
          },
          "403": {
            "description": "Forbidden action",
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic004"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecPerm001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            }
          },
          "500": {
            "description": "Unexpected internal server error",
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecIdProv001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            }
          }
        }
      },
      "put": {
        "operationId": "security.identity.provider.update",
        "tags": [
          "security.identity.provider"
        ],
        "summary": "Update an existing identity provider",
        "description": "Update an existing identity provider",
        "requestBody": {
          "description": "Identity provider to update",
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "oneOf": [
                  {
                    "allOf": [
                      {
                        "$ref": "#/components/schemas/LocalIdentityProvider"
                      }
                    ]
                  },
                  {
                    "allOf": [
                      {
                        "$ref": "#/components/schemas/OidcIdentityProvider"
                      }
                    ]
                  }
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The updated identity provider",
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "$ref": "#/components/schemas/LocalIdentityProviderResponse"
                    },
                    {
                      "$ref": "#/components/schemas/OidcIdentityProviderResponse"
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "description": "Unable to update identity provider",
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecIdProv002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            400
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecIdProv006"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            400
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            }
          },
          "401": {
            "description": "Authentication error",
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth003"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth004"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth005"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth006"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth007"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth008"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth009"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            }
          },
          "403": {
            "description": "Forbidden action",
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecPerm001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic004"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            }
          },
          "404": {
            "description": "Identity provider not found",
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecIdProv003"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            404
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            }
          },
          "500": {
            "description": "Unexpected internal server error",
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecIdProv001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/security/identity/providers/{name}": {
      "get": {
        "operationId": "security.identity.provider.get",
        "tags": [
          "security.identity.provider"
        ],
        "summary": "Retrieve a existing identity provider",
        "description": "Retrieve a existing identity provider based on its name",
        "responses": {
          "200": {
            "description": "The identity provider",
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "$ref": "#/components/schemas/LocalIdentityProviderResponse"
                    },
                    {
                      "$ref": "#/components/schemas/OidcIdentityProviderResponse"
                    }
                  ]
                }
              }
            }
          },
          "401": {
            "description": "Authentication error",
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth003"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth004"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth005"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth006"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth007"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth008"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth009"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            }
          },
          "403": {
            "description": "Forbidden action",
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic004"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecPerm001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            }
          },
          "404": {
            "description": "Identity provider not found",
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecIdProv003"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            404
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            }
          },
          "500": {
            "description": "Unexpected internal server error",
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecIdProv001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            }
          }
        },
        "parameters": [
          {
            "in": "path",
            "name": "name",
            "schema": {
              "type": "string"
            },
            "required": true,
            "description": "The internal name of the identity provider to retrieve"
          }
        ]
      },
      "delete": {
        "operationId": "security.identity.provider.delete",
        "tags": [
          "security.identity.provider"
        ],
        "summary": "Delete an identity provider",
        "description": "Delete an existing identity provider based on its name",
        "responses": {
          "204": {
            "description": "Identity provider successfully deleted"
          },
          "400": {
            "description": "Unable to delete identity provider",
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecIdProv006"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            400
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            }
          },
          "401": {
            "description": "Authentication error",
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth003"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth004"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth005"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth006"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth007"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth008"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth009"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            }
          },
          "403": {
            "description": "Forbidden action.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecPerm001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic004"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            }
          },
          "404": {
            "description": "Identity provider not found",
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecIdProv003"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            404
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            }
          },
          "500": {
            "description": "Unexpected internal server error",
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecIdProv001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            }
          }
        },
        "parameters": [
          {
            "in": "path",
            "name": "name",
            "schema": {
              "type": "string"
            },
            "required": true,
            "description": "The internal name of the identity provider to retrieve"
          }
        ]
      }
    },
    "/api/v1/security/identity/providers/search": {
      "post": {
        "operationId": "security.identity.provider.search",
        "tags": [
          "security.identity.provider"
        ],
        "summary": "Retrieve the provider of a principal",
        "description": "Retrieve which identity provider holds the authentication information for a given identifier or a given contact e-mail.",
        "requestBody": {
          "description": "The principal search request",
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PrincipalInfoSearchRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The principal search results",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/PrincipalInfoSearchResultResponse"
                  }
                }
              }
            }
          },
          "204": {
            "description": "No principal matching the search request"
          },
          "400": {
            "description": "Unable to search for principal",
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecIdProv005"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            400
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            }
          },
          "401": {
            "description": "Authentication error",
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth003"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth004"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth005"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth006"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth007"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth008"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth009"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            }
          },
          "403": {
            "description": "Forbidden action",
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecPerm001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic004"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            }
          },
          "500": {
            "description": "Unexpected internal server error",
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecIdProv001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/security/passwordpolicies": {
      "get": {
        "operationId": "password.policy.list",
        "tags": [
          "security.passwordpolicy"
        ],
        "summary": "List password policies",
        "description": "Retrieve the list of all existing password policies, including the default one (Horizon-Default)",
        "responses": {
          "200": {
            "description": "Password policy list",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/PasswordPolicyResponse"
                  }
                }
              }
            }
          },
          "204": {
            "description": "No password policy defined or insufficient permissions"
          },
          "401": {
            "description": "Authentication error",
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth003"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth004"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth005"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth006"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth007"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth008"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth009"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            }
          },
          "403": {
            "description": "Forbidden action",
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecPerm001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic004"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            }
          },
          "500": {
            "description": "Unexpected internal server error",
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/PasswordPolicy001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            }
          }
        }
      },
      "post": {
        "operationId": "password.policy.add",
        "tags": [
          "security.passwordpolicy"
        ],
        "summary": "Create a password policy",
        "description": "Create a new password policy. By default, Horizon has a default password policy named 'Horizon-Default' that enforces 16 bytes passwords",
        "requestBody": {
          "description": "The password policy to register",
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PasswordPolicy"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Password policy successfully registered",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PasswordPolicyResponse"
                }
              }
            }
          },
          "400": {
            "description": "Unable to register the password policy",
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/PasswordPolicy002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            400
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/PasswordPolicy004"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            400
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            }
          },
          "401": {
            "description": "Authentication error",
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth003"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth004"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth005"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth006"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth007"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth008"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth009"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            }
          },
          "403": {
            "description": "Forbidden action",
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecPerm001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic004"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            }
          },
          "500": {
            "description": "Unexpected internal server error",
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/PasswordPolicy001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            }
          }
        }
      },
      "put": {
        "operationId": "password.policy.update",
        "tags": [
          "security.passwordpolicy"
        ],
        "summary": "Update a password policy",
        "description": "Update an existing password policy based on its internal name",
        "requestBody": {
          "description": "The password policy to update",
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/PasswordPolicy"
                  }
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Password policy successfully updated",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PasswordPolicyResponse"
                }
              }
            }
          },
          "400": {
            "description": "Unable to update the password policy",
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/PasswordPolicy002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            400
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            }
          },
          "401": {
            "description": "Authentication error",
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth003"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth004"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth005"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth006"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth007"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth008"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth009"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            }
          },
          "403": {
            "description": "Forbidden action",
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecPerm001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic004"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            }
          },
          "404": {
            "description": "Password policy not found",
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/PasswordPolicy003"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            404
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            }
          },
          "500": {
            "description": "Unexpected internal server error",
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/PasswordPolicy001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/security/passwordpolicies/{name}": {
      "get": {
        "operationId": "password.policy.get",
        "tags": [
          "security.passwordpolicy"
        ],
        "summary": "Retrieve a password policy",
        "description": "Retrieve an existing password policy based on its internal name",
        "responses": {
          "200": {
            "description": "The password policy",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PasswordPolicyResponse"
                }
              }
            }
          },
          "401": {
            "description": "Authentication error",
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth003"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth004"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth005"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth006"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth007"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth008"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth009"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            }
          },
          "403": {
            "description": "Forbidden action",
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecPerm001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic004"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            }
          },
          "404": {
            "description": "Password policy not found",
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/PasswordPolicy003"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            404
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            }
          },
          "500": {
            "description": "Unexpected internal server error",
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/PasswordPolicy001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            }
          }
        },
        "parameters": [
          {
            "in": "path",
            "name": "name",
            "schema": {
              "type": "string"
            },
            "required": true,
            "description": "The internal name of the password policy to retrieve"
          }
        ]
      },
      "delete": {
        "operationId": "password.policy.delete",
        "tags": [
          "security.passwordpolicy"
        ],
        "summary": "Delete a password policy",
        "description": "Delete an existing password policy based on its internal name",
        "responses": {
          "204": {
            "description": "Password policy successfully deleted"
          },
          "400": {
            "description": "Unable to Delete the password policy",
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/PasswordPolicy005"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            400
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            }
          },
          "401": {
            "description": "Authentication error",
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth003"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth004"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth005"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth006"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth007"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth008"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth009"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            }
          },
          "403": {
            "description": "Forbidden action",
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecPerm001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic004"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            }
          },
          "404": {
            "description": "Password policy not found",
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/PasswordPolicy003"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            404
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            }
          },
          "500": {
            "description": "Unexpected internal server error",
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/PasswordPolicy001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            }
          }
        },
        "parameters": [
          {
            "in": "path",
            "name": "name",
            "schema": {
              "type": "string"
            },
            "required": true,
            "description": "The internal name of the password policy to delete"
          }
        ]
      }
    },
    "/api/v1/security/passwordpolicies/{name}/generate": {
      "get": {
        "operationId": "password.policy.generate",
        "tags": [
          "security.passwordpolicy"
        ],
        "summary": "Generate a password with a password policy",
        "description": "Generate a random password compliant with a given password policy. If the given policy does not exist, generate a password based on default password policy (Horizon-Default)",
        "responses": {
          "200": {
            "description": "The generated password",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string",
                  "description": "The generated password, returned as a plain-text string"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden action",
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic004"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            }
          },
          "500": {
            "description": "Unexpected internal server error",
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/PasswordPolicy001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            }
          }
        },
        "parameters": [
          {
            "in": "path",
            "name": "name",
            "schema": {
              "type": "string"
            },
            "required": true,
            "description": "The internal name of the password policy that the generated password must comply with"
          }
        ]
      }
    },
    "/api/v1/security/principalinfos": {
      "post": {
        "operationId": "security.principal.info.add",
        "tags": [
          "security.principalinfo"
        ],
        "summary": "Create a new principal",
        "description": "Create a new principal in Horizon",
        "requestBody": {
          "description": "The principal's information to register",
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/PrincipalInfo"
                  }
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Principal information successfully registered",
            "content": {
              "application/json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/PrincipalInfoResponse"
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "description": "Unable to register the principal",
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecPI002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            400
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecPI004"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            400
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            }
          },
          "401": {
            "description": "Authentication error",
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth003"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth004"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth005"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth006"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth007"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth008"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth009"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            }
          },
          "403": {
            "description": "Forbidden action",
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecPerm001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic004"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            }
          },
          "500": {
            "description": "Unexpected internal server error",
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecPI001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            }
          }
        }
      },
      "put": {
        "operationId": "security.principal.info.update",
        "tags": [
          "security.principalinfo"
        ],
        "summary": "Update a principal's information",
        "description": "Update an existing principal's information",
        "requestBody": {
          "description": "The principal information to update",
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PrincipalInfo"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Principal information successfully updated",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PrincipalInfoResponse"
                }
              }
            }
          },
          "400": {
            "description": "Unable to register the Principal Info",
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecPI002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            400
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            }
          },
          "401": {
            "description": "Authentication error",
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth003"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth004"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth005"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth006"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth007"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth008"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth009"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            }
          },
          "403": {
            "description": "Forbidden action",
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecPerm001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic004"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            }
          },
          "404": {
            "description": "Principal Info not found",
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecPI003"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            404
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            }
          },
          "500": {
            "description": "Unexpected internal server error",
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecPI001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/security/principalinfos/{identifier}": {
      "get": {
        "operationId": "scurity.principal.info.get",
        "tags": [
          "security.principalinfo"
        ],
        "summary": "Retrieve a principal information",
        "description": "Retrieve the security information of an existing principal based on its identifier",
        "responses": {
          "200": {
            "description": "The principal information",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PrincipalInfoResponse"
                }
              }
            }
          },
          "401": {
            "description": "Authentication error",
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth003"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth004"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth005"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth006"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth007"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth008"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth009"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            }
          },
          "403": {
            "description": "Forbidden action",
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecPerm001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic004"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            }
          },
          "404": {
            "description": "Principal Info not found",
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecPI003"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            404
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            }
          },
          "500": {
            "description": "Unexpected internal server error",
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecPI001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            }
          }
        },
        "parameters": [
          {
            "in": "path",
            "name": "identifier",
            "schema": {
              "type": "string"
            },
            "required": true,
            "description": "The identifier of the principal to retrieve information of"
          }
        ]
      },
      "delete": {
        "operationId": "security.principal.info.delete",
        "tags": [
          "security.principalinfo"
        ],
        "summary": "Delete a principal",
        "description": "Delete an existing principal based on its identifier",
        "responses": {
          "204": {
            "description": "Principal information successfully deleted"
          },
          "401": {
            "description": "Authentication error",
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth003"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth004"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth005"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth006"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth007"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth008"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth009"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            }
          },
          "403": {
            "description": "Forbidden action",
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecPerm001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic004"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            }
          },
          "404": {
            "description": "Principal Information not found",
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecPI003"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            404
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            }
          },
          "500": {
            "description": "Unexpected internal server error",
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecPI001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            }
          }
        },
        "parameters": [
          {
            "in": "path",
            "name": "identifier",
            "schema": {
              "type": "string"
            },
            "required": true,
            "description": "The identifier of the principal to delete"
          }
        ]
      }
    },
    "/api/v1/security/principalinfos/search": {
      "post": {
        "operationId": "security.principal.info.search",
        "tags": [
          "security.principalinfo"
        ],
        "summary": "Search for principal information",
        "description": "Search for principal information. Search criteria are combined using the 'or' operator",
        "requestBody": {
          "description": "The principal information search request",
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PrincipalInfoSearchQuery"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The principal information search results",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PrincipalInfoSearchResultsResponse"
                }
              }
            }
          },
          "400": {
            "description": "Unable to find the Principal Information",
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecPI005"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            400
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            }
          },
          "401": {
            "description": "Authentication error",
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth003"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth004"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth005"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth006"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth007"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth008"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth009"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            }
          },
          "403": {
            "description": "Forbidden action",
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecPerm001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic004"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            }
          },
          "500": {
            "description": "Unexpected internal server error",
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecPI001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/security/roles": {
      "get": {
        "operationId": "security.role.list",
        "tags": [
          "security.role"
        ],
        "summary": "List roles",
        "description": "Retrieves a list of all existing roles",
        "responses": {
          "200": {
            "description": "Role list",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/RoleResponse"
                  }
                }
              }
            }
          },
          "204": {
            "description": "No role defined or insufficient permissions"
          },
          "401": {
            "description": "Authentication error",
            "content": {
              "application/problem+json": {
                "schema": {
                  "anyOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth003"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth004"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth005"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth006"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth007"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth008"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth009"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            }
          },
          "403": {
            "description": "Forbidden action",
            "content": {
              "application/problem+json": {
                "schema": {
                  "anyOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecPerm001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic004"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            }
          },
          "500": {
            "description": "Unexpected internal server error",
            "content": {
              "application/problem+json": {
                "schema": {
                  "anyOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Role001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            }
          }
        }
      },
      "post": {
        "operationId": "security.role.add",
        "tags": [
          "security.role"
        ],
        "summary": "Create a new role",
        "description": "Create a new role in Horizon",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Role"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Role successfully registered",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RoleResponse"
                }
              }
            }
          },
          "400": {
            "description": "Unable to register the role",
            "content": {
              "application/problem+json": {
                "schema": {
                  "anyOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Role002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            400
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Role004"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            400
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            }
          },
          "401": {
            "description": "Authentication error",
            "content": {
              "application/problem+json": {
                "schema": {
                  "anyOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth003"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth004"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth005"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth006"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth007"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth008"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth009"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            }
          },
          "403": {
            "description": "Forbidden action",
            "content": {
              "application/problem+json": {
                "schema": {
                  "anyOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecPerm001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic004"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            }
          },
          "500": {
            "description": "Unexpected internal server error",
            "content": {
              "application/problem+json": {
                "schema": {
                  "anyOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Role001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            }
          }
        }
      },
      "put": {
        "operationId": "security.role.update",
        "tags": [
          "security.role"
        ],
        "summary": "Update a role",
        "description": "Update an existing role",
        "requestBody": {
          "description": "The role to update",
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Role"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Role successfully updated",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RoleResponse"
                }
              }
            }
          },
          "400": {
            "description": "Unable to update role",
            "content": {
              "application/problem+json": {
                "schema": {
                  "anyOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Role002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            400
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            }
          },
          "401": {
            "description": "Authentication error",
            "content": {
              "application/problem+json": {
                "schema": {
                  "anyOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth003"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth004"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth005"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth006"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth007"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth008"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth009"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            }
          },
          "403": {
            "description": "Forbidden action",
            "content": {
              "application/problem+json": {
                "schema": {
                  "anyOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecPerm001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic004"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            }
          },
          "404": {
            "description": "Role not found",
            "content": {
              "application/problem+json": {
                "schema": {
                  "anyOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Role003"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            404
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            }
          },
          "500": {
            "description": "Unexpected internal server error",
            "content": {
              "application/problem+json": {
                "schema": {
                  "anyOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Role001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/security/roles/{name}": {
      "get": {
        "operationId": "security.role.get",
        "tags": [
          "security.role"
        ],
        "summary": "Retrieve a role",
        "description": "Retrieves an existing role based on its name",
        "responses": {
          "200": {
            "description": "The retrieved role",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RoleResponse"
                }
              }
            }
          },
          "401": {
            "description": "Authentication error",
            "content": {
              "application/problem+json": {
                "schema": {
                  "anyOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth003"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth004"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth005"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth006"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth007"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth008"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth009"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            }
          },
          "403": {
            "description": "Forbidden action",
            "content": {
              "application/problem+json": {
                "schema": {
                  "anyOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecPerm001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic004"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            }
          },
          "404": {
            "description": "Role not found",
            "content": {
              "application/problem+json": {
                "schema": {
                  "anyOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Role003"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            404
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            }
          },
          "500": {
            "description": "Unexpected internal server error",
            "content": {
              "application/problem+json": {
                "schema": {
                  "anyOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Role001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            }
          }
        },
        "parameters": [
          {
            "in": "path",
            "name": "name",
            "description": "Role name",
            "example": "SuperAdmin",
            "schema": {
              "type": "string"
            },
            "required": true
          }
        ]
      },
      "delete": {
        "operationId": "security.role.delete",
        "tags": [
          "security.role"
        ],
        "summary": "Delete a role",
        "description": "Delete an existing role based on its name",
        "responses": {
          "204": {
            "description": "Role successfully deleted"
          },
          "401": {
            "description": "Authentication error",
            "content": {
              "application/problem+json": {
                "schema": {
                  "anyOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth003"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth004"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth005"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth006"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth007"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth008"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth009"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            }
          },
          "403": {
            "description": "Forbidden action",
            "content": {
              "application/problem+json": {
                "schema": {
                  "anyOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecPerm001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic004"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            }
          },
          "404": {
            "description": "Role not found",
            "content": {
              "application/problem+json": {
                "schema": {
                  "anyOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Role003"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            404
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            }
          },
          "500": {
            "description": "Unexpected internal server error",
            "content": {
              "application/problem+json": {
                "schema": {
                  "anyOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Role001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            }
          }
        },
        "parameters": [
          {
            "in": "path",
            "name": "name",
            "description": "Role name",
            "example": "SuperAdmins",
            "schema": {
              "type": "string"
            },
            "required": true
          }
        ]
      }
    },
    "/api/v1/security/roles/{name}/members": {
      "get": {
        "operationId": "security.role.members.get",
        "tags": [
          "security.role"
        ],
        "summary": "Retrieve a role's members",
        "description": "Retrieves members of a role based on its name",
        "responses": {
          "200": {
            "description": "The role's members",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "example": [
                    "member-a",
                    "member-b"
                  ],
                  "items": {
                    "type": "string"
                  }
                }
              }
            }
          },
          "204": {
            "description": "No members"
          },
          "401": {
            "description": "Authentication error",
            "content": {
              "application/problem+json": {
                "schema": {
                  "anyOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth003"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth004"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth005"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth006"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth007"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth008"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth009"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            }
          },
          "403": {
            "description": "Forbidden action",
            "content": {
              "application/problem+json": {
                "schema": {
                  "anyOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecPerm001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic004"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            }
          },
          "404": {
            "description": "Role not found",
            "content": {
              "application/problem+json": {
                "schema": {
                  "anyOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Role003"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            404
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            }
          },
          "500": {
            "description": "Unexpected internal server error",
            "content": {
              "application/problem+json": {
                "schema": {
                  "anyOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Role001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            }
          }
        },
        "parameters": [
          {
            "in": "path",
            "name": "name",
            "description": "Role name",
            "example": "SuperAdmin",
            "schema": {
              "type": "string"
            },
            "required": true
          }
        ]
      },
      "post": {
        "operationId": "security.role.members.add",
        "tags": [
          "security.role"
        ],
        "summary": "Add members to a role",
        "description": "Add the given members to the given role",
        "requestBody": {
          "description": "The members to add",
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "description": "The list of identifiers to add. Non existing identifiers will be created",
                "example": [
                  "member-a",
                  "member-b"
                ]
              }
            }
          }
        },
        "responses": {
          "204": {
            "description": "Members added"
          },
          "401": {
            "description": "Authentication error",
            "content": {
              "application/problem+json": {
                "schema": {
                  "anyOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth003"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth004"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth005"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth006"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth007"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth008"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth009"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            }
          },
          "403": {
            "description": "Forbidden action",
            "content": {
              "application/problem+json": {
                "schema": {
                  "anyOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecPerm001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic004"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            }
          },
          "404": {
            "description": "Role not found",
            "content": {
              "application/problem+json": {
                "schema": {
                  "anyOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Role003"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            404
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            }
          },
          "500": {
            "description": "Unexpected internal server error",
            "content": {
              "application/problem+json": {
                "schema": {
                  "anyOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Role001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            }
          }
        },
        "parameters": [
          {
            "in": "path",
            "name": "name",
            "description": "Role name",
            "example": "SuperAdmin",
            "schema": {
              "type": "string"
            },
            "required": true
          }
        ]
      },
      "delete": {
        "operationId": "security.role.members.remove",
        "tags": [
          "security.role"
        ],
        "summary": "Remove members from a role",
        "description": "Remove the given members from the given role",
        "requestBody": {
          "description": "The members to remove",
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "description": "The list of identifiers to remove",
                "example": [
                  "member-a",
                  "member-b"
                ]
              }
            }
          }
        },
        "responses": {
          "204": {
            "description": "Members removed"
          },
          "401": {
            "description": "Authentication error",
            "content": {
              "application/problem+json": {
                "schema": {
                  "anyOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth003"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth004"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth005"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth006"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth007"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth008"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth009"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            }
          },
          "403": {
            "description": "Forbidden action",
            "content": {
              "application/problem+json": {
                "schema": {
                  "anyOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecPerm001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic004"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            }
          },
          "404": {
            "description": "Role not found",
            "content": {
              "application/problem+json": {
                "schema": {
                  "anyOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Role003"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            404
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            }
          },
          "500": {
            "description": "Unexpected internal server error",
            "content": {
              "application/problem+json": {
                "schema": {
                  "anyOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Role001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            }
          }
        },
        "parameters": [
          {
            "in": "path",
            "name": "name",
            "description": "Role name",
            "example": "SuperAdmin",
            "schema": {
              "type": "string"
            },
            "required": true
          }
        ]
      }
    },
    "/api/v1/teams/{name}/members": {
      "get": {
        "operationId": "team.members.get",
        "tags": [
          "team"
        ],
        "summary": "Retrieve a team's members",
        "description": "Retrieves members of a team based on its name",
        "responses": {
          "200": {
            "description": "The team's members",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "example": [
                    "member-a",
                    "member-b"
                  ],
                  "items": {
                    "type": "string"
                  }
                }
              }
            }
          },
          "204": {
            "description": "No members"
          },
          "401": {
            "description": "Authentication error",
            "content": {
              "application/problem+json": {
                "schema": {
                  "anyOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecPerm001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth003"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth004"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth005"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth006"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth007"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth008"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth009"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            }
          },
          "403": {
            "description": "Forbidden action",
            "content": {
              "application/problem+json": {
                "schema": {
                  "anyOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecPerm001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic004"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            }
          },
          "404": {
            "description": "Team not found",
            "content": {
              "application/problem+json": {
                "schema": {
                  "anyOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Team003"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            404
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            }
          },
          "500": {
            "description": "Unexpected internal server error",
            "content": {
              "application/problem+json": {
                "schema": {
                  "anyOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Team001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            }
          }
        },
        "parameters": [
          {
            "in": "path",
            "name": "name",
            "description": "Team name",
            "example": "SuperAdmin",
            "schema": {
              "type": "string"
            },
            "required": true
          }
        ]
      },
      "post": {
        "operationId": "team.members.add",
        "tags": [
          "team"
        ],
        "summary": "Add members to a team",
        "description": "Add the given members to the given team",
        "requestBody": {
          "description": "The members to add",
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "description": "The list of identifiers to add. Non existing identifiers will be created",
                "example": [
                  "member-a",
                  "member-b"
                ]
              }
            }
          }
        },
        "responses": {
          "204": {
            "description": "Members added"
          },
          "401": {
            "description": "Authentication error",
            "content": {
              "application/problem+json": {
                "schema": {
                  "anyOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth003"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth004"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth005"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth006"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth007"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth008"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth009"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            }
          },
          "403": {
            "description": "Forbidden action",
            "content": {
              "application/problem+json": {
                "schema": {
                  "anyOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecPerm001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic004"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            }
          },
          "404": {
            "description": "Team not found",
            "content": {
              "application/problem+json": {
                "schema": {
                  "anyOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Team003"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            404
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            }
          },
          "500": {
            "description": "Unexpected internal server error",
            "content": {
              "application/problem+json": {
                "schema": {
                  "anyOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Team001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            }
          }
        },
        "parameters": [
          {
            "in": "path",
            "name": "name",
            "description": "Team name",
            "example": "SuperAdmin",
            "schema": {
              "type": "string"
            },
            "required": true
          }
        ]
      },
      "delete": {
        "operationId": "team.members.remove",
        "tags": [
          "team"
        ],
        "summary": "Remove members from a team",
        "description": "Remove the given members from the given team",
        "requestBody": {
          "description": "The members to remove",
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "description": "The list of identifiers to remove",
                "example": [
                  "member-a",
                  "member-b"
                ]
              }
            }
          }
        },
        "responses": {
          "204": {
            "description": "Members removed"
          },
          "401": {
            "description": "Authentication error",
            "content": {
              "application/problem+json": {
                "schema": {
                  "anyOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth003"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth004"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth005"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth006"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth007"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth008"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth009"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            }
          },
          "403": {
            "description": "Forbidden action",
            "content": {
              "application/problem+json": {
                "schema": {
                  "anyOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecPerm001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic004"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            }
          },
          "404": {
            "description": "Team not found",
            "content": {
              "application/problem+json": {
                "schema": {
                  "anyOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Team003"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            404
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            }
          },
          "500": {
            "description": "Unexpected internal server error",
            "content": {
              "application/problem+json": {
                "schema": {
                  "anyOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Team001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            }
          }
        },
        "parameters": [
          {
            "in": "path",
            "name": "name",
            "description": "Team name",
            "example": "SuperAdmin",
            "schema": {
              "type": "string"
            },
            "required": true
          }
        ]
      }
    },
    "/api/v1/security/teams": {
      "get": {
        "operationId": "security.team.list",
        "tags": [
          "security.team"
        ],
        "summary": "List the team(s)",
        "description": "List all the existing team(s) in Horizon",
        "responses": {
          "200": {
            "description": "Team list",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/TeamResponse"
                  }
                }
              }
            }
          },
          "204": {
            "description": "No team defined or insufficient permissions"
          },
          "401": {
            "description": "Authentication error",
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth003"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth004"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth005"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth006"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth007"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth008"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth009"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            }
          },
          "403": {
            "description": "Forbidden action",
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecPerm001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic004"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            }
          },
          "500": {
            "description": "Unexpected internal server error",
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Team001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            }
          }
        }
      },
      "post": {
        "operationId": "security.team.add",
        "tags": [
          "security.team"
        ],
        "summary": "Create a new team",
        "description": "Create a new team in Horizon",
        "requestBody": {
          "description": "Team to register",
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Team"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Team successfully registered",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TeamResponse"
                }
              }
            }
          },
          "400": {
            "description": "Unable to register the team",
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Team002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            400
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Team004"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            400
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            }
          },
          "401": {
            "description": "Authentication error",
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth003"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth004"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth005"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth006"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth007"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth008"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth009"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            }
          },
          "403": {
            "description": "Forbidden action",
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecPerm001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic004"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            }
          },
          "500": {
            "description": "Unexpected internal server error",
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Team001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            }
          }
        }
      },
      "put": {
        "operationId": "security.team.update",
        "tags": [
          "security.team"
        ],
        "summary": "Update a team",
        "description": "Update an existing team's information",
        "requestBody": {
          "description": "The team to update",
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/Team"
                  }
                ],
                "properties": {
                  "_id": {
                    "readOnly": false
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Team successfully updated",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TeamResponse"
                }
              }
            }
          },
          "400": {
            "description": "Unable to update team",
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Team002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            400
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            }
          },
          "401": {
            "description": "Authentication error",
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth003"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth004"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth005"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth006"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth007"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth008"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth009"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            }
          },
          "403": {
            "description": "Forbidden action",
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecPerm001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic004"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            }
          },
          "404": {
            "description": "Team not found",
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Team003"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            404
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            }
          },
          "500": {
            "description": "Unexpected internal server error",
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Team001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/security/teams/{name}": {
      "get": {
        "operationId": "security.team.get",
        "tags": [
          "security.team"
        ],
        "summary": "Retrieve a team",
        "description": "Retrieve an existing team based on its name",
        "responses": {
          "200": {
            "description": "The team to retrieve",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TeamResponse"
                }
              }
            }
          },
          "401": {
            "description": "Authentication error",
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth003"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth004"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth005"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth006"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth007"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth008"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth009"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            }
          },
          "403": {
            "description": "Forbidden action",
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecPerm001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic004"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            }
          },
          "404": {
            "description": "Team not found",
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Team003"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            404
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            }
          },
          "500": {
            "description": "Unexpected internal server error",
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Team001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            }
          }
        },
        "parameters": [
          {
            "in": "path",
            "name": "name",
            "schema": {
              "type": "string"
            },
            "required": true,
            "description": "The name of the team to retrieve",
            "example": "PKIOps"
          }
        ]
      },
      "delete": {
        "operationId": "security.team.delete",
        "tags": [
          "security.team"
        ],
        "summary": "Delete a team",
        "description": "Delete an existing team based on its name",
        "responses": {
          "204": {
            "description": "Team successfully deleted"
          },
          "401": {
            "description": "Authentication error",
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth003"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth004"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth005"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth006"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth007"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth008"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth009"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            }
          },
          "403": {
            "description": "Forbidden action",
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecPerm001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic004"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            }
          },
          "404": {
            "description": "Team not found",
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Team003"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            404
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            }
          },
          "500": {
            "description": "Unexpected internal server error",
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Team001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            }
          }
        },
        "parameters": [
          {
            "in": "path",
            "name": "name",
            "schema": {
              "type": "string"
            },
            "required": true,
            "description": "The name of the team to delete",
            "example": "PKIOps"
          }
        ]
      }
    },
    "/api/v1/security/teams/{name}/members": {
      "get": {
        "operationId": "security.team.members.get",
        "tags": [
          "security.team"
        ],
        "summary": "Retrieve a team's members",
        "description": "Retrieves members of a team based on its name",
        "responses": {
          "200": {
            "description": "The team's members",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "example": [
                    "member-a",
                    "member-b"
                  ],
                  "items": {
                    "type": "string"
                  }
                }
              }
            }
          },
          "204": {
            "description": "No members"
          },
          "401": {
            "description": "Authentication error",
            "content": {
              "application/problem+json": {
                "schema": {
                  "anyOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecPerm001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth003"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth004"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth005"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth006"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth007"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth008"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth009"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            }
          },
          "403": {
            "description": "Forbidden action",
            "content": {
              "application/problem+json": {
                "schema": {
                  "anyOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecPerm001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic004"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            }
          },
          "404": {
            "description": "Team not found",
            "content": {
              "application/problem+json": {
                "schema": {
                  "anyOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Team003"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            404
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            }
          },
          "500": {
            "description": "Unexpected internal server error",
            "content": {
              "application/problem+json": {
                "schema": {
                  "anyOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Team001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            }
          }
        },
        "parameters": [
          {
            "in": "path",
            "name": "name",
            "description": "Team name",
            "example": "SuperAdmin",
            "schema": {
              "type": "string"
            },
            "required": true
          }
        ]
      },
      "post": {
        "operationId": "security.team.members.add",
        "tags": [
          "security.team"
        ],
        "summary": "Add members to a team",
        "description": "Add the given members to the given team",
        "requestBody": {
          "description": "The members to add",
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "description": "The list of identifiers to add. Non existing identifiers will be created",
                "example": [
                  "member-a",
                  "member-b"
                ]
              }
            }
          }
        },
        "responses": {
          "204": {
            "description": "Members added"
          },
          "401": {
            "description": "Authentication error",
            "content": {
              "application/problem+json": {
                "schema": {
                  "anyOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth003"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth004"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth005"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth006"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth007"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth008"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth009"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            }
          },
          "403": {
            "description": "Forbidden action",
            "content": {
              "application/problem+json": {
                "schema": {
                  "anyOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecPerm001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic004"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            }
          },
          "404": {
            "description": "Team not found",
            "content": {
              "application/problem+json": {
                "schema": {
                  "anyOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Team003"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            404
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            }
          },
          "500": {
            "description": "Unexpected internal server error",
            "content": {
              "application/problem+json": {
                "schema": {
                  "anyOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Team001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            }
          }
        },
        "parameters": [
          {
            "in": "path",
            "name": "name",
            "description": "Team name",
            "example": "SuperAdmin",
            "schema": {
              "type": "string"
            },
            "required": true
          }
        ]
      },
      "delete": {
        "operationId": "security.team.members.remove",
        "tags": [
          "security.team"
        ],
        "summary": "Remove members from a team",
        "description": "Remove the given members from the given team",
        "requestBody": {
          "description": "The members to remove",
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "description": "The list of identifiers to remove",
                "example": [
                  "member-a",
                  "member-b"
                ]
              }
            }
          }
        },
        "responses": {
          "204": {
            "description": "Members removed"
          },
          "401": {
            "description": "Authentication error",
            "content": {
              "application/problem+json": {
                "schema": {
                  "anyOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth003"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth004"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth005"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth006"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth007"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth008"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth009"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            }
          },
          "403": {
            "description": "Forbidden action",
            "content": {
              "application/problem+json": {
                "schema": {
                  "anyOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecPerm001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic004"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            }
          },
          "404": {
            "description": "Team not found",
            "content": {
              "application/problem+json": {
                "schema": {
                  "anyOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Team003"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            404
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            }
          },
          "500": {
            "description": "Unexpected internal server error",
            "content": {
              "application/problem+json": {
                "schema": {
                  "anyOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Team001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            }
          }
        },
        "parameters": [
          {
            "in": "path",
            "name": "name",
            "description": "Team name",
            "example": "SuperAdmin",
            "schema": {
              "type": "string"
            },
            "required": true
          }
        ]
      }
    },
    "/api/v1/security/teams/{previousTeam}/{newTeam}": {
      "patch": {
        "operationId": "security.team.switch",
        "tags": [
          "security.team"
        ],
        "summary": "Transfer objects from a team to another",
        "description": "Transfers all certificate(s) and request(s) from a previous team to an existing one",
        "responses": {
          "204": {
            "description": "All objects have been successfully switched from the previous team to the new one"
          },
          "401": {
            "description": "Authentication error",
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth003"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth004"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth005"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth006"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth007"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth008"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth009"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            }
          },
          "403": {
            "description": "Forbidden action",
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecPerm001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic004"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            }
          },
          "404": {
            "description": "Team not found",
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Team003"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            404
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            }
          },
          "500": {
            "description": "Unexpected internal server error",
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Team001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            }
          }
        },
        "parameters": [
          {
            "in": "path",
            "name": "previousTeam",
            "schema": {
              "type": "string"
            },
            "required": true,
            "description": "The name of the team to transfer objects from",
            "example": "WinHorizon"
          },
          {
            "in": "path",
            "name": "newTeam",
            "schema": {
              "type": "string"
            },
            "required": true,
            "description": "The name of the team to transfer objects to",
            "example": "PKIOps"
          }
        ]
      }
    },
    "/api/v1/security/scim/profiles": {
      "get": {
        "operationId": "security.scimprofile.list",
        "tags": [
          "security.scimprofile"
        ],
        "summary": "List Scim profiles",
        "description": "Retrieves a list of all existing Scim profiles",
        "responses": {
          "200": {
            "description": "Scim profiles list",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/ScimProfileResponse"
                  }
                }
              }
            }
          },
          "204": {
            "description": "No scim profiles defined or insufficient permissions"
          },
          "401": {
            "description": "Authentication error",
            "content": {
              "application/problem+json": {
                "schema": {
                  "anyOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth003"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth004"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth005"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth006"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth007"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth008"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth009"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            }
          },
          "403": {
            "description": "Forbidden action",
            "content": {
              "application/problem+json": {
                "schema": {
                  "anyOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecPerm001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic004"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            }
          },
          "500": {
            "description": "Unexpected internal server error",
            "content": {
              "application/problem+json": {
                "schema": {
                  "anyOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/ScimProfile001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            }
          }
        }
      },
      "post": {
        "operationId": "security.scimprofile.add",
        "tags": [
          "security.scimprofile"
        ],
        "summary": "Create a Scim profile",
        "description": "Create a new Scim profile in Horizon",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ScimProfile"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Scim profile successfully registered",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ScimProfileResponse"
                }
              }
            }
          },
          "400": {
            "description": "Unable to register the Scim profile",
            "content": {
              "application/problem+json": {
                "schema": {
                  "anyOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/ScimProfile002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            400
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/ScimProfile004"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            400
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/ScimProfile005"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            400
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            }
          },
          "401": {
            "description": "Authentication error",
            "content": {
              "application/problem+json": {
                "schema": {
                  "anyOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth003"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth004"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth005"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth006"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth007"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth008"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth009"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            }
          },
          "403": {
            "description": "Forbidden action",
            "content": {
              "application/problem+json": {
                "schema": {
                  "anyOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecPerm001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic004"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            }
          },
          "500": {
            "description": "Unexpected internal server error",
            "content": {
              "application/problem+json": {
                "schema": {
                  "anyOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/ScimProfile001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            }
          }
        }
      },
      "put": {
        "operationId": "security.scimprofile.update",
        "tags": [
          "security.scimprofile"
        ],
        "summary": "Update Scim profile",
        "description": "Update an existing Scim profile",
        "requestBody": {
          "description": "The Scim profile to update",
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ScimProfile"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Scim profile successfully updated",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ScimProfileResponse"
                }
              }
            }
          },
          "400": {
            "description": "Unable to update Scim profile",
            "content": {
              "application/problem+json": {
                "schema": {
                  "anyOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/ScimProfile002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            400
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/ScimProfile005"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            400
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            }
          },
          "401": {
            "description": "Authentication error",
            "content": {
              "application/problem+json": {
                "schema": {
                  "anyOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth003"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth004"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth005"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth006"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth007"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth008"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth009"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            }
          },
          "403": {
            "description": "Forbidden action",
            "content": {
              "application/problem+json": {
                "schema": {
                  "anyOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecPerm001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic004"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            }
          },
          "404": {
            "description": "Scim profile not found",
            "content": {
              "application/problem+json": {
                "schema": {
                  "anyOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/ScimProfile003"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            404
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            }
          },
          "500": {
            "description": "Unexpected internal server error",
            "content": {
              "application/problem+json": {
                "schema": {
                  "anyOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/ScimProfile001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/security/scim/profiles/{name}": {
      "get": {
        "operationId": "security.scimprofile.get",
        "tags": [
          "security.scimprofile"
        ],
        "summary": "Retrieve a Scim profile",
        "description": "Retrieves an existing Scim profile based on its name",
        "responses": {
          "200": {
            "description": "The retrieved Scim profile",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ScimProfileResponse"
                }
              }
            }
          },
          "401": {
            "description": "Authentication error",
            "content": {
              "application/problem+json": {
                "schema": {
                  "anyOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth003"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth004"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth005"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth006"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth007"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth008"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth009"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            }
          },
          "403": {
            "description": "Forbidden action",
            "content": {
              "application/problem+json": {
                "schema": {
                  "anyOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecPerm001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic004"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            }
          },
          "404": {
            "description": "Scim profile not found",
            "content": {
              "application/problem+json": {
                "schema": {
                  "anyOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/ScimProfile003"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            404
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            }
          },
          "500": {
            "description": "Unexpected internal server error",
            "content": {
              "application/problem+json": {
                "schema": {
                  "anyOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/ScimProfile001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            }
          }
        },
        "parameters": [
          {
            "in": "path",
            "name": "name",
            "description": "Scim profile name",
            "example": "OktaScim",
            "schema": {
              "type": "string"
            },
            "required": true
          }
        ]
      },
      "delete": {
        "operationId": "security.scimprofile.delete",
        "tags": [
          "security.scimprofile"
        ],
        "summary": "Delete a Scim profile",
        "description": "Delete an existing Scim profile based on its name",
        "responses": {
          "204": {
            "description": "Scim profile successfully deleted"
          },
          "401": {
            "description": "Authentication error",
            "content": {
              "application/problem+json": {
                "schema": {
                  "anyOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth003"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth004"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth005"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth006"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth007"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth008"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth009"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            }
          },
          "403": {
            "description": "Forbidden action",
            "content": {
              "application/problem+json": {
                "schema": {
                  "anyOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecPerm001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic004"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            }
          },
          "404": {
            "description": "Scim profile not found",
            "content": {
              "application/problem+json": {
                "schema": {
                  "anyOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/ScimProfile003"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            404
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            }
          },
          "500": {
            "description": "Unexpected internal server error",
            "content": {
              "application/problem+json": {
                "schema": {
                  "anyOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/ScimProfile001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            }
          }
        },
        "parameters": [
          {
            "in": "path",
            "name": "name",
            "description": "Scim profile name",
            "example": "OktaScim",
            "schema": {
              "type": "string"
            },
            "required": true
          }
        ]
      }
    },
    "/api/v1/security/tenants": {
      "get": {
        "operationId": "security.tenants.list",
        "tags": [
          "security.tenant"
        ],
        "summary": "List tenants",
        "description": "Retrieves a list of all tenants on this multitenant instance",
        "responses": {
          "200": {
            "description": "Tenants list",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/TenantResponse"
                  }
                }
              }
            }
          },
          "204": {
            "description": "No tenants defined or insufficient permissions"
          },
          "401": {
            "description": "Authentication error",
            "content": {
              "application/problem+json": {
                "schema": {
                  "anyOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth003"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth004"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth005"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth006"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth007"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth008"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth009"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            }
          },
          "403": {
            "description": "Forbidden action",
            "content": {
              "application/problem+json": {
                "schema": {
                  "anyOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecPerm001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic004"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Tenant005"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            }
          },
          "500": {
            "description": "Unexpected internal server error",
            "content": {
              "application/problem+json": {
                "schema": {
                  "anyOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Tenant001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            }
          }
        }
      },
      "post": {
        "operationId": "security.tenants.add",
        "tags": [
          "security.tenant"
        ],
        "summary": "Create a new tenant",
        "description": "Create a new tenant",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/TenantCreationRequest"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Tenant successfully registered",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TenantWithAccountResponse"
                }
              }
            }
          },
          "400": {
            "description": "Unable to register the tenant",
            "content": {
              "application/problem+json": {
                "schema": {
                  "anyOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Tenant002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            400
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Tenant004"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            400
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            }
          },
          "401": {
            "description": "Authentication error",
            "content": {
              "application/problem+json": {
                "schema": {
                  "anyOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth003"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth004"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth005"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth006"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth007"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth008"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth009"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            }
          },
          "403": {
            "description": "Forbidden action",
            "content": {
              "application/problem+json": {
                "schema": {
                  "anyOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecPerm001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic004"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Tenant005"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            }
          },
          "500": {
            "description": "Unexpected internal server error",
            "content": {
              "application/problem+json": {
                "schema": {
                  "anyOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Tenant001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            }
          }
        }
      },
      "put": {
        "operationId": "security.tenants.update",
        "tags": [
          "security.tenant"
        ],
        "summary": "Update a tenant",
        "description": "Update an existing tenant",
        "requestBody": {
          "description": "The tenant to update",
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/TenantUpdateRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Tenant successfully updated",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TenantResponse"
                }
              }
            }
          },
          "400": {
            "description": "Unable to update tenant",
            "content": {
              "application/problem+json": {
                "schema": {
                  "anyOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Tenant002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            400
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            }
          },
          "401": {
            "description": "Authentication error",
            "content": {
              "application/problem+json": {
                "schema": {
                  "anyOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth003"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth004"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth005"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth006"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth007"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth008"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth009"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            }
          },
          "403": {
            "description": "Forbidden action",
            "content": {
              "application/problem+json": {
                "schema": {
                  "anyOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecPerm001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic004"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Tenant005"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            }
          },
          "404": {
            "description": "Tenant not found",
            "content": {
              "application/problem+json": {
                "schema": {
                  "anyOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Tenant003"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            404
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            }
          },
          "500": {
            "description": "Unexpected internal server error",
            "content": {
              "application/problem+json": {
                "schema": {
                  "anyOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Tenant001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/security/tenants/{name}": {
      "get": {
        "operationId": "security.tenants.get",
        "tags": [
          "security.tenant"
        ],
        "summary": "Retrieve tenant",
        "description": "Retrieves and existing tenant based on its name",
        "responses": {
          "200": {
            "description": "The retrieved tenant",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TenantResponse"
                }
              }
            }
          },
          "401": {
            "description": "Authentication error",
            "content": {
              "application/problem+json": {
                "schema": {
                  "anyOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth003"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth004"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth005"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth006"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth007"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth008"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth009"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            }
          },
          "403": {
            "description": "Forbidden action",
            "content": {
              "application/problem+json": {
                "schema": {
                  "anyOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecPerm001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic004"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Tenant005"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            }
          },
          "404": {
            "description": "Tenant not found",
            "content": {
              "application/problem+json": {
                "schema": {
                  "anyOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Tenant003"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            404
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            }
          },
          "500": {
            "description": "Unexpected internal server error",
            "content": {
              "application/problem+json": {
                "schema": {
                  "anyOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Tenant001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            }
          }
        },
        "parameters": [
          {
            "in": "path",
            "name": "name",
            "description": "Tenant name",
            "example": "tenant1",
            "schema": {
              "type": "string"
            },
            "required": true
          }
        ]
      },
      "delete": {
        "operationId": "security.tenants.delete",
        "tags": [
          "security.tenant"
        ],
        "summary": "Delete a tenant",
        "description": "Delete existing tenants based on its name",
        "responses": {
          "204": {
            "description": "Tenant successfully deleted"
          },
          "400": {
            "description": "Bad request",
            "content": {
              "application/problem+json": {
                "schema": {
                  "anyOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Tenant006"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            400
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            }
          },
          "401": {
            "description": "Authentication error",
            "content": {
              "application/problem+json": {
                "schema": {
                  "anyOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth003"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth004"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth005"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth006"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth007"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth008"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth009"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            }
          },
          "403": {
            "description": "Forbidden action",
            "content": {
              "application/problem+json": {
                "schema": {
                  "anyOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecPerm001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic004"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Tenant005"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            }
          },
          "404": {
            "description": "Tenant not found",
            "content": {
              "application/problem+json": {
                "schema": {
                  "anyOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Tenant003"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            404
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            }
          },
          "500": {
            "description": "Unexpected internal server error",
            "content": {
              "application/problem+json": {
                "schema": {
                  "anyOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Tenant001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            }
          }
        },
        "parameters": [
          {
            "in": "path",
            "name": "name",
            "description": "Tenant name",
            "example": "tenant1",
            "schema": {
              "type": "string"
            },
            "required": true
          }
        ]
      }
    },
    "/api/v1/security/tenants/{name}/restore": {
      "post": {
        "operationId": "security.tenants.restore",
        "tags": [
          "security.tenant"
        ],
        "summary": "Restore a deleted tenant",
        "description": "Restore a deleted tenant, re-enabling all its data",
        "responses": {
          "204": {
            "description": "Tenant successfully restored"
          },
          "400": {
            "description": "Bad request",
            "content": {
              "application/problem+json": {
                "schema": {
                  "anyOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Tenant007"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            }
          },
          "401": {
            "description": "Authentication error",
            "content": {
              "application/problem+json": {
                "schema": {
                  "anyOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth003"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth004"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth005"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth006"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth007"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth008"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth009"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            }
          },
          "403": {
            "description": "Forbidden action",
            "content": {
              "application/problem+json": {
                "schema": {
                  "anyOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecPerm001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic004"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Tenant005"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            }
          },
          "404": {
            "description": "Tenant not found",
            "content": {
              "application/problem+json": {
                "schema": {
                  "anyOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Tenant003"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            404
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            }
          },
          "500": {
            "description": "Unexpected internal server error",
            "content": {
              "application/problem+json": {
                "schema": {
                  "anyOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Tenant001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            }
          }
        },
        "parameters": [
          {
            "in": "path",
            "name": "name",
            "description": "Tenant name",
            "example": "tenant1",
            "schema": {
              "type": "string"
            },
            "required": true
          }
        ]
      }
    },
    "/api/v1/security/tenants/{name}/licenses": {
      "get": {
        "operationId": "security.tenants.license",
        "tags": [
          "security.tenant"
        ],
        "summary": "Retrieve tenant license information",
        "description": "Retrieves an existing tenant license information based on the tenant name",
        "responses": {
          "200": {
            "description": "The license information for this tenant",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/LicenseInfoResponse"
                }
              }
            }
          },
          "401": {
            "description": "Authentication error",
            "content": {
              "application/problem+json": {
                "schema": {
                  "anyOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth003"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth004"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth005"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth006"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth007"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth008"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth009"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            }
          },
          "403": {
            "description": "Forbidden action",
            "content": {
              "application/problem+json": {
                "schema": {
                  "anyOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecPerm001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic004"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Tenant005"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            }
          },
          "404": {
            "description": "Tenant not found",
            "content": {
              "application/problem+json": {
                "schema": {
                  "anyOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Tenant003"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            404
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            }
          },
          "500": {
            "description": "Unexpected internal server error",
            "content": {
              "application/problem+json": {
                "schema": {
                  "anyOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Tenant001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            }
          }
        },
        "parameters": [
          {
            "in": "path",
            "name": "name",
            "description": "Tenant name",
            "example": "tenant1",
            "schema": {
              "type": "string"
            },
            "required": true
          }
        ]
      }
    },
    "/api/v1/security/tenants/{name}/reset": {
      "post": {
        "operationId": "security.tenants.reset",
        "tags": [
          "security.tenant"
        ],
        "summary": "Reset tenant administrator account",
        "description": "Resets the administrator account of an existing tenant",
        "responses": {
          "200": {
            "description": "The new administrator account for this tenant",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BootstrapAccount"
                }
              }
            }
          },
          "401": {
            "description": "Authentication error",
            "content": {
              "application/problem+json": {
                "schema": {
                  "anyOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth003"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth004"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth005"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth006"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth007"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth008"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth009"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            }
          },
          "403": {
            "description": "Forbidden action",
            "content": {
              "application/problem+json": {
                "schema": {
                  "anyOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecPerm001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic004"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Tenant005"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            }
          },
          "404": {
            "description": "Tenant not found",
            "content": {
              "application/problem+json": {
                "schema": {
                  "anyOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Tenant003"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            404
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            }
          },
          "500": {
            "description": "Unexpected internal server error",
            "content": {
              "application/problem+json": {
                "schema": {
                  "anyOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Tenant001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            }
          }
        },
        "parameters": [
          {
            "in": "path",
            "name": "name",
            "description": "Tenant name",
            "example": "tenant1",
            "schema": {
              "type": "string"
            },
            "required": true
          }
        ]
      }
    },
    "/api/v1/security/credentials": {
      "get": {
        "operationId": "security.credentials.list",
        "tags": [
          "security.credentials"
        ],
        "summary": "List credentials",
        "description": "Retrieves a list of all existing credentials",
        "responses": {
          "200": {
            "description": "Credentials list",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "oneOf": [
                      {
                        "$ref": "#/components/schemas/CertificateCredentialsResponse"
                      },
                      {
                        "$ref": "#/components/schemas/PasswordCredentialsResponse"
                      },
                      {
                        "$ref": "#/components/schemas/RawCredentialsResponse"
                      }
                    ]
                  }
                }
              }
            }
          },
          "204": {
            "description": "No credentials defined or insufficient permissions"
          },
          "401": {
            "description": "Authentication error",
            "content": {
              "application/problem+json": {
                "schema": {
                  "anyOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth003"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth004"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth005"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth006"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth007"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth008"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth009"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            }
          },
          "403": {
            "description": "Forbidden action",
            "content": {
              "application/problem+json": {
                "schema": {
                  "anyOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecPerm001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic004"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            }
          },
          "500": {
            "description": "Unexpected internal server error",
            "content": {
              "application/problem+json": {
                "schema": {
                  "anyOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Credentials001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            }
          }
        }
      },
      "post": {
        "operationId": "security.credentials.add",
        "tags": [
          "security.credentials"
        ],
        "summary": "Create new credentials",
        "description": "Create new credentials in Horizon",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "oneOf": [
                  {
                    "$ref": "#/components/schemas/CertificateCredentials"
                  },
                  {
                    "$ref": "#/components/schemas/PasswordCredentials"
                  },
                  {
                    "$ref": "#/components/schemas/RawCredentials"
                  }
                ]
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Credentials successfully registered",
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "$ref": "#/components/schemas/CertificateCredentialsResponse"
                    },
                    {
                      "$ref": "#/components/schemas/PasswordCredentialsResponse"
                    },
                    {
                      "$ref": "#/components/schemas/RawCredentialsResponse"
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "description": "Unable to register the credentials",
            "content": {
              "application/problem+json": {
                "schema": {
                  "anyOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Credentials002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            400
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Credentials004"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            400
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            }
          },
          "401": {
            "description": "Authentication error",
            "content": {
              "application/problem+json": {
                "schema": {
                  "anyOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth003"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth004"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth005"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth006"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth007"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth008"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth009"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            }
          },
          "403": {
            "description": "Forbidden action",
            "content": {
              "application/problem+json": {
                "schema": {
                  "anyOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecPerm001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic004"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            }
          },
          "500": {
            "description": "Unexpected internal server error",
            "content": {
              "application/problem+json": {
                "schema": {
                  "anyOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Credentials001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            }
          }
        }
      },
      "put": {
        "operationId": "security.credentials.update",
        "tags": [
          "security.credentials"
        ],
        "summary": "Update credentials",
        "description": "Update existing credentials",
        "requestBody": {
          "description": "The credentials to update",
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "oneOf": [
                  {
                    "$ref": "#/components/schemas/CertificateCredentials"
                  },
                  {
                    "$ref": "#/components/schemas/PasswordCredentials"
                  },
                  {
                    "$ref": "#/components/schemas/RawCredentials"
                  }
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Credentials successfully updated",
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "$ref": "#/components/schemas/CertificateCredentialsResponse"
                    },
                    {
                      "$ref": "#/components/schemas/PasswordCredentialsResponse"
                    },
                    {
                      "$ref": "#/components/schemas/RawCredentialsResponse"
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "description": "Unable to update credentials",
            "content": {
              "application/problem+json": {
                "schema": {
                  "anyOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Credentials002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            400
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            }
          },
          "401": {
            "description": "Authentication error",
            "content": {
              "application/problem+json": {
                "schema": {
                  "anyOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth003"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth004"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth005"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth006"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth007"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth008"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth009"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            }
          },
          "403": {
            "description": "Forbidden action",
            "content": {
              "application/problem+json": {
                "schema": {
                  "anyOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecPerm001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic004"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            }
          },
          "404": {
            "description": "Credentials not found",
            "content": {
              "application/problem+json": {
                "schema": {
                  "anyOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Credentials003"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            404
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            }
          },
          "500": {
            "description": "Unexpected internal server error",
            "content": {
              "application/problem+json": {
                "schema": {
                  "anyOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Credentials001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/security/credentials/{name}": {
      "get": {
        "operationId": "security.credentials.get",
        "tags": [
          "security.credentials"
        ],
        "summary": "Retrieve credentials",
        "description": "Retrieves existing credentials based on its name",
        "responses": {
          "200": {
            "description": "The retrieved credentials",
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "$ref": "#/components/schemas/CertificateCredentialsResponse"
                    },
                    {
                      "$ref": "#/components/schemas/PasswordCredentialsResponse"
                    },
                    {
                      "$ref": "#/components/schemas/RawCredentialsResponse"
                    }
                  ]
                }
              }
            }
          },
          "401": {
            "description": "Authentication error",
            "content": {
              "application/problem+json": {
                "schema": {
                  "anyOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth003"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth004"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth005"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth006"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth007"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth008"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth009"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            }
          },
          "403": {
            "description": "Forbidden action",
            "content": {
              "application/problem+json": {
                "schema": {
                  "anyOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecPerm001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic004"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            }
          },
          "404": {
            "description": "Credentials not found",
            "content": {
              "application/problem+json": {
                "schema": {
                  "anyOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Credentials003"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            404
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            }
          },
          "500": {
            "description": "Unexpected internal server error",
            "content": {
              "application/problem+json": {
                "schema": {
                  "anyOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Credentials001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            }
          }
        },
        "parameters": [
          {
            "in": "path",
            "name": "name",
            "description": "Credentials name",
            "example": "SuperAdmin",
            "schema": {
              "type": "string"
            },
            "required": true
          }
        ]
      },
      "delete": {
        "operationId": "security.credentials.delete",
        "tags": [
          "security.credentials"
        ],
        "summary": "Delete credentials",
        "description": "Delete existing credentials based on its name",
        "responses": {
          "204": {
            "description": "Credentials successfully deleted"
          },
          "400": {
            "description": "Bad request",
            "content": {
              "application/problem+json": {
                "schema": {
                  "anyOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Credentials005"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            400
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            }
          },
          "401": {
            "description": "Authentication error",
            "content": {
              "application/problem+json": {
                "schema": {
                  "anyOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth003"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth004"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth005"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth006"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth007"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth008"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth009"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            }
          },
          "403": {
            "description": "Forbidden action",
            "content": {
              "application/problem+json": {
                "schema": {
                  "anyOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecPerm001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic004"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            }
          },
          "404": {
            "description": "Credentials not found",
            "content": {
              "application/problem+json": {
                "schema": {
                  "anyOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Credentials003"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            404
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            }
          },
          "500": {
            "description": "Unexpected internal server error",
            "content": {
              "application/problem+json": {
                "schema": {
                  "anyOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Credentials001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            }
          }
        },
        "parameters": [
          {
            "in": "path",
            "name": "name",
            "description": "Credentials name",
            "example": "SuperAdmins",
            "schema": {
              "type": "string"
            },
            "required": true
          }
        ]
      }
    },
    "/api/v1/templatestring/playground": {
      "post": {
        "description": "Evaluate a computation rule and its dictionary",
        "operationId": "computationrule.eval",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/TemplateStringPlaygroundRequest"
              }
            }
          },
          "description": "Playground request to evaluate",
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TemplateStringPlaygroundResponseResponse"
                }
              }
            },
            "description": "Dictionary and computation rule successfully evaluated"
          },
          "400": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Ts002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            400
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Ts003"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            400
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Ts004"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            400
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Bad Request"
          },
          "403": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic004"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Forbidden action"
          },
          "500": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Ts001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Internal Server error"
          }
        },
        "summary": "Evaluate a computation rule and its dictionary",
        "tags": [
          "templatestring"
        ]
      }
    },
    "/api/v1/thirdparty/connectors": {
      "get": {
        "description": "List the existing third party connector(s). The list can be filtered with type and/or module.",
        "operationId": "thirdparty.connector.list",
        "parameters": [
          {
            "in": "query",
            "name": "type",
            "required": false,
            "schema": {
              "nullable": true,
              "type": "string",
              "enum": [
                "akv",
                "aws",
                "intune",
                "f5client",
                "jamf",
                "msad",
                "intunepkcs",
                "ldappub",
                "gcm"
              ]
            }
          },
          {
            "in": "query",
            "name": "module",
            "required": false,
            "schema": {
              "enum": [
                "acme",
                "est",
                "aws",
                "f5client",
                "intune",
                "jamf",
                "scep",
                "wcce",
                "webra",
                "intunepkcs"
              ],
              "nullable": true,
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "items": {
                    "oneOf": [
                      {
                        "$ref": "#/components/schemas/AWSConnectorResponse"
                      },
                      {
                        "$ref": "#/components/schemas/F5ClientConnectorResponse"
                      },
                      {
                        "$ref": "#/components/schemas/F5AS3ConnectorResponse"
                      },
                      {
                        "$ref": "#/components/schemas/IntuneConnectorResponse"
                      },
                      {
                        "$ref": "#/components/schemas/JamfConnectorResponse"
                      },
                      {
                        "$ref": "#/components/schemas/MSADConnectorResponse"
                      },
                      {
                        "$ref": "#/components/schemas/IntunePKCSConnectorResponse"
                      },
                      {
                        "$ref": "#/components/schemas/AzureKeyVaultConnectorResponse"
                      },
                      {
                        "$ref": "#/components/schemas/GCMConnectorResponse"
                      },
                      {
                        "$ref": "#/components/schemas/LDAPConnectorResponse"
                      }
                    ]
                  },
                  "type": "array"
                }
              }
            },
            "description": "Third party connector list"
          },
          "204": {
            "description": "No third party connector defined or insufficient permissions"
          },
          "401": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth003"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth004"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth005"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth006"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth007"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth008"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth009"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Unauthorized request"
          },
          "403": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecPerm001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic004"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Forbidden action"
          },
          "500": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/ThirdpartyConnector001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Internal Server error"
          }
        },
        "summary": "List the existing third party connector(s)",
        "tags": [
          "thirdparty.connector"
        ]
      },
      "post": {
        "description": "Register a new third party connector",
        "operationId": "thirdparty.connector.add",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/ThirdPartyConnectors"
                  }
                ]
              }
            }
          },
          "description": "Third party connector to register",
          "required": true
        },
        "responses": {
          "201": {
            "content": {
              "application/json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/ThirdPartyConnectorResponses"
                    }
                  ]
                }
              }
            },
            "description": "Third party connector successfully registered"
          },
          "400": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/ThirdpartyConnector002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            400
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/ThirdpartyConnector004"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            400
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Bad Request"
          },
          "401": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth003"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth004"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth005"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth006"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth007"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth008"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth009"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Unauthorized request"
          },
          "403": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecPerm001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic004"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Forbidden action"
          },
          "500": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/ThirdpartyConnector001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Internal Server error"
          }
        },
        "summary": "Register a new third party connector",
        "tags": [
          "thirdparty.connector"
        ]
      },
      "put": {
        "description": "Update an existing third party connector",
        "operationId": "thirdparty.connector.update",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/ThirdPartyConnectors"
                  }
                ]
              }
            }
          },
          "description": "Third party connector to update",
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/ThirdPartyConnectorResponses"
                    }
                  ]
                }
              }
            },
            "description": "Third party connector successfully updated"
          },
          "400": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/ThirdpartyConnector002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            400
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Bad Request"
          },
          "401": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth003"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth004"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth005"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth006"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth007"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth008"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth009"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Unauthorized request"
          },
          "403": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecPerm001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic004"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Forbidden action"
          },
          "404": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/ThirdpartyConnector003"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            404
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Not Found"
          },
          "500": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/ThirdpartyConnector001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Internal Server error"
          }
        },
        "summary": "Update an existing third party connector",
        "tags": [
          "thirdparty.connector"
        ]
      }
    },
    "/api/v1/thirdparty/connectors/{name}": {
      "get": {
        "description": "Retrieve an existing third party connector based on its name",
        "operationId": "thirdparty.connector.get",
        "parameters": [
          {
            "in": "path",
            "name": "name",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "$ref": "#/components/schemas/AWSConnectorResponse"
                    },
                    {
                      "$ref": "#/components/schemas/F5ClientConnectorResponse"
                    },
                    {
                      "$ref": "#/components/schemas/F5AS3ConnectorResponse"
                    },
                    {
                      "$ref": "#/components/schemas/IntuneConnectorResponse"
                    },
                    {
                      "$ref": "#/components/schemas/JamfConnectorResponse"
                    },
                    {
                      "$ref": "#/components/schemas/MSADConnectorResponse"
                    },
                    {
                      "$ref": "#/components/schemas/IntunePKCSConnectorResponse"
                    },
                    {
                      "$ref": "#/components/schemas/AzureKeyVaultConnectorResponse"
                    },
                    {
                      "$ref": "#/components/schemas/GCMConnectorResponse"
                    },
                    {
                      "$ref": "#/components/schemas/LDAPConnectorResponse"
                    }
                  ]
                }
              }
            },
            "description": "The third party connector"
          },
          "401": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth003"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth004"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth005"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth006"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth007"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth008"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth009"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Unauthorized request"
          },
          "403": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecPerm001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic004"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Forbidden action"
          },
          "404": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/ThirdpartyConnector003"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            404
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Not Found"
          },
          "500": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/ThirdpartyConnector001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Internal Server error"
          }
        },
        "summary": "Retrieve an existing third party connector",
        "tags": [
          "thirdparty.connector"
        ]
      },
      "patch": {
        "description": "Run all failed triggers on this connector",
        "operationId": "thirdparty.connector.retry",
        "parameters": [
          {
            "in": "path",
            "name": "name",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "The connector retry has been successfully queued"
          },
          "401": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth003"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth004"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth005"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth006"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth007"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth008"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth009"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Unauthorized request"
          },
          "403": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecPerm001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic004"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Forbidden action"
          },
          "404": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/ThirdpartyConnector003"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            404
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Not Found"
          },
          "500": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/ThirdpartyConnector001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Internal Server error"
          }
        },
        "summary": "Retry failed triggers on a connector",
        "tags": [
          "thirdparty.connector"
        ]
      },
      "delete": {
        "description": "Delete an existing third party connector based on its name",
        "operationId": "thirdparty.connector.delete",
        "parameters": [
          {
            "in": "path",
            "name": "name",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "Third party connector successfully deleted"
          },
          "400": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/ThirdpartyConnector005"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            400
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Bad Request"
          },
          "401": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth003"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth004"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth005"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth006"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth007"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth008"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth009"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Unauthorized request"
          },
          "403": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecPerm001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic004"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Forbidden action"
          },
          "404": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/ThirdpartyConnector003"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            404
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Not Found"
          },
          "500": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/ThirdpartyConnector001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Internal Server error"
          }
        },
        "summary": "Delete an existing third party connector",
        "tags": [
          "thirdparty.connector"
        ]
      }
    },
    "/api/v1/triggers": {
      "get": {
        "description": "List the existing trigger(s) with the capability to filter on type and/or module.",
        "operationId": "trigger.list",
        "parameters": [
          {
            "in": "query",
            "name": "types",
            "schema": {
              "items": {
                "type": "string",
                "enum": [
                  "akv",
                  "aws",
                  "email",
                  "f5client",
                  "intunepkcs",
                  "ldappub",
                  "gcm"
                ]
              },
              "type": "array"
            }
          },
          {
            "in": "query",
            "name": "module",
            "schema": {
              "nullable": true,
              "type": "string",
              "enum": [
                "acme",
                "est",
                "aws",
                "f5client",
                "intune",
                "jamf",
                "scep",
                "wcce",
                "webra",
                "monitored",
                "intunepkcs"
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "items": {
                    "oneOf": [
                      {
                        "$ref": "#/components/schemas/EmailNotificationResponse"
                      },
                      {
                        "$ref": "#/components/schemas/WebhookNotificationResponse"
                      },
                      {
                        "$ref": "#/components/schemas/RESTResponse"
                      },
                      {
                        "$ref": "#/components/schemas/AzureKeyVaultTriggerResponse"
                      },
                      {
                        "$ref": "#/components/schemas/F5ClientTriggerResponse"
                      },
                      {
                        "$ref": "#/components/schemas/F5AS3TriggerResponse"
                      },
                      {
                        "$ref": "#/components/schemas/AWSTriggerResponse"
                      },
                      {
                        "$ref": "#/components/schemas/GCMTriggerResponse"
                      },
                      {
                        "$ref": "#/components/schemas/LDAPTriggerResponse"
                      },
                      {
                        "$ref": "#/components/schemas/NetscalerTriggerResponse"
                      },
                      {
                        "$ref": "#/components/schemas/IntunePKCSTriggerResponse"
                      }
                    ]
                  },
                  "type": "array"
                }
              }
            },
            "description": "Trigger list"
          },
          "204": {
            "description": "No trigger defined or insufficient permissions"
          },
          "401": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth003"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth004"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth005"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth006"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth007"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth008"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth009"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Unauthorized request"
          },
          "403": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecPerm001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic004"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Forbidden action"
          },
          "500": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Trig001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Internal Server error"
          }
        },
        "summary": "List the existing trigger(s)",
        "tags": [
          "trigger"
        ]
      },
      "post": {
        "description": "Register a new trigger",
        "operationId": "trigger.add",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "oneOf": [
                  {
                    "$ref": "#/components/schemas/EmailNotification"
                  },
                  {
                    "$ref": "#/components/schemas/WebhookNotification"
                  },
                  {
                    "$ref": "#/components/schemas/REST"
                  },
                  {
                    "$ref": "#/components/schemas/AzureKeyVaultTrigger"
                  },
                  {
                    "$ref": "#/components/schemas/F5ClientTrigger"
                  },
                  {
                    "$ref": "#/components/schemas/F5AS3Trigger"
                  },
                  {
                    "$ref": "#/components/schemas/AWSTrigger"
                  },
                  {
                    "$ref": "#/components/schemas/IntunePKCSTrigger"
                  },
                  {
                    "$ref": "#/components/schemas/GCMTrigger"
                  },
                  {
                    "$ref": "#/components/schemas/LDAPTrigger"
                  },
                  {
                    "$ref": "#/components/schemas/NetscalerTrigger"
                  }
                ]
              }
            }
          },
          "description": "The trigger to register",
          "required": true
        },
        "responses": {
          "201": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "$ref": "#/components/schemas/EmailNotificationResponse"
                    },
                    {
                      "$ref": "#/components/schemas/WebhookNotificationResponse"
                    },
                    {
                      "$ref": "#/components/schemas/RESTResponse"
                    },
                    {
                      "$ref": "#/components/schemas/AzureKeyVaultTriggerResponse"
                    },
                    {
                      "$ref": "#/components/schemas/F5ClientTriggerResponse"
                    },
                    {
                      "$ref": "#/components/schemas/F5AS3TriggerResponse"
                    },
                    {
                      "$ref": "#/components/schemas/AWSTriggerResponse"
                    },
                    {
                      "$ref": "#/components/schemas/IntunePKCSTriggerResponse"
                    },
                    {
                      "$ref": "#/components/schemas/GCMTriggerResponse"
                    },
                    {
                      "$ref": "#/components/schemas/LDAPTriggerResponse"
                    },
                    {
                      "$ref": "#/components/schemas/NetscalerTriggerResponse"
                    }
                  ]
                }
              }
            },
            "description": "Trigger successfully registered"
          },
          "400": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Trig002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            400
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Trig004"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            400
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Bad Request"
          },
          "401": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth003"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth004"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth005"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth006"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth007"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth008"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth009"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Unauthorized request"
          },
          "403": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecPerm001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic004"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Forbidden action"
          },
          "500": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Trig001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Internal Server error"
          }
        },
        "summary": "Register a new trigger",
        "tags": [
          "trigger"
        ]
      },
      "put": {
        "description": "Update an existing trigger",
        "operationId": "trigger.update",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "oneOf": [
                  {
                    "$ref": "#/components/schemas/EmailNotification"
                  },
                  {
                    "$ref": "#/components/schemas/WebhookNotification"
                  },
                  {
                    "$ref": "#/components/schemas/REST"
                  },
                  {
                    "$ref": "#/components/schemas/AzureKeyVaultTrigger"
                  },
                  {
                    "$ref": "#/components/schemas/F5ClientTrigger"
                  },
                  {
                    "$ref": "#/components/schemas/F5AS3Trigger"
                  },
                  {
                    "$ref": "#/components/schemas/AWSTrigger"
                  },
                  {
                    "$ref": "#/components/schemas/IntunePKCSTrigger"
                  },
                  {
                    "$ref": "#/components/schemas/GCMTrigger"
                  },
                  {
                    "$ref": "#/components/schemas/LDAPTrigger"
                  },
                  {
                    "$ref": "#/components/schemas/NetscalerTrigger"
                  }
                ]
              }
            }
          },
          "description": "Trigger to update",
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "$ref": "#/components/schemas/EmailNotificationResponse"
                    },
                    {
                      "$ref": "#/components/schemas/WebhookNotificationResponse"
                    },
                    {
                      "$ref": "#/components/schemas/RESTResponse"
                    },
                    {
                      "$ref": "#/components/schemas/AzureKeyVaultTriggerResponse"
                    },
                    {
                      "$ref": "#/components/schemas/F5ClientTriggerResponse"
                    },
                    {
                      "$ref": "#/components/schemas/F5AS3TriggerResponse"
                    },
                    {
                      "$ref": "#/components/schemas/AWSTriggerResponse"
                    },
                    {
                      "$ref": "#/components/schemas/IntunePKCSTriggerResponse"
                    },
                    {
                      "$ref": "#/components/schemas/GCMTriggerResponse"
                    },
                    {
                      "$ref": "#/components/schemas/LDAPTriggerResponse"
                    },
                    {
                      "$ref": "#/components/schemas/NetscalerTriggerResponse"
                    }
                  ]
                }
              }
            },
            "description": "Trigger successfully updated"
          },
          "400": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Trig002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            400
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Bad Request"
          },
          "401": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth003"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth004"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth005"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth006"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth007"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth008"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth009"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Unauthorized request"
          },
          "403": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecPerm001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic004"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Forbidden action"
          },
          "404": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Trig003"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            404
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Not Found"
          },
          "500": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Trig001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Internal Server error"
          }
        },
        "summary": "Update an existing trigger",
        "tags": [
          "trigger"
        ]
      },
      "patch": {
        "description": "Test an existing trigger",
        "operationId": "trigger.test",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/TriggerTestRequest"
                  }
                ]
              }
            }
          },
          "description": "Trigger to test and its dictionary",
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "$ref": "#/components/schemas/EmailTriggerTestResponse"
                    },
                    {
                      "$ref": "#/components/schemas/RestTriggerTestResponse"
                    }
                  ]
                }
              }
            },
            "description": "Trigger successfully tested"
          },
          "400": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Trig002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            400
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Bad Request"
          },
          "401": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth003"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth004"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth005"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth006"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth007"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth008"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth009"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Unauthorized request"
          },
          "403": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecPerm001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic004"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Forbidden action"
          },
          "500": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Trig001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Internal Server error"
          }
        },
        "summary": "Test a trigger",
        "tags": [
          "trigger"
        ]
      }
    },
    "/api/v1/triggers/{name}": {
      "get": {
        "description": "Retrieve an existing trigger based on its name",
        "operationId": "trigger.get",
        "parameters": [
          {
            "in": "path",
            "name": "name",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "$ref": "#/components/schemas/EmailNotificationResponse"
                    },
                    {
                      "$ref": "#/components/schemas/WebhookNotificationResponse"
                    },
                    {
                      "$ref": "#/components/schemas/RESTResponse"
                    },
                    {
                      "$ref": "#/components/schemas/AzureKeyVaultTriggerResponse"
                    },
                    {
                      "$ref": "#/components/schemas/F5ClientTriggerResponse"
                    },
                    {
                      "$ref": "#/components/schemas/F5AS3TriggerResponse"
                    },
                    {
                      "$ref": "#/components/schemas/AWSTriggerResponse"
                    },
                    {
                      "$ref": "#/components/schemas/IntunePKCSTriggerResponse"
                    },
                    {
                      "$ref": "#/components/schemas/GCMTriggerResponse"
                    },
                    {
                      "$ref": "#/components/schemas/LDAPTriggerResponse"
                    },
                    {
                      "$ref": "#/components/schemas/NetscalerTriggerResponse"
                    }
                  ]
                }
              }
            },
            "description": "The trigger"
          },
          "401": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth003"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth004"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth005"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth006"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth007"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth008"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth009"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Unauthorized request"
          },
          "403": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecPerm001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic004"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Forbidden action"
          },
          "404": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Trig003"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            404
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Not Found"
          },
          "500": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Trig001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Internal Server error"
          }
        },
        "summary": "Retrieve an existing trigger",
        "tags": [
          "trigger"
        ]
      },
      "delete": {
        "description": "Delete an existing trigger based on its name",
        "operationId": "trigger.delete",
        "parameters": [
          {
            "in": "path",
            "name": "name",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "Trigger successfully deleted"
          },
          "400": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Trig005"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            400
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Bad Request"
          },
          "401": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth003"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth004"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth005"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth006"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth007"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth008"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth009"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Unauthorized request"
          },
          "403": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecPerm001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic004"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Forbidden action"
          },
          "404": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Trig003"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            404
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Not Found"
          },
          "500": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Trig001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Internal Server error"
          }
        },
        "summary": "Delete an existing trigger",
        "tags": [
          "trigger"
        ]
      }
    },
    "/api/v1/trustchains": {
      "get": {
        "description": "List the public trust chains",
        "operationId": "trustchain.list",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "items": {
                    "$ref": "#/components/schemas/TrustChainAnchorResponse"
                  },
                  "type": "array"
                }
              }
            },
            "description": "Trust chains list"
          },
          "204": {
            "description": "No trust chain"
          },
          "403": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic004"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Forbidden action"
          },
          "500": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Tc001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Internal Server error"
          }
        },
        "summary": "List the public trust chains",
        "tags": [
          "trustchain"
        ]
      }
    },
    "/api/v1/trustchains/{name}": {
      "get": {
        "description": "Retrieve the trust chain for a specific public Certificate Authority based on the Certificate Authority name",
        "operationId": "trustchain.get",
        "parameters": [
          {
            "in": "path",
            "name": "name",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TrustChainAnchorResponse"
                }
              }
            },
            "description": "The trust chain"
          },
          "403": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic004"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Forbidden action"
          },
          "404": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Ca003"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            404
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Not Found"
          },
          "500": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Tc001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Internal Server error"
          }
        },
        "summary": "Retrieve the trust chain for a specific public Certificate Authority",
        "tags": [
          "trustchain"
        ]
      }
    },
    "/api/v1/wcce/forests": {
      "get": {
        "description": "List the existing WCCE forest mapping(s)",
        "operationId": "wcce.forest.mapping.list",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "items": {
                    "$ref": "#/components/schemas/WcceForestMappingResponse"
                  },
                  "type": "array"
                }
              }
            },
            "description": "WCCE forest mapping list"
          },
          "204": {
            "description": "No WCCE Forest Mapping defined or insufficient permissions"
          },
          "401": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth003"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth004"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth005"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth006"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth007"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth008"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth009"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Unauthorized request"
          },
          "403": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecPerm001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic004"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Forbidden action"
          },
          "500": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/WcceForest001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Internal Server error"
          }
        },
        "summary": "List the existing WCCE forest mapping(s)",
        "tags": [
          "wcce"
        ]
      },
      "post": {
        "description": "Register a new WCCE forest mapping",
        "operationId": "wcce.forest.mapping.add",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/WcceForestMapping"
              }
            }
          },
          "description": "The WCCE forest mapping to register",
          "required": true
        },
        "responses": {
          "201": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WcceForestMappingResponse"
                }
              }
            },
            "description": "WCCE forest mapping successfully registered"
          },
          "400": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/WcceForest002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            400
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/WcceForest004"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            400
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/WcceForest005"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            400
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Bad Request"
          },
          "401": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth003"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth004"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth005"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth006"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth007"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth008"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth009"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Unauthorized request"
          },
          "403": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecPerm001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic004"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Forbidden action"
          },
          "500": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/WcceForest001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Internal Server error"
          }
        },
        "summary": "Register a new WCCE forest mapping",
        "tags": [
          "wcce"
        ]
      },
      "put": {
        "description": "Update an existing WCCE forest mapping",
        "operationId": "wcce.forest.mapping.update",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/WcceForestMapping"
              }
            }
          },
          "description": "The WCCE forest mapping to update",
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WcceForestMappingResponse"
                }
              }
            },
            "description": "WCCE forest mapping successfully updated"
          },
          "400": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/WcceForest002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            400
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/WcceForest005"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            400
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Bad Request"
          },
          "401": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth003"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth004"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth005"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth006"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth007"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth008"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth009"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Unauthorized request"
          },
          "403": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecPerm001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic004"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Forbidden action"
          },
          "404": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/WcceForest003"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            404
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Not Found"
          },
          "500": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/WcceForest001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Internal Server error"
          }
        },
        "summary": "Update an existing WCCE forest mapping",
        "tags": [
          "wcce"
        ]
      }
    },
    "/api/v1/wcce/forests/{name}": {
      "get": {
        "description": "Retrieve an existing WCCE forest mapping based on its name",
        "operationId": "wcce.forest.mapping.get",
        "parameters": [
          {
            "in": "path",
            "name": "name",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WcceForestMappingResponse"
                }
              }
            },
            "description": "The WCCE forest mapping"
          },
          "401": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth003"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth004"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth005"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth006"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth007"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth008"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth009"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Unauthorized request"
          },
          "403": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecPerm001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic004"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Forbidden action"
          },
          "404": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/WcceForest003"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            404
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Not Found"
          },
          "500": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/WcceForest001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Internal Server error"
          }
        },
        "summary": "Retrieve an existing WCCE forest mapping",
        "tags": [
          "wcce"
        ]
      },
      "delete": {
        "description": "Delete an existing WCCE forest mapping based on its name",
        "operationId": "wcce.forest.mapping.delete",
        "parameters": [
          {
            "in": "path",
            "name": "name",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "WCCE forest mapping successfully deleted"
          },
          "401": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth003"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth004"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth005"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth006"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth007"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth008"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth009"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Unauthorized request"
          },
          "403": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecPerm001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic004"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Forbidden action"
          },
          "404": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/WcceForest003"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            404
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Not Found"
          },
          "500": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/WcceForest001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Internal Server error"
          }
        },
        "summary": "Delete an existing WCCE forest mapping",
        "tags": [
          "wcce"
        ]
      }
    },
    "/api/v1/certificates": {
      "post": {
        "operationId": "certificate.list",
        "tags": [
          "certificate"
        ],
        "summary": "List certificates",
        "description": "List certificate(s) matching any ID sent",
        "requestBody": {
          "description": "The list of certificates IDs to fetch",
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "array",
                "items": {
                  "example": "644796623000003800cc6c4b",
                  "type": "string",
                  "description": "The certificate id"
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The certificate list",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/CertificateWithPermissionsResponse"
                  }
                }
              }
            }
          },
          "204": {
            "description": "No certificate found or insufficient permissions"
          },
          "400": {
            "description": "Bad request",
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth007"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            400
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth008"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            400
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized request",
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth009"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            }
          },
          "403": {
            "description": "Unauthorized request",
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth003"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth004"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth005"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth006"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic004"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            }
          },
          "500": {
            "description": "Unexpected internal server error",
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/CertSearch001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/certificates/{id}": {
      "get": {
        "operationId": "certificate.get.id",
        "tags": [
          "certificate"
        ],
        "summary": "Retrieve a certificate",
        "description": "Retrieves a specific certificate based on its ID",
        "responses": {
          "200": {
            "description": "The specified certificate with the specified ID",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CertificateWithPermissionsResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad request",
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth007"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            400
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth008"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            400
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized request",
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth009"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            }
          },
          "403": {
            "description": "Forbidden action",
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecPerm001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth003"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth004"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth005"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth006"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic004"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            }
          },
          "404": {
            "description": "Certificate not found",
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/CertSearch003"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            404
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            }
          },
          "500": {
            "description": "Unexpected internal server error",
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/CertSearch001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            }
          }
        },
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "description": "The ID of the certificate to retrieve",
            "example": "644796623000003800cc6c4b",
            "schema": {
              "type": "string",
              "pattern": "[0-9a-fA-F]{24}"
            },
            "required": true
          }
        ]
      }
    },
    "/api/v1/certificates/{pem}": {
      "get": {
        "operationId": "certificate.get.pem",
        "deprecated": true,
        "tags": [
          "certificate"
        ],
        "summary": "Retrieve a certificate by PEM",
        "description": "Retrieve a specific certificate based on its PEM encoded value. This operation is deprecated and usage of the [find operation](#tag/certificate/operation/certificate.find) is recommended.",
        "responses": {
          "200": {
            "description": "The specified certificate",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CertificateResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad request",
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/CertSearch002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            400
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth007"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            400
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth008"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            400
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized request",
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth009"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            }
          },
          "403": {
            "description": "Unauthorized request",
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth003"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth004"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth005"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth006"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic004"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            }
          },
          "404": {
            "description": "Certificate not found",
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/CertSearch003"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            404
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            }
          },
          "500": {
            "description": "Unexpected internal server error",
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/CertSearch001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            }
          }
        },
        "parameters": [
          {
            "in": "path",
            "name": "pem",
            "description": "The URL encoded PEM encoded value of the certificate",
            "example": "-----BEGIN%20CERTIFICATE----- ... -----END%20CERTIFICATE-----",
            "schema": {
              "type": "string"
            },
            "required": true
          }
        ]
      }
    },
    "/api/v1/certificates/run/{id}/{triggerName}/{event}": {
      "patch": {
        "operationId": "certificate.run",
        "tags": [
          "certificate"
        ],
        "summary": "Run a certificate trigger",
        "description": "When a trigger fails, the user might have the ability to run the trigger manually again. This is only possible when `retryable` is set to true in the `triggerResult`.",
        "responses": {
          "200": {
            "description": "The updated certificate",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CertificateWithPermissionsResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad request",
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth007"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            400
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth008"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            400
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized request",
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth009"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            }
          },
          "403": {
            "description": "Unauthorized request",
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecPerm001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth003"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth004"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth005"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth006"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic004"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            }
          },
          "404": {
            "description": "Object not found",
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/CertSearch003"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            404
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/CertSearch004"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            404
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Trig003"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            404
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            }
          },
          "500": {
            "description": "Internal server error",
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Trig001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            }
          }
        },
        "parameters": [
          {
            "in": "path",
            "description": "The ID of the certificate",
            "example": "644796623000003800cc6c4b",
            "name": "id",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "in": "path",
            "description": "The name of the trigger",
            "example": "TestTrigger",
            "name": "triggerName",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "in": "path",
            "name": "event",
            "required": true,
            "schema": {
              "type": "string",
              "enum": [
                "on_enroll",
                "on_revoke",
                "on_update",
                "on_recover",
                "on_migrate",
                "on_expire",
                "on_renew"
              ]
            }
          }
        ]
      }
    },
    "/api/v1/certificates/search/dictionary": {
      "get": {
        "operationId": "certificate.dictionary",
        "tags": [
          "certificate"
        ],
        "summary": "Retrieve the certificate search dictionary",
        "description": "Return the certificate search dictionary. The dictionary is computed based on the principal and includes:\n\n\n\n\n  - The list of certificate profiles on which the principal is authorized to search on;\n  - The list of discovery campaigns the principal is authorized to search on;\n  - The list of labels the principal is authorized to search on;\n  - The list of modules available on the Horizon instance;\n  - The list of available teams on the Horizon instance;\n  - The list of available grading policies on the Horizon instance;\n  - The list of available metadata on Horizon.\n",
        "responses": {
          "200": {
            "description": "The certificate search dictionary",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CertificateSearchDictionaryResponse"
                }
              }
            }
          },
          "400": {
            "description": "Invalid request",
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth007"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            400
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth008"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            400
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized request",
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth009"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            }
          },
          "403": {
            "description": "Unauthorized request",
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth003"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth004"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth005"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth006"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic004"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            }
          },
          "500": {
            "description": "Internal server error",
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/CertSearch001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/certificates/search": {
      "post": {
        "operationId": "certificate.search",
        "tags": [
          "certificate"
        ],
        "summary": "Search certificates",
        "description": "Send a certificate search query (in HCQL format) and return the certificate search results",
        "parameters": [
          {
            "in": "query",
            "name": "enableAnalytics",
            "schema": {
              "type": "boolean"
            },
            "description": "Use the analytics database if enabled. `true` if not specified."
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CertificateSearchQuery"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The certificate search results",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CertificateSearchResultsResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad request",
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/CertSearch002"
                        },
                        {
                          "properties": {
                            "status": {
                              "enum": [
                                400
                              ]
                            }
                          },
                          "required": [
                            "status"
                          ]
                        }
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth007"
                        },
                        {
                          "properties": {
                            "status": {
                              "enum": [
                                400
                              ]
                            }
                          },
                          "required": [
                            "status"
                          ]
                        }
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth008"
                        },
                        {
                          "properties": {
                            "status": {
                              "enum": [
                                400
                              ]
                            }
                          },
                          "required": [
                            "status"
                          ]
                        }
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Hql001"
                        },
                        {
                          "properties": {
                            "status": {
                              "enum": [
                                400
                              ]
                            }
                          },
                          "required": [
                            "status"
                          ]
                        }
                      ]
                    }
                  ]
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized request.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth002"
                        },
                        {
                          "properties": {
                            "status": {
                              "enum": [
                                401
                              ]
                            }
                          },
                          "required": [
                            "status"
                          ]
                        }
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth009"
                        },
                        {
                          "properties": {
                            "status": {
                              "enum": [
                                401
                              ]
                            }
                          },
                          "required": [
                            "status"
                          ]
                        }
                      ]
                    }
                  ]
                }
              }
            }
          },
          "403": {
            "description": "Unauthorized request.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth003"
                        },
                        {
                          "properties": {
                            "status": {
                              "enum": [
                                403
                              ]
                            }
                          },
                          "required": [
                            "status"
                          ]
                        }
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth004"
                        },
                        {
                          "properties": {
                            "status": {
                              "enum": [
                                403
                              ]
                            }
                          },
                          "required": [
                            "status"
                          ]
                        }
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth005"
                        },
                        {
                          "properties": {
                            "status": {
                              "enum": [
                                403
                              ]
                            }
                          },
                          "required": [
                            "status"
                          ]
                        }
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth006"
                        },
                        {
                          "properties": {
                            "status": {
                              "enum": [
                                403
                              ]
                            }
                          },
                          "required": [
                            "status"
                          ]
                        }
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic002"
                        },
                        {
                          "properties": {
                            "status": {
                              "enum": [
                                403
                              ]
                            }
                          },
                          "required": [
                            "status"
                          ]
                        }
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic004"
                        },
                        {
                          "properties": {
                            "status": {
                              "enum": [
                                403
                              ]
                            }
                          },
                          "required": [
                            "status"
                          ]
                        }
                      ]
                    }
                  ]
                }
              }
            }
          },
          "500": {
            "description": "Internal server error.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/CertSearch001"
                        },
                        {
                          "properties": {
                            "status": {
                              "enum": [
                                500
                              ]
                            }
                          },
                          "required": [
                            "status"
                          ]
                        }
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth001"
                        },
                        {
                          "properties": {
                            "status": {
                              "enum": [
                                500
                              ]
                            }
                          },
                          "required": [
                            "status"
                          ]
                        }
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic001"
                        },
                        {
                          "properties": {
                            "status": {
                              "enum": [
                                500
                              ]
                            }
                          },
                          "required": [
                            "status"
                          ]
                        }
                      ]
                    }
                  ]
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/certificates/find": {
      "post": {
        "operationId": "certificate.find",
        "tags": [
          "certificate"
        ],
        "summary": "Find a certificate",
        "description": "Find a certificate by its Id or PEM",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "oneOf": [
                  {
                    "$ref": "#/components/schemas/FindCertificateById"
                  },
                  {
                    "$ref": "#/components/schemas/FindCertificateByPem"
                  }
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The certificate if found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CertificateWithPermissionsResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad request",
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/CertSearch002"
                        },
                        {
                          "properties": {
                            "status": {
                              "enum": [
                                400
                              ]
                            }
                          },
                          "required": [
                            "status"
                          ]
                        }
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth007"
                        },
                        {
                          "properties": {
                            "status": {
                              "enum": [
                                400
                              ]
                            }
                          },
                          "required": [
                            "status"
                          ]
                        }
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth008"
                        },
                        {
                          "properties": {
                            "status": {
                              "enum": [
                                400
                              ]
                            }
                          },
                          "required": [
                            "status"
                          ]
                        }
                      ]
                    }
                  ]
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized request.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth002"
                        },
                        {
                          "properties": {
                            "status": {
                              "enum": [
                                401
                              ]
                            }
                          },
                          "required": [
                            "status"
                          ]
                        }
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth009"
                        },
                        {
                          "properties": {
                            "status": {
                              "enum": [
                                401
                              ]
                            }
                          },
                          "required": [
                            "status"
                          ]
                        }
                      ]
                    }
                  ]
                }
              }
            }
          },
          "403": {
            "description": "Unauthorized request.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth003"
                        },
                        {
                          "properties": {
                            "status": {
                              "enum": [
                                403
                              ]
                            }
                          },
                          "required": [
                            "status"
                          ]
                        }
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth004"
                        },
                        {
                          "properties": {
                            "status": {
                              "enum": [
                                403
                              ]
                            }
                          },
                          "required": [
                            "status"
                          ]
                        }
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth005"
                        },
                        {
                          "properties": {
                            "status": {
                              "enum": [
                                403
                              ]
                            }
                          },
                          "required": [
                            "status"
                          ]
                        }
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth006"
                        },
                        {
                          "properties": {
                            "status": {
                              "enum": [
                                403
                              ]
                            }
                          },
                          "required": [
                            "status"
                          ]
                        }
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic002"
                        },
                        {
                          "properties": {
                            "status": {
                              "enum": [
                                403
                              ]
                            }
                          },
                          "required": [
                            "status"
                          ]
                        }
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic004"
                        },
                        {
                          "properties": {
                            "status": {
                              "enum": [
                                403
                              ]
                            }
                          },
                          "required": [
                            "status"
                          ]
                        }
                      ]
                    }
                  ]
                }
              }
            }
          },
          "404": {
            "description": "Not found.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/CertSearch003"
                        },
                        {
                          "properties": {
                            "status": {
                              "enum": [
                                403
                              ]
                            }
                          },
                          "required": [
                            "status"
                          ]
                        }
                      ]
                    }
                  ]
                }
              }
            }
          },
          "500": {
            "description": "Internal server error.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/CertSearch001"
                        },
                        {
                          "properties": {
                            "status": {
                              "enum": [
                                500
                              ]
                            }
                          },
                          "required": [
                            "status"
                          ]
                        }
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth001"
                        },
                        {
                          "properties": {
                            "status": {
                              "enum": [
                                500
                              ]
                            }
                          },
                          "required": [
                            "status"
                          ]
                        }
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic001"
                        },
                        {
                          "properties": {
                            "status": {
                              "enum": [
                                500
                              ]
                            }
                          },
                          "required": [
                            "status"
                          ]
                        }
                      ]
                    }
                  ]
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/certificates/aggregate": {
      "post": {
        "operationId": "certificate.aggregate",
        "tags": [
          "certificate"
        ],
        "summary": "Certificate aggregation",
        "description": "Send a certificate aggregation query and return the aggregation result",
        "parameters": [
          {
            "in": "query",
            "name": "enableAnalytics",
            "schema": {
              "type": "boolean"
            },
            "description": "Use the analytics database if enabled. `true` if not specified."
          }
        ],
        "requestBody": {
          "description": "The certificate aggregation query",
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CertificateAggregateQuery"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The aggregation result",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CertificateAggregateResultResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad request",
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/CertSearch005"
                        },
                        {
                          "properties": {
                            "status": {
                              "enum": [
                                400
                              ]
                            }
                          },
                          "required": [
                            "status"
                          ]
                        }
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth007"
                        },
                        {
                          "properties": {
                            "status": {
                              "enum": [
                                400
                              ]
                            }
                          },
                          "required": [
                            "status"
                          ]
                        }
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth008"
                        },
                        {
                          "properties": {
                            "status": {
                              "enum": [
                                400
                              ]
                            }
                          },
                          "required": [
                            "status"
                          ]
                        }
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Hql001"
                        },
                        {
                          "properties": {
                            "status": {
                              "enum": [
                                400
                              ]
                            }
                          },
                          "required": [
                            "status"
                          ]
                        }
                      ]
                    }
                  ]
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized request",
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth002"
                        },
                        {
                          "properties": {
                            "status": {
                              "enum": [
                                401
                              ]
                            }
                          },
                          "required": [
                            "status"
                          ]
                        }
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth009"
                        },
                        {
                          "properties": {
                            "status": {
                              "enum": [
                                401
                              ]
                            }
                          },
                          "required": [
                            "status"
                          ]
                        }
                      ]
                    }
                  ]
                }
              }
            }
          },
          "403": {
            "description": "Unauthorized request",
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth003"
                        },
                        {
                          "properties": {
                            "status": {
                              "enum": [
                                403
                              ]
                            }
                          },
                          "required": [
                            "status"
                          ]
                        }
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth004"
                        },
                        {
                          "properties": {
                            "status": {
                              "enum": [
                                403
                              ]
                            }
                          },
                          "required": [
                            "status"
                          ]
                        }
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth005"
                        },
                        {
                          "properties": {
                            "status": {
                              "enum": [
                                403
                              ]
                            }
                          },
                          "required": [
                            "status"
                          ]
                        }
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth006"
                        },
                        {
                          "properties": {
                            "status": {
                              "enum": [
                                403
                              ]
                            }
                          },
                          "required": [
                            "status"
                          ]
                        }
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic002"
                        },
                        {
                          "properties": {
                            "status": {
                              "enum": [
                                403
                              ]
                            }
                          },
                          "required": [
                            "status"
                          ]
                        }
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic004"
                        },
                        {
                          "properties": {
                            "status": {
                              "enum": [
                                403
                              ]
                            }
                          },
                          "required": [
                            "status"
                          ]
                        }
                      ]
                    }
                  ]
                }
              }
            }
          },
          "500": {
            "description": "Internal server error",
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/CertSearch001"
                        },
                        {
                          "properties": {
                            "status": {
                              "enum": [
                                500
                              ]
                            }
                          },
                          "required": [
                            "status"
                          ]
                        }
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth001"
                        },
                        {
                          "properties": {
                            "status": {
                              "enum": [
                                500
                              ]
                            }
                          },
                          "required": [
                            "status"
                          ]
                        }
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic001"
                        },
                        {
                          "properties": {
                            "status": {
                              "enum": [
                                500
                              ]
                            }
                          },
                          "required": [
                            "status"
                          ]
                        }
                      ]
                    }
                  ]
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/certificates/csv": {
      "post": {
        "operationId": "certificate.csv",
        "tags": [
          "certificate"
        ],
        "summary": "Export certificates",
        "description": "Send a certificate search query (in HCQL format) and return the certificate search results in CSV format",
        "parameters": [
          {
            "in": "query",
            "name": "enableAnalytics",
            "schema": {
              "type": "boolean"
            },
            "description": "Use the analytics database if enabled. `true` if not specified."
          }
        ],
        "requestBody": {
          "description": "The certificate search query",
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CertificateSearchQuery"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The certificate search results in CSV format",
            "content": {
              "text/csv": {}
            }
          },
          "204": {
            "description": "No certificate found"
          },
          "400": {
            "description": "Bad request",
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/CertSearch002"
                        },
                        {
                          "properties": {
                            "status": {
                              "enum": [
                                400
                              ]
                            }
                          },
                          "required": [
                            "status"
                          ]
                        }
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth007"
                        },
                        {
                          "properties": {
                            "status": {
                              "enum": [
                                400
                              ]
                            }
                          },
                          "required": [
                            "status"
                          ]
                        }
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth008"
                        },
                        {
                          "properties": {
                            "status": {
                              "enum": [
                                400
                              ]
                            }
                          },
                          "required": [
                            "status"
                          ]
                        }
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Hql001"
                        },
                        {
                          "properties": {
                            "status": {
                              "enum": [
                                400
                              ]
                            }
                          },
                          "required": [
                            "status"
                          ]
                        }
                      ]
                    }
                  ]
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized request",
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth002"
                        },
                        {
                          "properties": {
                            "status": {
                              "enum": [
                                401
                              ]
                            }
                          },
                          "required": [
                            "status"
                          ]
                        }
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth009"
                        },
                        {
                          "properties": {
                            "status": {
                              "enum": [
                                401
                              ]
                            }
                          },
                          "required": [
                            "status"
                          ]
                        }
                      ]
                    }
                  ]
                }
              }
            }
          },
          "403": {
            "description": "Unauthorized request",
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth003"
                        },
                        {
                          "properties": {
                            "status": {
                              "enum": [
                                403
                              ]
                            }
                          },
                          "required": [
                            "status"
                          ]
                        }
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth004"
                        },
                        {
                          "properties": {
                            "status": {
                              "enum": [
                                403
                              ]
                            }
                          },
                          "required": [
                            "status"
                          ]
                        }
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth005"
                        },
                        {
                          "properties": {
                            "status": {
                              "enum": [
                                403
                              ]
                            }
                          },
                          "required": [
                            "status"
                          ]
                        }
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth006"
                        },
                        {
                          "properties": {
                            "status": {
                              "enum": [
                                403
                              ]
                            }
                          },
                          "required": [
                            "status"
                          ]
                        }
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic002"
                        },
                        {
                          "properties": {
                            "status": {
                              "enum": [
                                403
                              ]
                            }
                          },
                          "required": [
                            "status"
                          ]
                        }
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic004"
                        },
                        {
                          "properties": {
                            "status": {
                              "enum": [
                                403
                              ]
                            }
                          },
                          "required": [
                            "status"
                          ]
                        }
                      ]
                    }
                  ]
                }
              }
            }
          },
          "500": {
            "description": "Internal server error",
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/CertSearch001"
                        },
                        {
                          "properties": {
                            "status": {
                              "enum": [
                                500
                              ]
                            }
                          },
                          "required": [
                            "status"
                          ]
                        }
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth001"
                        },
                        {
                          "properties": {
                            "status": {
                              "enum": [
                                500
                              ]
                            }
                          },
                          "required": [
                            "status"
                          ]
                        }
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic001"
                        },
                        {
                          "properties": {
                            "status": {
                              "enum": [
                                500
                              ]
                            }
                          },
                          "required": [
                            "status"
                          ]
                        }
                      ]
                    }
                  ]
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/requests/profiles": {
      "get": {
        "operationId": "request.certificate.profile",
        "tags": [
          "request"
        ],
        "summary": "List profiles",
        "description": "All requests on Horizon are linked to a profile, which defines a certificate template and a PKI connector which will sign the certificate.  \nBefore submitting a request (such as an enrollement or revocation request), you must choose the profile on which you want to perform the operation.  \nThis endpoint lists certificate profiles on which a principal owns a given workflow capability, such as enroll or revoke.  ",
        "responses": {
          "200": {
            "description": "The requestable certificate profile list",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/RequestableCertificateProfileResponse"
                  }
                }
              }
            }
          },
          "204": {
            "description": "Principal does not own any workflow permission on certificate profile(s)"
          },
          "403": {
            "description": "Forbidden action",
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic004"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            }
          },
          "500": {
            "description": "Internal server error",
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Req001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            }
          }
        },
        "parameters": [
          {
            "in": "query",
            "name": "module",
            "schema": {
              "description": "Only return profiles from a given module. If not specified, all profiles will be returned.",
              "enum": [
                "acme",
                "est",
                "scep",
                "wcce",
                "webra",
                "crmp",
                "monitored"
              ],
              "nullable": true,
              "type": "string"
            },
            "required": false
          },
          {
            "in": "query",
            "name": "workflow",
            "schema": {
              "description": "Only return profiles on which the principal owns a given workflow capability. If not specified, all profiles will be returned.",
              "enum": [
                "enroll",
                "revoke",
                "recover",
                "renew",
                "update",
                "migrate",
                "import"
              ],
              "nullable": true,
              "type": "string"
            },
            "required": false
          }
        ]
      }
    },
    "/api/v1/requests/template": {
      "post": {
        "operationId": "request.template",
        "tags": [
          "request"
        ],
        "summary": "Retrieve a request template",
        "description": "Retrieve the template to fulfill a specific request. The template indicates the required element to include when submitting a new request",
        "requestBody": {
          "description": "The request on which to return the template",
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "oneOf": [
                  {
                    "$ref": "#/components/schemas/WebRAEnrollRequestOnTemplate"
                  },
                  {
                    "$ref": "#/components/schemas/WebRARevokeRequestOnTemplate"
                  },
                  {
                    "$ref": "#/components/schemas/WebRAUpdateRequestOnTemplate"
                  },
                  {
                    "$ref": "#/components/schemas/WebRARecoverRequestOnTemplate"
                  },
                  {
                    "$ref": "#/components/schemas/WebRAMigrateRequestOnTemplate"
                  },
                  {
                    "$ref": "#/components/schemas/WebRARenewRequestOnTemplate"
                  },
                  {
                    "$ref": "#/components/schemas/WebRAImportRequestOnTemplate"
                  },
                  {
                    "$ref": "#/components/schemas/EstEnrollRequestOnTemplate"
                  },
                  {
                    "$ref": "#/components/schemas/ScepEnrollRequestOnTemplate"
                  }
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The request including the template",
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/WebRAEnrollRequestOnTemplateResponse"
                        }
                      ],
                      "required": [
                        "profile",
                        "template"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/WebRARevokeRequestOnTemplateResponse"
                        }
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/WebRAUpdateRequestOnTemplateResponse"
                        }
                      ],
                      "required": [
                        "profile"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/WebRARecoverRequestOnTemplateResponse"
                        }
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/WebRAMigrateRequestOnTemplateResponse"
                        }
                      ],
                      "required": [
                        "profile"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/WebRARenewRequestOnTemplateResponse"
                        }
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/WebRAImportRequestOnTemplateResponse"
                        }
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/EstEnrollRequestOnTemplateResponse"
                        }
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/ScepEnrollRequestOnTemplateResponse"
                        }
                      ]
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "description": "Invalid request",
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Req002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            400
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Req010"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            400
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth007"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            400
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth008"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            400
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth010"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            400
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/WebraImport001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            400
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized request",
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth009"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            }
          },
          "403": {
            "description": "Forbidden action",
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecPerm001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth003"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth004"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth005"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth006"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Req007"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic004"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            }
          },
          "404": {
            "description": "No profile specified",
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Req001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            404
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            }
          },
          "500": {
            "description": "Internal server error",
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Req001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/requests/submit": {
      "post": {
        "operationId": "request.submit",
        "tags": [
          "request"
        ],
        "summary": "Submit a request",
        "description": "Submit a new request",
        "requestBody": {
          "description": "The Request to submit",
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "oneOf": [
                  {
                    "$ref": "#/components/schemas/WebRAEnrollRequestOnSubmit"
                  },
                  {
                    "$ref": "#/components/schemas/WebRARevokeRequestOnSubmit"
                  },
                  {
                    "$ref": "#/components/schemas/WebRAUpdateRequestOnSubmit"
                  },
                  {
                    "$ref": "#/components/schemas/WebRARecoverRequestOnSubmit"
                  },
                  {
                    "$ref": "#/components/schemas/WebRAMigrateRequestOnSubmit"
                  },
                  {
                    "$ref": "#/components/schemas/WebRARenewRequestOnSubmit"
                  },
                  {
                    "$ref": "#/components/schemas/WebRAImportRequestOnSubmit"
                  },
                  {
                    "$ref": "#/components/schemas/EstEnrollRequestOnSubmit"
                  },
                  {
                    "$ref": "#/components/schemas/ScepEnrollRequestOnSubmit"
                  }
                ]
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Request successfully submitted",
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "$ref": "#/components/schemas/WebRAEnrollRequestOnSubmitResponse"
                    },
                    {
                      "$ref": "#/components/schemas/WebRARevokeRequestOnSubmitResponse"
                    },
                    {
                      "$ref": "#/components/schemas/WebRAUpdateRequestOnSubmitResponse"
                    },
                    {
                      "$ref": "#/components/schemas/WebRARecoverRequestOnSubmitResponse"
                    },
                    {
                      "$ref": "#/components/schemas/WebRAMigrateRequestOnSubmitResponse"
                    },
                    {
                      "$ref": "#/components/schemas/WebRARenewRequestOnSubmitResponse"
                    },
                    {
                      "$ref": "#/components/schemas/WebRAImportRequestOnSubmitResponse"
                    },
                    {
                      "$ref": "#/components/schemas/EstEnrollRequestOnSubmitResponse"
                    },
                    {
                      "$ref": "#/components/schemas/ScepEnrollRequestOnSubmitResponse"
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "description": "Invalid request",
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/CertTeam001"
                        },
                        {
                          "properties": {
                            "status": {
                              "enum": [
                                400
                              ]
                            }
                          },
                          "required": [
                            "status"
                          ]
                        }
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/CertElem001"
                        },
                        {
                          "properties": {
                            "status": {
                              "enum": [
                                400
                              ]
                            }
                          },
                          "required": [
                            "status"
                          ]
                        }
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Req002"
                        },
                        {
                          "properties": {
                            "status": {
                              "enum": [
                                400
                              ]
                            }
                          },
                          "required": [
                            "status"
                          ]
                        }
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Req004"
                        },
                        {
                          "properties": {
                            "status": {
                              "enum": [
                                400
                              ]
                            }
                          },
                          "required": [
                            "status"
                          ]
                        }
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Req005"
                        },
                        {
                          "properties": {
                            "status": {
                              "enum": [
                                400
                              ]
                            }
                          },
                          "required": [
                            "status"
                          ]
                        }
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth007"
                        },
                        {
                          "properties": {
                            "status": {
                              "enum": [
                                400
                              ]
                            }
                          },
                          "required": [
                            "status"
                          ]
                        }
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth008"
                        },
                        {
                          "properties": {
                            "status": {
                              "enum": [
                                400
                              ]
                            }
                          },
                          "required": [
                            "status"
                          ]
                        }
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth010"
                        },
                        {
                          "properties": {
                            "status": {
                              "enum": [
                                400
                              ]
                            }
                          },
                          "required": [
                            "status"
                          ]
                        }
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/EstEnroll001"
                        },
                        {
                          "properties": {
                            "status": {
                              "enum": [
                                400
                              ]
                            }
                          },
                          "required": [
                            "status"
                          ]
                        }
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/EstEnroll002"
                        },
                        {
                          "properties": {
                            "status": {
                              "enum": [
                                400
                              ]
                            }
                          },
                          "required": [
                            "status"
                          ]
                        }
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/EstEnroll003"
                        },
                        {
                          "properties": {
                            "status": {
                              "enum": [
                                400
                              ]
                            }
                          },
                          "required": [
                            "status"
                          ]
                        }
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/EstEnroll004"
                        },
                        {
                          "properties": {
                            "status": {
                              "enum": [
                                400
                              ]
                            }
                          },
                          "required": [
                            "status"
                          ]
                        }
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/EstEnroll005"
                        },
                        {
                          "properties": {
                            "status": {
                              "enum": [
                                400
                              ]
                            }
                          },
                          "required": [
                            "status"
                          ]
                        }
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/ScepEnroll001"
                        },
                        {
                          "properties": {
                            "status": {
                              "enum": [
                                400
                              ]
                            }
                          },
                          "required": [
                            "status"
                          ]
                        }
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/ScepEnroll002"
                        },
                        {
                          "properties": {
                            "status": {
                              "enum": [
                                400
                              ]
                            }
                          },
                          "required": [
                            "status"
                          ]
                        }
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/ScepEnroll003"
                        },
                        {
                          "properties": {
                            "status": {
                              "enum": [
                                400
                              ]
                            }
                          },
                          "required": [
                            "status"
                          ]
                        }
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/ScepEnroll004"
                        },
                        {
                          "properties": {
                            "status": {
                              "enum": [
                                400
                              ]
                            }
                          },
                          "required": [
                            "status"
                          ]
                        }
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/ScepEnroll005"
                        },
                        {
                          "properties": {
                            "status": {
                              "enum": [
                                400
                              ]
                            }
                          },
                          "required": [
                            "status"
                          ]
                        }
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/WebraEnroll001"
                        },
                        {
                          "properties": {
                            "status": {
                              "enum": [
                                400
                              ]
                            }
                          },
                          "required": [
                            "status"
                          ]
                        }
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/WebraEnroll002"
                        },
                        {
                          "properties": {
                            "status": {
                              "enum": [
                                400
                              ]
                            }
                          },
                          "required": [
                            "status"
                          ]
                        }
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/WebraEnroll003"
                        },
                        {
                          "properties": {
                            "status": {
                              "enum": [
                                400
                              ]
                            }
                          },
                          "required": [
                            "status"
                          ]
                        }
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/WebraEnroll004"
                        },
                        {
                          "properties": {
                            "status": {
                              "enum": [
                                400
                              ]
                            }
                          },
                          "required": [
                            "status"
                          ]
                        }
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/WebraEnroll005"
                        },
                        {
                          "properties": {
                            "status": {
                              "enum": [
                                400
                              ]
                            }
                          },
                          "required": [
                            "status"
                          ]
                        }
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/WebraEnroll006"
                        },
                        {
                          "properties": {
                            "status": {
                              "enum": [
                                400
                              ]
                            }
                          },
                          "required": [
                            "status"
                          ]
                        }
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/WebraEnroll009"
                        },
                        {
                          "properties": {
                            "status": {
                              "enum": [
                                400
                              ]
                            }
                          },
                          "required": [
                            "status"
                          ]
                        }
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/WebraEnroll012"
                        },
                        {
                          "properties": {
                            "status": {
                              "enum": [
                                400
                              ]
                            }
                          },
                          "required": [
                            "status"
                          ]
                        }
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/WebraRecover001"
                        },
                        {
                          "properties": {
                            "status": {
                              "enum": [
                                400
                              ]
                            }
                          },
                          "required": [
                            "status"
                          ]
                        }
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/WebraRecover002"
                        },
                        {
                          "properties": {
                            "status": {
                              "enum": [
                                400
                              ]
                            }
                          },
                          "required": [
                            "status"
                          ]
                        }
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/WebraRecover003"
                        },
                        {
                          "properties": {
                            "status": {
                              "enum": [
                                400
                              ]
                            }
                          },
                          "required": [
                            "status"
                          ]
                        }
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/WebraRecover004"
                        },
                        {
                          "properties": {
                            "status": {
                              "enum": [
                                400
                              ]
                            }
                          },
                          "required": [
                            "status"
                          ]
                        }
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/WebraRevoke001"
                        },
                        {
                          "properties": {
                            "status": {
                              "enum": [
                                400
                              ]
                            }
                          },
                          "required": [
                            "status"
                          ]
                        }
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/WebraRevoke003"
                        },
                        {
                          "properties": {
                            "status": {
                              "enum": [
                                400
                              ]
                            }
                          },
                          "required": [
                            "status"
                          ]
                        }
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/WebraRevoke004"
                        },
                        {
                          "properties": {
                            "status": {
                              "enum": [
                                400
                              ]
                            }
                          },
                          "required": [
                            "status"
                          ]
                        }
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/WebraRevoke005"
                        },
                        {
                          "properties": {
                            "status": {
                              "enum": [
                                400
                              ]
                            }
                          },
                          "required": [
                            "status"
                          ]
                        }
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/WebraRevoke006"
                        },
                        {
                          "properties": {
                            "status": {
                              "enum": [
                                400
                              ]
                            }
                          },
                          "required": [
                            "status"
                          ]
                        }
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/WebraMigrate001"
                        },
                        {
                          "properties": {
                            "status": {
                              "enum": [
                                400
                              ]
                            }
                          },
                          "required": [
                            "status"
                          ]
                        }
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/WebraMigrate007"
                        },
                        {
                          "properties": {
                            "status": {
                              "enum": [
                                400
                              ]
                            }
                          },
                          "required": [
                            "status"
                          ]
                        }
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/WebraRenew001"
                        },
                        {
                          "properties": {
                            "status": {
                              "enum": [
                                400
                              ]
                            }
                          },
                          "required": [
                            "status"
                          ]
                        }
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/WebraRenew003"
                        },
                        {
                          "properties": {
                            "status": {
                              "enum": [
                                400
                              ]
                            }
                          },
                          "required": [
                            "status"
                          ]
                        }
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/WebraRenew004"
                        },
                        {
                          "properties": {
                            "status": {
                              "enum": [
                                400
                              ]
                            }
                          },
                          "required": [
                            "status"
                          ]
                        }
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/WebraRenew005"
                        },
                        {
                          "properties": {
                            "status": {
                              "enum": [
                                400
                              ]
                            }
                          },
                          "required": [
                            "status"
                          ]
                        }
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/WebraRenew006"
                        },
                        {
                          "properties": {
                            "status": {
                              "enum": [
                                400
                              ]
                            }
                          },
                          "required": [
                            "status"
                          ]
                        }
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/WebraImport001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            400
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/WebraImport003"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            400
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/WebraImport004"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            400
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized request",
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth002"
                        },
                        {
                          "properties": {
                            "status": {
                              "enum": [
                                401
                              ]
                            }
                          },
                          "required": [
                            "status"
                          ]
                        }
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth009"
                        },
                        {
                          "properties": {
                            "status": {
                              "enum": [
                                401
                              ]
                            }
                          },
                          "required": [
                            "status"
                          ]
                        }
                      ]
                    }
                  ]
                }
              }
            }
          },
          "403": {
            "description": "Forbidden action",
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecPerm001"
                        },
                        {
                          "properties": {
                            "status": {
                              "enum": [
                                403
                              ]
                            }
                          },
                          "required": [
                            "status"
                          ]
                        }
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth003"
                        },
                        {
                          "properties": {
                            "status": {
                              "enum": [
                                403
                              ]
                            }
                          },
                          "required": [
                            "status"
                          ]
                        }
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth004"
                        },
                        {
                          "properties": {
                            "status": {
                              "enum": [
                                403
                              ]
                            }
                          },
                          "required": [
                            "status"
                          ]
                        }
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth005"
                        },
                        {
                          "properties": {
                            "status": {
                              "enum": [
                                403
                              ]
                            }
                          },
                          "required": [
                            "status"
                          ]
                        }
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth006"
                        },
                        {
                          "properties": {
                            "status": {
                              "enum": [
                                403
                              ]
                            }
                          },
                          "required": [
                            "status"
                          ]
                        }
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic002"
                        },
                        {
                          "properties": {
                            "status": {
                              "enum": [
                                403
                              ]
                            }
                          },
                          "required": [
                            "status"
                          ]
                        }
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic003"
                        },
                        {
                          "properties": {
                            "status": {
                              "enum": [
                                403
                              ]
                            }
                          },
                          "required": [
                            "status"
                          ]
                        }
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic004"
                        },
                        {
                          "properties": {
                            "status": {
                              "enum": [
                                403
                              ]
                            }
                          },
                          "required": [
                            "status"
                          ]
                        }
                      ]
                    }
                  ]
                }
              }
            }
          },
          "404": {
            "description": "Not found",
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Req001"
                        },
                        {
                          "properties": {
                            "status": {
                              "enum": [
                                404
                              ]
                            }
                          },
                          "required": [
                            "status"
                          ]
                        }
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Req003"
                        },
                        {
                          "properties": {
                            "status": {
                              "enum": [
                                404
                              ]
                            }
                          },
                          "required": [
                            "status"
                          ]
                        }
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Req009"
                        },
                        {
                          "properties": {
                            "status": {
                              "enum": [
                                404
                              ]
                            }
                          },
                          "required": [
                            "status"
                          ]
                        }
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Req010"
                        },
                        {
                          "properties": {
                            "status": {
                              "enum": [
                                404
                              ]
                            }
                          },
                          "required": [
                            "status"
                          ]
                        }
                      ]
                    }
                  ]
                }
              }
            }
          },
          "500": {
            "description": "Internal server error",
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Req001"
                        },
                        {
                          "properties": {
                            "status": {
                              "enum": [
                                500
                              ]
                            }
                          },
                          "required": [
                            "status"
                          ]
                        }
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Req003"
                        },
                        {
                          "properties": {
                            "status": {
                              "enum": [
                                500
                              ]
                            }
                          },
                          "required": [
                            "status"
                          ]
                        }
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Req010"
                        },
                        {
                          "properties": {
                            "status": {
                              "enum": [
                                500
                              ]
                            }
                          },
                          "required": [
                            "status"
                          ]
                        }
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/EstEnroll006"
                        },
                        {
                          "properties": {
                            "status": {
                              "enum": [
                                500
                              ]
                            }
                          },
                          "required": [
                            "status"
                          ]
                        }
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/EstEnroll007"
                        },
                        {
                          "properties": {
                            "status": {
                              "enum": [
                                500
                              ]
                            }
                          },
                          "required": [
                            "status"
                          ]
                        }
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/EstEnroll008"
                        },
                        {
                          "properties": {
                            "status": {
                              "enum": [
                                500
                              ]
                            }
                          },
                          "required": [
                            "status"
                          ]
                        }
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/EstEnroll009"
                        },
                        {
                          "properties": {
                            "status": {
                              "enum": [
                                500
                              ]
                            }
                          },
                          "required": [
                            "status"
                          ]
                        }
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/ScepEnroll006"
                        },
                        {
                          "properties": {
                            "status": {
                              "enum": [
                                500
                              ]
                            }
                          },
                          "required": [
                            "status"
                          ]
                        }
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/ScepEnroll007"
                        },
                        {
                          "properties": {
                            "status": {
                              "enum": [
                                500
                              ]
                            }
                          },
                          "required": [
                            "status"
                          ]
                        }
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/ScepEnroll008"
                        },
                        {
                          "properties": {
                            "status": {
                              "enum": [
                                500
                              ]
                            }
                          },
                          "required": [
                            "status"
                          ]
                        }
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/ScepEnroll009"
                        },
                        {
                          "properties": {
                            "status": {
                              "enum": [
                                500
                              ]
                            }
                          },
                          "required": [
                            "status"
                          ]
                        }
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/WebraEnroll007"
                        },
                        {
                          "properties": {
                            "status": {
                              "enum": [
                                500
                              ]
                            }
                          },
                          "required": [
                            "status"
                          ]
                        }
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/WebraEnroll008"
                        },
                        {
                          "properties": {
                            "status": {
                              "enum": [
                                500
                              ]
                            }
                          },
                          "required": [
                            "status"
                          ]
                        }
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/WebraEnroll010"
                        },
                        {
                          "properties": {
                            "status": {
                              "enum": [
                                500
                              ]
                            }
                          },
                          "required": [
                            "status"
                          ]
                        }
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/WebraEnroll011"
                        },
                        {
                          "properties": {
                            "status": {
                              "enum": [
                                500
                              ]
                            }
                          },
                          "required": [
                            "status"
                          ]
                        }
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/WebraEnroll012"
                        },
                        {
                          "properties": {
                            "status": {
                              "enum": [
                                500
                              ]
                            }
                          },
                          "required": [
                            "status"
                          ]
                        }
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/WebraEnroll013"
                        },
                        {
                          "properties": {
                            "status": {
                              "enum": [
                                500
                              ]
                            }
                          },
                          "required": [
                            "status"
                          ]
                        }
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/WebraEnroll014"
                        },
                        {
                          "properties": {
                            "status": {
                              "enum": [
                                500
                              ]
                            }
                          },
                          "required": [
                            "status"
                          ]
                        }
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/WebraRecover002"
                        },
                        {
                          "properties": {
                            "status": {
                              "enum": [
                                500
                              ]
                            }
                          },
                          "required": [
                            "status"
                          ]
                        }
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/WebraRevoke002"
                        },
                        {
                          "properties": {
                            "status": {
                              "enum": [
                                500
                              ]
                            }
                          },
                          "required": [
                            "status"
                          ]
                        }
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/WebraMigrate005"
                        },
                        {
                          "properties": {
                            "status": {
                              "enum": [
                                500
                              ]
                            }
                          },
                          "required": [
                            "status"
                          ]
                        }
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/WebraRenew002"
                        },
                        {
                          "properties": {
                            "status": {
                              "enum": [
                                500
                              ]
                            }
                          },
                          "required": [
                            "status"
                          ]
                        }
                      ]
                    }
                  ]
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/requests/{id}": {
      "get": {
        "operationId": "request.get",
        "tags": [
          "request"
        ],
        "summary": "Retrieve a request",
        "description": "Retrieve an existing request based on its id",
        "responses": {
          "200": {
            "description": "The request",
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "$ref": "#/components/schemas/WebRAEnrollRequestOnGetResponse"
                    },
                    {
                      "$ref": "#/components/schemas/WebRARevokeRequestOnApproveResponse"
                    },
                    {
                      "$ref": "#/components/schemas/WebRAUpdateRequestOnGetResponse"
                    },
                    {
                      "$ref": "#/components/schemas/WebRARecoverRequestOnApproveResponse"
                    },
                    {
                      "$ref": "#/components/schemas/WebRAMigrateRequestOnGetResponse"
                    },
                    {
                      "$ref": "#/components/schemas/WebRARenewRequestOnApproveResponse"
                    },
                    {
                      "$ref": "#/components/schemas/WebRAImportRequestOnGetResponse"
                    },
                    {
                      "$ref": "#/components/schemas/EstEnrollRequestOnGetResponse"
                    },
                    {
                      "$ref": "#/components/schemas/ScepEnrollRequestOnGetResponse"
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "description": "Invalid request",
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Req010"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            400
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            }
          },
          "403": {
            "description": "Forbidden action",
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecPerm001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic004"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            }
          },
          "404": {
            "description": "Request not found",
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Req001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            404
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Req003"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            404
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            }
          },
          "500": {
            "description": "Internal server error",
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Req001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            }
          }
        },
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "description": "The request ID",
            "schema": {
              "type": "string"
            },
            "required": true
          }
        ]
      }
    },
    "/api/v1/requests/cancel": {
      "post": {
        "operationId": "request.cancel",
        "tags": [
          "request"
        ],
        "summary": "Cancel a request",
        "description": "Cancel an existing request",
        "requestBody": {
          "description": "The Request to cancel",
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "_id": {
                    "description": "The ID of the request to cancel",
                    "allOf": [
                      {
                        "$ref": "#/components/schemas/Id"
                      }
                    ]
                  },
                  "module": {
                    "$ref": "#/components/schemas/Module"
                  },
                  "workflow": {
                    "$ref": "#/components/schemas/Workflow"
                  }
                },
                "required": [
                  "_id",
                  "module",
                  "workflow"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Request successfully canceled",
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "$ref": "#/components/schemas/WebRAEnrollRequestOnApproveResponse"
                    },
                    {
                      "$ref": "#/components/schemas/WebRARevokeRequestOnApproveResponse"
                    },
                    {
                      "$ref": "#/components/schemas/WebRAUpdateRequestOnApproveResponse"
                    },
                    {
                      "$ref": "#/components/schemas/WebRARecoverRequestOnApproveResponse"
                    },
                    {
                      "$ref": "#/components/schemas/WebRAMigrateRequestOnApproveResponse"
                    },
                    {
                      "$ref": "#/components/schemas/WebRARenewRequestOnApproveResponse"
                    },
                    {
                      "$ref": "#/components/schemas/WebRAImportRequestOnApproveResponse"
                    },
                    {
                      "$ref": "#/components/schemas/EstEnrollRequestOnApproveResponse"
                    },
                    {
                      "$ref": "#/components/schemas/ScepEnrollRequestOnApproveResponse"
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "description": "Invalid request",
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Req002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            400
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Req004"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            400
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Req005"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            400
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth007"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            400
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth008"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            400
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized request",
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth009"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            }
          },
          "403": {
            "description": "Forbidden action",
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecPerm001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth003"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth004"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth005"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth006"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic004"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            }
          },
          "404": {
            "description": "Not found",
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Req003"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            404
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/CertSearch003"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            404
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            }
          },
          "500": {
            "description": "Internal server error",
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Req001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/requests/approve": {
      "post": {
        "operationId": "request.approve",
        "tags": [
          "request"
        ],
        "summary": "Approve a request",
        "description": "Requester that do not have the privileges to directly enroll will see their requests in the pending state after submitting them. An approver can then approve the request, which will trigger the enrollment trough the configured PKI connector.",
        "requestBody": {
          "description": "The request to approve",
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "oneOf": [
                  {
                    "$ref": "#/components/schemas/WebRAEnrollRequestOnApprove"
                  },
                  {
                    "$ref": "#/components/schemas/WebRARevokeRequestOnApprove"
                  },
                  {
                    "$ref": "#/components/schemas/WebRAUpdateRequestOnApprove"
                  },
                  {
                    "$ref": "#/components/schemas/WebRARecoverRequestOnApprove"
                  },
                  {
                    "$ref": "#/components/schemas/WebRAMigrateRequestOnApprove"
                  },
                  {
                    "$ref": "#/components/schemas/WebRARenewRequestOnApprove"
                  },
                  {
                    "$ref": "#/components/schemas/WebRAImportRequestOnApprove"
                  },
                  {
                    "$ref": "#/components/schemas/EstEnrollRequestOnApprove"
                  },
                  {
                    "$ref": "#/components/schemas/ScepEnrollRequestOnApprove"
                  }
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Request successfully approved",
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "$ref": "#/components/schemas/WebRAEnrollRequestOnApproveResponse"
                    },
                    {
                      "$ref": "#/components/schemas/WebRARevokeRequestOnApproveResponse"
                    },
                    {
                      "$ref": "#/components/schemas/WebRAUpdateRequestOnApproveResponse"
                    },
                    {
                      "$ref": "#/components/schemas/WebRARecoverRequestOnApproveResponse"
                    },
                    {
                      "$ref": "#/components/schemas/WebRAMigrateRequestOnApproveResponse"
                    },
                    {
                      "$ref": "#/components/schemas/WebRARenewRequestOnApproveResponse"
                    },
                    {
                      "$ref": "#/components/schemas/WebRAImportRequestOnApproveResponse"
                    },
                    {
                      "$ref": "#/components/schemas/EstEnrollRequestOnApproveResponse"
                    },
                    {
                      "$ref": "#/components/schemas/ScepEnrollRequestOnApproveResponse"
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "description": "Invalid request",
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/CertTeam001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            400
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/CertElem001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            400
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Req002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            400
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Req004"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            400
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Req005"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            400
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth007"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            400
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth008"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            400
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/EstEnroll001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            400
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/EstEnroll002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            400
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/EstEnroll003"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            400
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/EstEnroll004"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            400
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/EstEnroll005"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            400
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/ScepEnroll001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            400
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/ScepEnroll002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            400
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/ScepEnroll003"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            400
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/ScepEnroll004"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            400
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/ScepEnroll005"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            400
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/WebraEnroll001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            400
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/WebraEnroll002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            400
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/WebraEnroll003"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            400
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/WebraEnroll004"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            400
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/WebraEnroll005"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            400
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/WebraEnroll006"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            400
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/WebraEnroll009"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            400
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/WebraRecover001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            400
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/WebraRecover002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            400
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/WebraRecover003"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            400
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/WebraRecover004"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            400
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/WebraRevoke001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            400
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/WebraRevoke003"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            400
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/WebraRevoke004"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            400
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/WebraRevoke005"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            400
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/WebraRevoke006"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            400
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/WebraMigrate001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            400
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/WebraMigrate006"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            400
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/WebraMigrate007"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            400
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/WebraRenew001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            400
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/WebraRenew003"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            400
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/WebraRenew004"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            400
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/WebraRenew005"
                        },
                        {
                          "properties": {
                            "status": {
                              "enum": [
                                400
                              ]
                            }
                          },
                          "required": [
                            "status"
                          ]
                        }
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/WebraRenew006"
                        },
                        {
                          "properties": {
                            "status": {
                              "enum": [
                                400
                              ]
                            }
                          },
                          "required": [
                            "status"
                          ]
                        }
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/WebraImport001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            400
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/WebraImport002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            400
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized request",
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth009"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            }
          },
          "403": {
            "description": "Forbidden action",
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth003"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth004"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth005"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth006"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic003"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic004"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            }
          },
          "404": {
            "description": "Request not found",
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Req001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            404
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Req003"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            404
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Req010"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            404
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            }
          },
          "500": {
            "description": "Internal server error",
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Req001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Req003"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Req010"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/EstEnroll006"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/EstEnroll007"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/EstEnroll008"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/EstEnroll009"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/ScepEnroll006"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/ScepEnroll007"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/ScepEnroll008"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/ScepEnroll009"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/WebraEnroll007"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/WebraEnroll008"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/WebraEnroll010"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/WebraEnroll011"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/WebraEnroll012"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/WebraEnroll013"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/WebraEnroll014"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/WebraRecover002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/WebraRevoke002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/WebraMigrate002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/WebraMigrate003"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/WebraMigrate004"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/WebraRenew002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/requests/deny": {
      "post": {
        "operationId": "request.deny",
        "tags": [
          "request"
        ],
        "summary": "Deny a request",
        "description": "Deny an existing request",
        "requestBody": {
          "description": "The request to deny",
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "_id": {
                    "description": "The ID of the request to deny",
                    "allOf": [
                      {
                        "$ref": "#/components/schemas/Id"
                      }
                    ]
                  },
                  "module": {
                    "$ref": "#/components/schemas/Module"
                  },
                  "workflow": {
                    "$ref": "#/components/schemas/Workflow"
                  },
                  "approverComment": {
                    "type": "string",
                    "description": "Free-text field editable by the approver to provider more context on the denial"
                  }
                },
                "required": [
                  "_id",
                  "module",
                  "workflow"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Request successfully denied",
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "$ref": "#/components/schemas/WebRAEnrollRequestOnApproveResponse"
                    },
                    {
                      "$ref": "#/components/schemas/WebRARevokeRequestOnApproveResponse"
                    },
                    {
                      "$ref": "#/components/schemas/WebRAUpdateRequestOnApproveResponse"
                    },
                    {
                      "$ref": "#/components/schemas/WebRARecoverRequestOnApproveResponse"
                    },
                    {
                      "$ref": "#/components/schemas/WebRAMigrateRequestOnApproveResponse"
                    },
                    {
                      "$ref": "#/components/schemas/WebRARenewRequestOnApproveResponse"
                    },
                    {
                      "$ref": "#/components/schemas/WebRAImportRequestOnApproveResponse"
                    },
                    {
                      "$ref": "#/components/schemas/EstEnrollRequestOnApproveResponse"
                    },
                    {
                      "$ref": "#/components/schemas/ScepEnrollRequestOnApproveResponse"
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "description": "Invalid request",
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Req002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            400
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Req004"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            400
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Req005"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            400
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "$ref": "#/components/schemas/SecAuth007"
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth008"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            400
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized request",
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth009"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            }
          },
          "403": {
            "description": "Forbidden action",
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecPerm001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth003"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth004"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth005"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth006"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic004"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            }
          },
          "404": {
            "description": "Not found",
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Req003"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            404
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/CertSearch003"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            404
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            }
          },
          "500": {
            "description": "Internal server error",
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Req001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/requests/search/dictionary": {
      "get": {
        "operationId": "request.dictionary",
        "tags": [
          "request"
        ],
        "summary": "Retrieve the request search dictionary",
        "description": "Return the request search dictionary. The dictionary is computed based on the principal and includes:\n\n\n\n\n  - The list of certificate profiles on which the principal is authorized to search on;\n  - The list of labels the principal is authorized to search on;\n  - The list of modules available on the Horizon instance;\n  - The list of available teams on the Horizon instance;\n  - The list of available metadata on Horizon.\n",
        "responses": {
          "200": {
            "description": "The request search dictionary",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RequestSearchDictionaryResponse"
                }
              }
            }
          },
          "400": {
            "description": "Invalid request",
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth007"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            400
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth008"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            400
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized request",
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth009"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            }
          },
          "403": {
            "description": "Forbidden action",
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth003"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth004"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth005"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth006"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic004"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            }
          },
          "500": {
            "description": "Internal server error",
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Req001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/requests/search": {
      "post": {
        "operationId": "request.search",
        "tags": [
          "request"
        ],
        "summary": "Search requests",
        "description": "Send a request search query (in HRQL format) and return the request search results",
        "requestBody": {
          "description": "The request search query",
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RequestSearchQuery"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The request search results",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RequestSearchResultsResponse"
                }
              }
            }
          },
          "400": {
            "description": "Invalid request",
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Req006"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            400
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth007"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            400
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth008"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            400
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Hql001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            400
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized request",
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth009"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            }
          },
          "403": {
            "description": "Forbidden action",
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth003"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth004"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth005"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth006"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic004"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            }
          },
          "500": {
            "description": "Internal server error",
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Req001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/requests/csv": {
      "post": {
        "operationId": "request.csv",
        "tags": [
          "request"
        ],
        "summary": "Export requests",
        "description": "Send a request search query (in HRQL format) and return the request search results in CSV format",
        "requestBody": {
          "description": "The request search query",
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RequestSearchQuery"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The request search results in CSV format",
            "content": {
              "text/csv": {}
            }
          },
          "400": {
            "description": "Invalid request",
            "content": {
              "application/problem+json": {
                "schema": {
                  "anyOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Req006"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            400
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth007"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            400
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth008"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            400
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Hql001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            400
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized request",
            "content": {
              "application/problem+json": {
                "schema": {
                  "anyOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth009"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            }
          },
          "403": {
            "description": "Unauthorized request",
            "content": {
              "application/problem+json": {
                "schema": {
                  "anyOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth003"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth004"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth005"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth006"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic004"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            }
          },
          "500": {
            "description": "Internal server error",
            "content": {
              "application/problem+json": {
                "schema": {
                  "anyOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Req001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/requests/aggregate": {
      "post": {
        "operationId": "request.aggregate",
        "tags": [
          "request"
        ],
        "summary": "Request aggregation",
        "description": "Send a request aggregation query and return the aggregation result",
        "requestBody": {
          "description": "The request aggregation query",
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RequestAggregateQuery"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The aggregation result",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RequestAggregateResultResponse"
                }
              }
            }
          },
          "400": {
            "description": "Invalid request",
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Req008"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            400
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth007"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            400
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth008"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            400
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Hql001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            400
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized request",
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth009"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            }
          },
          "403": {
            "description": "Forbidden action",
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth003"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth004"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth005"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth006"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic004"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            }
          },
          "500": {
            "description": "Internal server error",
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Req001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/discovery/campaigns": {
      "get": {
        "operationId": "discovery.campaign.list",
        "tags": [
          "discovery.campaign"
        ],
        "summary": "List discovery campaign(s)",
        "description": "List all the existing discovery campaign(s)",
        "responses": {
          "200": {
            "description": "Discovery campaign list",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/DiscoveryCampaignResponse"
                  }
                }
              }
            }
          },
          "204": {
            "description": "No discovery campaign defined or insufficient permissions"
          },
          "401": {
            "description": "Authentication error",
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth003"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth004"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth005"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth006"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth007"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth008"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth009"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            }
          },
          "403": {
            "description": "Forbidden action",
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecPerm001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic004"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            }
          },
          "500": {
            "description": "Unexpected internal server error",
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/DiscCamp001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            }
          }
        }
      },
      "post": {
        "operationId": "discovery.campaign.add",
        "tags": [
          "discovery.campaign"
        ],
        "summary": "Create a new discovery campaign",
        "description": "Create a new discovery campaign in Horizon",
        "requestBody": {
          "description": "Discovery campaign to register",
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/DiscoveryCampaign"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Discovery campaign successfully registered",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DiscoveryCampaignResponse"
                }
              }
            }
          },
          "400": {
            "description": "Unable to register the discovery campaign",
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/DiscCamp002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            400
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/DiscCamp004"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            400
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            }
          },
          "401": {
            "description": "Authentication error",
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth003"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth004"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth005"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth006"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth007"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth008"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth009"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            }
          },
          "403": {
            "description": "Forbidden action",
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecPerm001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic003"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic004"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            }
          },
          "500": {
            "description": "Unexpected internal server error",
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/DiscCamp001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            }
          }
        }
      },
      "put": {
        "operationId": "discovery.campaign.update",
        "tags": [
          "discovery.campaign"
        ],
        "summary": "Update a discovery campaign",
        "description": "Update an existing discovery campaign's information",
        "requestBody": {
          "description": "Discovery campaign to update",
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/DiscoveryCampaign"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Discovery campaign successfully updated",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DiscoveryCampaignResponse"
                }
              }
            }
          },
          "400": {
            "description": "Unable to update the discovery campaign",
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/DiscCamp002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            400
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            }
          },
          "401": {
            "description": "Authentication error",
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth003"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth004"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth005"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth006"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth007"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth008"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth009"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            }
          },
          "403": {
            "description": "Forbidden action",
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecPerm001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic004"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            }
          },
          "404": {
            "description": "Discovery campaign not found",
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/DiscCamp003"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            404
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            }
          },
          "500": {
            "description": "Unexpected internal server error",
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/DiscCamp001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/discovery/campaigns/{name}": {
      "get": {
        "operationId": "discovery.campaign.get",
        "tags": [
          "discovery.campaign"
        ],
        "summary": "Retrieve a discovery campaign",
        "description": "Retrieve a specific discovery campaign based on its name",
        "responses": {
          "200": {
            "description": "The discovery campaign",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DiscoveryCampaignResponse"
                }
              }
            }
          },
          "401": {
            "description": "Authentication error",
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth003"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth004"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth005"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth006"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth007"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth008"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth009"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            }
          },
          "403": {
            "description": "Forbidden action",
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecPerm001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic004"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            }
          },
          "404": {
            "description": "Discovery campaign not found",
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/DiscCamp003"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            404
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            }
          },
          "500": {
            "description": "Unexpected internal server error",
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/DiscCamp001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            }
          }
        },
        "parameters": [
          {
            "in": "path",
            "name": "name",
            "schema": {
              "type": "string"
            },
            "required": true,
            "description": "The name of the discovery campaign to retrieve",
            "example": "Discovery-DMZ01"
          }
        ]
      },
      "delete": {
        "operationId": "discovery.campaign.delete",
        "tags": [
          "discovery.campaign"
        ],
        "summary": "Delete a discovery campaign",
        "description": "Delete an existing discovery campaign based on its name",
        "responses": {
          "204": {
            "description": "Discovery campaign successfully deleted"
          },
          "401": {
            "description": "Authentication error",
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth003"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth004"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth005"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth006"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth007"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth008"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth009"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            }
          },
          "403": {
            "description": "Forbidden action",
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecPerm001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic004"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            }
          },
          "404": {
            "description": "Discovery campaign not found",
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/DiscCamp003"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            404
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            }
          },
          "500": {
            "description": "Unexpected internal server error",
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/DiscCamp001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            }
          }
        },
        "parameters": [
          {
            "in": "path",
            "name": "name",
            "schema": {
              "type": "string"
            },
            "required": true,
            "description": "The name of the discovery campaign to delete",
            "example": "Discovery-DMZ01"
          }
        ]
      },
      "patch": {
        "operationId": "discovery.campaign.flush",
        "tags": [
          "discovery.campaign"
        ],
        "summary": "Flush a discovery campaign",
        "description": "Flush an existing discovery campaign based on its name. Flushing a discovery campaign will:\n\n\n\n\n  - Remove discovery info related to the considered discovery campaign from any certificate (managed or discovered);\n  - Delete any discovered certificate which is no longer associated to a discovery campaign.\n",
        "responses": {
          "204": {
            "description": "Discovery campaign successfully flushed"
          },
          "401": {
            "description": "Authentication error",
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth003"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth004"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth005"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth006"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth007"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth008"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth009"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            }
          },
          "403": {
            "description": "Forbidden action",
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecPerm001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic004"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            }
          },
          "404": {
            "description": "Discovery campaign not found",
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/DiscCamp003"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            404
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            }
          },
          "500": {
            "description": "Unexpected internal server error",
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/DiscCamp001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            }
          }
        },
        "parameters": [
          {
            "in": "path",
            "name": "name",
            "schema": {
              "type": "string"
            },
            "required": true,
            "description": "The name of the discovery campaign to flush"
          }
        ]
      }
    },
    "/api/v1/discovery/events/search": {
      "post": {
        "description": "Send a discovery event search query (in HDQL format) and return the discovery event search results",
        "operationId": "discovery.event.search",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/DiscoveryEventSearchQuery"
              }
            }
          },
          "description": "The discovery event search query",
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EventSearchResultsResponse"
                }
              }
            },
            "description": "The discovery event search results"
          },
          "400": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Hql001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            400
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Bad Request"
          },
          "401": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth003"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth004"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth005"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth006"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth007"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth008"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth009"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Unauthorized request"
          },
          "403": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecPerm001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic004"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Forbidden action"
          },
          "500": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/DiscEvt001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Internal Server error"
          }
        },
        "summary": "Discovery event search",
        "tags": [
          "discovery.event"
        ]
      }
    },
    "/api/v1/discovery/events/{id}": {
      "get": {
        "description": "Retrieve a specific discovery event based on its id",
        "operationId": "discovery.event.get",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "201": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DiscoveryEventResponse"
                }
              }
            },
            "description": "The discovery event"
          },
          "401": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth003"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth004"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth005"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth006"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth007"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth008"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth009"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Unauthorized request"
          },
          "403": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecPerm001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic004"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Forbidden action"
          },
          "404": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/DiscEvt003"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            404
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Not Found"
          },
          "500": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/DiscEvt001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Internal Server error"
          }
        },
        "summary": "Retrieve a specific discovery event",
        "tags": [
          "discovery.event"
        ]
      }
    },
    "/api/v1/discovery/feed/{name}": {
      "get": {
        "operationId": "discovery.feed.session.start",
        "tags": [
          "discovery.feed"
        ],
        "summary": "Create a new discovery feed session",
        "description": "Create a new discovery feed session, starts it and raises the appropriate discovery event. This call will return the discovery feed session ID.",
        "responses": {
          "201": {
            "description": "The discovery feed session was successfully created and started",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DiscoveryFeedSessionResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad request",
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth007"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            400
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth008"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            400
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized request",
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth009"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            }
          },
          "403": {
            "description": "Forbidden action",
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecPerm001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth003"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth004"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth005"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth006"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic004"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            }
          },
          "404": {
            "description": "Discovery campaign not found",
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/DiscCamp003"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            404
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            }
          },
          "500": {
            "description": "Internal server error",
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/DiscFeed001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            }
          }
        },
        "parameters": [
          {
            "in": "path",
            "name": "name",
            "schema": {
              "type": "string"
            },
            "required": true,
            "description": "The name of the discovery campaign to create a new feed session for"
          }
        ]
      }
    },
    "/api/v1/discovery/feed": {
      "post": {
        "operationId": "discovery.feed",
        "tags": [
          "discovery.feed"
        ],
        "summary": "Feed a discovered certificate into a discovery campaign",
        "description": "Feed a discovered certificate into a discovery campaign",
        "requestBody": {
          "description": "The discovery feed",
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/DiscoveryFeed"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Registering the certificate as a new discovered certificate"
          },
          "204": {
            "description": "Certificate was already discovered / managed. Discovery data were updated"
          },
          "400": {
            "description": "Bad request",
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/DiscFeed002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            400
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            }
          },
          "403": {
            "description": "Forbidden action",
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecPerm001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic004"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            }
          },
          "404": {
            "description": "Campaign not found",
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/DiscCamp003"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            404
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            }
          },
          "500": {
            "description": "Internal server error",
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/DiscFeed001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            }
          }
        }
      },
      "put": {
        "operationId": "discovery.feed.event.register",
        "tags": [
          "discovery.feed"
        ],
        "summary": "Push a new discovery event",
        "description": "Push a new discovery event for a specific discovery feed session on a discovery campaign",
        "requestBody": {
          "description": "The discovery event to push",
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/DiscoveryEvent"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Discovery event successfully registered"
          },
          "204": {
            "description": "Registering discovery event for the considered status is disabled on the considered discovery campaign"
          },
          "400": {
            "description": "Bad request",
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/DiscFeed004"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            400
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth007"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            400
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth008"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            400
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized request",
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth009"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            }
          },
          "403": {
            "description": "Forbidden action",
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecPerm001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth003"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth004"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth005"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth006"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic004"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            }
          },
          "404": {
            "description": "Discovery campaign not found",
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/DiscCamp003"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            404
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            }
          },
          "500": {
            "description": "Internal server error",
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/DiscFeed001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/discovery/feed/{campaign}/{id}": {
      "delete": {
        "operationId": "discovery.feed.session.end",
        "tags": [
          "discovery.feed"
        ],
        "summary": "End a discovery session",
        "description": "Ends an active discovery session and raises the appropriate discovery event",
        "responses": {
          "204": {
            "description": "Discovery session successfully ended"
          },
          "400": {
            "description": "Bad request",
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth007"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            400
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth008"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            400
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/DiscFeed003"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            400
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized request",
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth009"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            }
          },
          "403": {
            "description": "Forbidden action",
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecPerm001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth003"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth004"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth005"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth006"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic004"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            }
          },
          "404": {
            "description": "Discovery campaign not found",
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/DiscCamp003"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            404
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            }
          },
          "500": {
            "description": "Internal server error",
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/DiscFeed001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            }
          }
        },
        "parameters": [
          {
            "in": "path",
            "name": "campaign",
            "schema": {
              "type": "string"
            },
            "required": true,
            "description": "The name of the discovery campaign where the session was started",
            "example": "Discovery-DMZ01"
          },
          {
            "in": "path",
            "name": "id",
            "schema": {
              "type": "string"
            },
            "required": true,
            "description": "The discovery session ID to end",
            "example": "63fce2e13000003c008797c4"
          }
        ]
      }
    },
    "/api/v1/security/principals/self": {
      "get": {
        "operationId": "security.principal.self",
        "tags": [
          "security.principal"
        ],
        "summary": "Return the authenticated principal",
        "description": "Return the authenticated *principal*:\n  - The *principal* identity (identifier, name, email and identity provider);\n  - The direct permissions;\n  - The roles the principal is a member of.\n\n\nIf not authenticated, a *NoContent* is returned.\n",
        "responses": {
          "200": {
            "description": "The authenticated principal",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PrincipalResponse"
                }
              }
            }
          },
          "204": {
            "description": "Anonymous access (no authentication)"
          },
          "401": {
            "description": "Authentication error",
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth003"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth004"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth005"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth006"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth007"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth008"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth009"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            }
          },
          "403": {
            "description": "Forbidden action",
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecPerm001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic004"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            }
          },
          "500": {
            "description": "Unexpected internal server error",
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/security/principals/logout": {
      "get": {
        "operationId": "security.principal.logout",
        "tags": [
          "security.principal"
        ],
        "summary": "Log out an authenticated principal and flush any cached authorization(s)",
        "description": "Log out an authenticated Principal and flush cached authorization(s). If this method is called by an unauthenicated principal (anonymous), the REST call is nilpotent.\n",
        "responses": {
          "204": {
            "description": "Principal successfully logged out"
          },
          "403": {
            "description": "Forbidden action",
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic004"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            }
          },
          "500": {
            "description": "Unexpected internal server error",
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/security/principals/authenticate": {
      "get": {
        "operationId": "security.principal.authenticate",
        "tags": [
          "security.principal"
        ],
        "summary": "Authenticate a principal and redirect to the specified redirect URL",
        "description": "Authenticate a principal and redirect (302) to the specified URL if authentication was successful. The redirect URL **must be URL encoded**.",
        "responses": {
          "302": {
            "description": "Principal is successfully authenticated and redirect to the specified path assuming the path is a local path"
          },
          "401": {
            "description": "Authentication error",
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth003"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth004"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth005"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth006"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth007"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth008"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth009"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            }
          },
          "403": {
            "description": "Authentication Error",
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth008"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic004"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            }
          },
          "500": {
            "description": "Unexpected internal server error",
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            }
          }
        },
        "parameters": [
          {
            "in": "query",
            "name": "redirect",
            "schema": {
              "type": "string"
            },
            "required": true,
            "description": "The URL to redirect to after successful authentication. The URL must be URL encoded."
          }
        ]
      }
    },
    "/api/v1/datasources": {
      "get": {
        "description": "List the existing datasource(s)",
        "operationId": "datasource.list",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "items": {
                    "oneOf": [
                      {
                        "$ref": "#/components/schemas/DNSDatasourceResponse"
                      },
                      {
                        "$ref": "#/components/schemas/LDAPDatasourceResponse"
                      },
                      {
                        "$ref": "#/components/schemas/RESTDatasourceResponse"
                      }
                    ]
                  },
                  "type": "array"
                }
              }
            },
            "description": "Datasource list"
          },
          "204": {
            "description": "No datasource defined or insufficient permissions"
          },
          "401": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth003"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth004"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth005"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth006"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth007"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth008"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth009"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Unauthorized request"
          },
          "403": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecPerm001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic004"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Forbidden action"
          },
          "500": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Ds001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Internal Server error"
          }
        },
        "summary": "List the existing datasource(s)",
        "tags": [
          "datasource"
        ]
      },
      "post": {
        "description": "Register a new datasource",
        "operationId": "datasource.add",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "oneOf": [
                  {
                    "$ref": "#/components/schemas/DNSDatasource"
                  },
                  {
                    "$ref": "#/components/schemas/LDAPDatasource"
                  },
                  {
                    "$ref": "#/components/schemas/RESTDatasource"
                  }
                ]
              }
            }
          },
          "description": "Datasource to register",
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "$ref": "#/components/schemas/DNSDatasourceResponse"
                    },
                    {
                      "$ref": "#/components/schemas/LDAPDatasourceResponse"
                    },
                    {
                      "$ref": "#/components/schemas/RESTDatasourceResponse"
                    }
                  ]
                }
              }
            },
            "description": "Datasource successfully registered"
          },
          "400": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Ds002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            400
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Ds004"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            400
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Bad Request"
          },
          "401": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth003"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth004"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth005"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth006"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth007"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth008"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth009"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Unauthorized request"
          },
          "403": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecPerm001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic004"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Forbidden action"
          },
          "500": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Ds001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Internal Server error"
          }
        },
        "summary": "Register a new datasource",
        "tags": [
          "datasource"
        ]
      },
      "put": {
        "description": "Update an existing datasource",
        "operationId": "datasource.update",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "oneOf": [
                  {
                    "$ref": "#/components/schemas/DNSDatasource"
                  },
                  {
                    "$ref": "#/components/schemas/LDAPDatasource"
                  },
                  {
                    "$ref": "#/components/schemas/RESTDatasource"
                  }
                ]
              }
            }
          },
          "description": "Datasource to update",
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "$ref": "#/components/schemas/DNSDatasourceResponse"
                    },
                    {
                      "$ref": "#/components/schemas/LDAPDatasourceResponse"
                    },
                    {
                      "$ref": "#/components/schemas/RESTDatasourceResponse"
                    }
                  ]
                }
              }
            },
            "description": "Datasource successfully updated"
          },
          "400": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Ds002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            400
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Bad Request"
          },
          "401": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth003"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth004"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth005"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth006"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth007"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth008"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth009"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Unauthorized request"
          },
          "403": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecPerm001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic004"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Forbidden action"
          },
          "404": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Ds003"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            404
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Not Found"
          },
          "500": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Ds001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Internal Server error"
          }
        },
        "summary": "Update an existing datasource",
        "tags": [
          "datasource"
        ]
      },
      "patch": {
        "description": "Test a datasource",
        "operationId": "datasource.test",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/DataSourceTestRequest"
                  }
                ]
              }
            }
          },
          "description": "Datasource to test",
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "$ref": "#/components/schemas/DNSDataSourceResultResponse"
                    },
                    {
                      "$ref": "#/components/schemas/LDAPDataSourceResultResponse"
                    },
                    {
                      "$ref": "#/components/schemas/RESTDataSourceResultResponse"
                    }
                  ]
                }
              }
            },
            "description": "Datasource test result"
          },
          "400": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Ds002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            400
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Ds006"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            400
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Bad Request"
          },
          "401": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth003"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth004"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth005"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth006"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth007"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth008"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth009"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Unauthorized request"
          },
          "403": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecPerm001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic004"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Forbidden action"
          },
          "404": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Ds003"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            404
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Not Found"
          },
          "500": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Ds001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Internal Server error"
          }
        },
        "summary": "Test a datasource",
        "tags": [
          "datasource"
        ]
      }
    },
    "/api/v1/datasources/{name}": {
      "get": {
        "description": "Retrieve a datasource",
        "operationId": "datasource.get",
        "parameters": [
          {
            "in": "path",
            "name": "name",
            "required": true,
            "description": "Name of the datasource to retrieve",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "$ref": "#/components/schemas/DNSDatasourceResponse"
                    },
                    {
                      "$ref": "#/components/schemas/LDAPDatasourceResponse"
                    },
                    {
                      "$ref": "#/components/schemas/RESTDatasourceResponse"
                    }
                  ]
                }
              }
            },
            "description": "Datasource"
          },
          "401": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth003"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth004"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth005"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth006"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth007"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth008"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth009"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Unauthorized request"
          },
          "403": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecPerm001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic004"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Forbidden action"
          },
          "404": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Ds003"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Not found"
          },
          "500": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Ds001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Internal Server error"
          }
        },
        "summary": "Get a datasource",
        "tags": [
          "datasource"
        ]
      },
      "delete": {
        "description": "Delete a datasource",
        "operationId": "datasource.delete",
        "parameters": [
          {
            "in": "path",
            "name": "name",
            "required": true,
            "description": "Name of the datasource to delete",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "Datasource successfully deleted"
          },
          "400": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Ds005"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            400
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Bad Request"
          },
          "401": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth003"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth004"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth005"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth006"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth007"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth008"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth009"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Unauthorized request"
          },
          "403": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecPerm001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic004"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Forbidden action"
          },
          "404": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Ds003"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            404
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Not Found"
          },
          "500": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Ds001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Internal Server error"
          }
        },
        "summary": "Delete a datasource",
        "tags": [
          "datasource"
        ]
      }
    },
    "/api/v1/datasource/flows": {
      "post": {
        "description": "Test a datasource flow",
        "operationId": "datasource.flow.test",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "title": "Datasource Flow",
                "description": "Datasource Flow",
                "properties": {
                  "dsFlow": {
                    "allOf": [
                      {
                        "$ref": "#/components/schemas/DataSourceFlow"
                      }
                    ]
                  },
                  "context": {
                    "description": "Input values for the flow",
                    "type": "array",
                    "nullable": true,
                    "items": {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/MapEntry"
                        }
                      ]
                    }
                  }
                }
              }
            }
          },
          "description": "Datasource flow to test",
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "description": "List of datasource results",
                  "type": "array",
                  "items": {
                    "oneOf": [
                      {
                        "$ref": "#/components/schemas/DNSDataSourceResultResponse"
                      },
                      {
                        "$ref": "#/components/schemas/LDAPDataSourceResultResponse"
                      },
                      {
                        "$ref": "#/components/schemas/RESTDataSourceResultResponse"
                      }
                    ]
                  }
                }
              }
            },
            "description": "Datasource flow test results"
          },
          "400": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/DsFlow002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            400
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Bad Request"
          },
          "401": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth003"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth004"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth005"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth006"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth007"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth008"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth009"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Unauthorized request"
          },
          "403": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecPerm001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic004"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Forbidden action"
          },
          "500": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/DsFlow001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Internal Server error"
          }
        },
        "summary": "Test a datasource flow",
        "tags": [
          "datasource.flow"
        ]
      }
    },
    "/api/v1/datasource/flows/template": {
      "post": {
        "description": "Retrieve the template for a datasource flow",
        "operationId": "datasource.flow.template",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "title": "Datasource Flow",
                "description": "Datasource Flow",
                "properties": {
                  "dsFlow": {
                    "allOf": [
                      {
                        "$ref": "#/components/schemas/DataSourceFlow"
                      }
                    ]
                  }
                }
              }
            }
          },
          "description": "Datasource flow to get template for",
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "description": "Datasource flow template",
                  "type": "array",
                  "items": {
                    "oneOf": [
                      {
                        "$ref": "#/components/schemas/DataSourceFlowTemplateEntryResponse"
                      }
                    ]
                  }
                }
              }
            },
            "description": "Datasource flow template"
          },
          "400": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/DsFlow002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            400
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Bad Request"
          },
          "401": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth003"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth004"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth005"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth006"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth007"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth008"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth009"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Unauthorized request"
          },
          "403": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecPerm001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic004"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Forbidden action"
          },
          "500": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/DsFlow001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Internal Server error"
          }
        },
        "summary": "Retrieve the template for a datasource flow",
        "tags": [
          "datasource.flow"
        ]
      }
    },
    "/api/v1/system/configurations/export": {
      "get": {
        "description": "Retrieve the list of exportable items based on your permissions",
        "operationId": "export.list.items",
        "summary": "List exportable configuration items",
        "tags": [
          "configurations.export"
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "description": "Exportable items",
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/HorizonExportableItems"
                    }
                  ]
                }
              }
            },
            "description": "The exportable items"
          },
          "401": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth003"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth004"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth005"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth006"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth007"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth008"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth009"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Unauthorized request"
          },
          "403": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecPerm001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic004"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Forbidden action"
          },
          "500": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/ConfExport001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Internal Server error"
          }
        }
      },
      "post": {
        "description": "Export configuration items",
        "operationId": "export.export.items",
        "summary": "Export configuration items",
        "tags": [
          "configurations.export"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/HorizonExportableItems"
                  }
                ]
              }
            }
          },
          "description": "Items to export",
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "description": "Exported items",
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/HorizonExport"
                    }
                  ]
                }
              }
            },
            "description": "The exported items"
          },
          "400": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/ConfExport002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            400
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Bad Request"
          },
          "401": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth003"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth004"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth005"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth006"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth007"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth008"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth009"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Unauthorized request"
          },
          "403": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecPerm001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic004"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Forbidden action"
          },
          "500": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/ConfExport001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Internal Server error"
          }
        }
      }
    },
    "/api/v1/system/configurations/import": {
      "post": {
        "description": "Import configuration items",
        "operationId": "export.import.items",
        "summary": "Import configuration items",
        "tags": [
          "configurations.export"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/HorizonExport"
                  }
                ]
              }
            }
          },
          "description": "Items to import",
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "description": "Imported items",
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/HorizonImportedItemsSummary"
                    }
                  ]
                }
              }
            },
            "description": "The imported items"
          },
          "400": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/ConfImport002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            400
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Bad Request"
          },
          "401": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth003"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth004"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth005"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth006"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth007"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth008"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth009"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            401
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Unauthorized request"
          },
          "403": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecPerm001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic002"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic004"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            403
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Forbidden action"
          },
          "500": {
            "content": {
              "application/problem+json": {
                "schema": {
                  "oneOf": [
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/ConfImport001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/SecAuth001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    },
                    {
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/Lic001"
                        }
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            500
                          ]
                        }
                      },
                      "required": [
                        "status"
                      ]
                    }
                  ]
                }
              }
            },
            "description": "Internal Server error"
          }
        }
      }
    }
  },
  "components": {
    "securitySchemes": {
      "apiId": {
        "description": "An Horizon local identity identifier",
        "type": "apiKey",
        "in": "header",
        "name": "X-API-ID"
      },
      "apiKey": {
        "description": "The local identity password",
        "type": "apiKey",
        "in": "header",
        "name": "X-API-KEY"
      },
      "cookieAuth": {
        "type": "apiKey",
        "in": "cookie",
        "name": "PLAY_SESSION"
      }
    },
    "schemas": {
      "BasicError": {
        "properties": {
          "error": {
            "description": "The error code of the problem",
            "type": "string"
          },
          "message": {
            "description": "A short, human-readable summary of the problem type",
            "type": "string"
          },
          "detail": {
            "type": "string",
            "description": "A human-readable explanation specific to this occurrence of the problem. In compliance with [RFC7807](https://datatracker.ietf.org/doc/html/rfc7807)",
            "nullable": true,
            "example": "Details about the error"
          },
          "status": {
            "type": "integer",
            "description": "The http status code of the error. In compliance with [RFC7807](https://datatracker.ietf.org/doc/html/rfc7807)"
          },
          "title": {
            "type": "string",
            "description": "A short, human-readable summary of the problem type. In compliance with [RFC7807](https://datatracker.ietf.org/doc/html/rfc7807)"
          }
        },
        "required": [
          "error",
          "message",
          "title",
          "status"
        ]
      },
      "SecAuth001": {
        "title": "SEC-AUTH-001",
        "description": "Unexpected Error",
        "allOf": [
          {
            "$ref": "#/components/schemas/BasicError"
          }
        ],
        "properties": {
          "error": {
            "enum": [
              "SEC-AUTH-001"
            ]
          },
          "message": {
            "enum": [
              "Unexpected Error"
            ]
          },
          "title": {
            "enum": [
              "Unexpected Error"
            ]
          }
        },
        "required": [
          "error",
          "message",
          "title"
        ]
      },
      "SecAuth002": {
        "title": "SEC-AUTH-002",
        "description": "Invalid credentials or principal does not exist",
        "allOf": [
          {
            "$ref": "#/components/schemas/BasicError"
          }
        ],
        "properties": {
          "error": {
            "enum": [
              "SEC-AUTH-002"
            ]
          },
          "message": {
            "enum": [
              "Invalid credentials or principal does not exist"
            ]
          },
          "title": {
            "enum": [
              "Invalid credentials or principal does not exist"
            ]
          }
        },
        "required": [
          "error",
          "message",
          "title"
        ]
      },
      "SecAuth003": {
        "title": "SEC-AUTH-003",
        "description": "Certificate is not trusted",
        "allOf": [
          {
            "$ref": "#/components/schemas/BasicError"
          }
        ],
        "properties": {
          "error": {
            "enum": [
              "SEC-AUTH-003"
            ]
          },
          "message": {
            "enum": [
              "Certificate is not trusted"
            ]
          },
          "title": {
            "enum": [
              "Certificate is not trusted"
            ]
          }
        },
        "required": [
          "error",
          "message",
          "title"
        ]
      },
      "SecAuth004": {
        "title": "SEC-AUTH-004",
        "description": "Certificate is expired",
        "allOf": [
          {
            "$ref": "#/components/schemas/BasicError"
          }
        ],
        "properties": {
          "error": {
            "enum": [
              "SEC-AUTH-004"
            ]
          },
          "message": {
            "enum": [
              "Certificate is expired"
            ]
          },
          "title": {
            "enum": [
              "Certificate is expired"
            ]
          }
        },
        "required": [
          "error",
          "message",
          "title"
        ]
      },
      "SecAuth005": {
        "title": "SEC-AUTH-005",
        "description": "Certificate is revoked",
        "allOf": [
          {
            "$ref": "#/components/schemas/BasicError"
          }
        ],
        "properties": {
          "error": {
            "enum": [
              "SEC-AUTH-005"
            ]
          },
          "message": {
            "enum": [
              "Certificate is revoked"
            ]
          },
          "title": {
            "enum": [
              "Certificate is revoked"
            ]
          }
        },
        "required": [
          "error",
          "message",
          "title"
        ]
      },
      "SecAuth006": {
        "title": "SEC-AUTH-006",
        "description": "Principal not authenticated",
        "allOf": [
          {
            "$ref": "#/components/schemas/BasicError"
          }
        ],
        "properties": {
          "error": {
            "enum": [
              "SEC-AUTH-006"
            ]
          },
          "message": {
            "enum": [
              "Principal not authenticated"
            ]
          },
          "title": {
            "enum": [
              "Principal not authenticated"
            ]
          }
        },
        "required": [
          "error",
          "message",
          "title"
        ]
      },
      "SecAuth007": {
        "title": "SEC-AUTH-007",
        "description": "Invalid Identity Provider",
        "allOf": [
          {
            "$ref": "#/components/schemas/BasicError"
          }
        ],
        "properties": {
          "error": {
            "enum": [
              "SEC-AUTH-007"
            ]
          },
          "message": {
            "enum": [
              "Invalid Identity Provider"
            ]
          },
          "title": {
            "enum": [
              "Invalid Identity Provider"
            ]
          }
        },
        "required": [
          "error",
          "message",
          "title"
        ]
      },
      "SecAuth008": {
        "title": "SEC-AUTH-008",
        "description": "Invalid redirect path",
        "allOf": [
          {
            "$ref": "#/components/schemas/BasicError"
          }
        ],
        "properties": {
          "error": {
            "enum": [
              "SEC-AUTH-008"
            ]
          },
          "message": {
            "enum": [
              "Invalid redirect path"
            ]
          },
          "title": {
            "enum": [
              "Invalid redirect path"
            ]
          }
        },
        "required": [
          "error",
          "message",
          "title"
        ]
      },
      "SecAuth009": {
        "title": "SEC-AUTH-009",
        "description": "Principal not authenticated or authentication expired",
        "allOf": [
          {
            "$ref": "#/components/schemas/BasicError"
          }
        ],
        "properties": {
          "error": {
            "enum": [
              "SEC-AUTH-009"
            ]
          },
          "message": {
            "enum": [
              "Principal not authenticated or authentication expired"
            ]
          },
          "title": {
            "enum": [
              "Principal not authenticated or authentication expired"
            ]
          }
        },
        "required": [
          "error",
          "message",
          "title"
        ]
      },
      "SecPerm001": {
        "title": "SEC-PERM-001",
        "description": "Insufficient privileges",
        "allOf": [
          {
            "$ref": "#/components/schemas/BasicError"
          }
        ],
        "properties": {
          "error": {
            "enum": [
              "SEC-PERM-001"
            ]
          },
          "message": {
            "enum": [
              "Insufficient privileges"
            ]
          },
          "title": {
            "enum": [
              "Insufficient privileges"
            ]
          }
        },
        "required": [
          "error",
          "message",
          "title"
        ]
      },
      "Lic002": {
        "title": "LIC-002",
        "description": "Invalid License",
        "allOf": [
          {
            "$ref": "#/components/schemas/BasicError"
          }
        ],
        "properties": {
          "error": {
            "enum": [
              "LIC-002"
            ]
          },
          "message": {
            "enum": [
              "Invalid License"
            ]
          },
          "title": {
            "enum": [
              "Invalid License"
            ]
          }
        },
        "required": [
          "error",
          "message",
          "title"
        ]
      },
      "Lic004": {
        "title": "LIC-004",
        "description": "Expired License",
        "allOf": [
          {
            "$ref": "#/components/schemas/BasicError"
          }
        ],
        "properties": {
          "error": {
            "enum": [
              "LIC-004"
            ]
          },
          "message": {
            "enum": [
              "Expired License"
            ]
          },
          "title": {
            "enum": [
              "Expired License"
            ]
          }
        },
        "required": [
          "error",
          "message",
          "title"
        ]
      },
      "Adoc001": {
        "allOf": [
          {
            "$ref": "#/components/schemas/BasicError"
          }
        ],
        "description": "Unexpected error",
        "properties": {
          "error": {
            "enum": [
              "ADOC-001"
            ]
          },
          "message": {
            "enum": [
              "Unexpected error"
            ]
          },
          "title": {
            "enum": [
              "Unexpected error"
            ]
          }
        },
        "title": "ADOC-001",
        "required": [
          "error",
          "message",
          "title"
        ]
      },
      "Lic001": {
        "title": "LIC-001",
        "description": "Unexpected error",
        "allOf": [
          {
            "$ref": "#/components/schemas/BasicError"
          }
        ],
        "properties": {
          "error": {
            "enum": [
              "LIC-001"
            ]
          },
          "message": {
            "enum": [
              "Unexpected error"
            ]
          },
          "title": {
            "enum": [
              "Unexpected error"
            ]
          }
        },
        "required": [
          "error",
          "message",
          "title"
        ]
      },
      "Id": {
        "title": "Internal ID",
        "description": "Object internal ID",
        "type": "string",
        "example": "6448d56b310000400063f014"
      },
      "DateRange": {
        "properties": {
          "start": {
            "type": "string",
            "format": "date"
          },
          "end": {
            "type": "string",
            "format": "date"
          }
        },
        "required": [
          "start",
          "end"
        ]
      },
      "ExecutionPeriod": {
        "properties": {
          "dateRange": {
            "nullable": true,
            "type": "object",
            "allOf": [
              {
                "$ref": "#/components/schemas/DateRange"
              }
            ]
          },
          "weeks": {
            "type": "array",
            "nullable": true,
            "items": {
              "type": "integer",
              "format": "int32"
            }
          },
          "weekDays": {
            "type": "array",
            "nullable": true,
            "items": {
              "type": "string",
              "enum": [
                "MONDAY",
                "TUESDAY",
                "WEDNESDAY",
                "THURSDAY",
                "FRIDAY",
                "SATURDAY",
                "SUNDAY"
              ]
            }
          },
          "timeRange": {
            "nullable": true,
            "type": "string",
            "pattern": "^([0-1][0-9]|2[0-3]):([0-5][0-9]):([0-5][0-9])$"
          }
        }
      },
      "ExecutionPolicyResponse": {
        "properties": {
          "_id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/Id"
              }
            ]
          },
          "name": {
            "type": "string"
          },
          "description": {
            "type": "string",
            "nullable": true
          },
          "authorizedPeriods": {
            "type": "array",
            "nullable": true,
            "items": {
              "$ref": "#/components/schemas/ExecutionPeriod"
            }
          },
          "forbiddenPeriods": {
            "type": "array",
            "nullable": true,
            "items": {
              "$ref": "#/components/schemas/ExecutionPeriod"
            }
          }
        },
        "required": [
          "_id",
          "name"
        ]
      },
      "ExecutionPolicy001": {
        "allOf": [
          {
            "$ref": "#/components/schemas/BasicError"
          }
        ],
        "description": "Unexpected error",
        "properties": {
          "error": {
            "enum": [
              "EXECUTION-POLICY-001"
            ]
          },
          "message": {
            "enum": [
              "Unexpected error"
            ]
          },
          "title": {
            "enum": [
              "Unexpected error"
            ]
          }
        },
        "title": "EXECUTION-POLICY-001",
        "required": [
          "error",
          "message",
          "title"
        ]
      },
      "ExecutionPolicy": {
        "properties": {
          "name": {
            "type": "string"
          },
          "description": {
            "type": "string",
            "nullable": true
          },
          "authorizedPeriods": {
            "type": "array",
            "nullable": true,
            "items": {
              "$ref": "#/components/schemas/ExecutionPeriod"
            }
          },
          "forbiddenPeriods": {
            "type": "array",
            "nullable": true,
            "items": {
              "$ref": "#/components/schemas/ExecutionPeriod"
            }
          }
        },
        "required": [
          "name"
        ]
      },
      "ExecutionPolicy002": {
        "allOf": [
          {
            "$ref": "#/components/schemas/BasicError"
          }
        ],
        "description": "Invalid Execution Policy",
        "properties": {
          "error": {
            "enum": [
              "EXECUTION-POLICY-002"
            ]
          },
          "message": {
            "enum": [
              "Invalid Execution Policy"
            ]
          },
          "title": {
            "enum": [
              "Invalid Execution Policy"
            ]
          }
        },
        "title": "EXECUTION-POLICY-002",
        "required": [
          "error",
          "message",
          "title"
        ]
      },
      "ExecutionPolicy003": {
        "allOf": [
          {
            "$ref": "#/components/schemas/BasicError"
          }
        ],
        "description": "Execution Policy not found",
        "properties": {
          "error": {
            "enum": [
              "EXECUTION-POLICY-003"
            ]
          },
          "message": {
            "enum": [
              "Execution Policy not found"
            ]
          },
          "title": {
            "enum": [
              "Execution Policy not found"
            ]
          }
        },
        "title": "EXECUTION-POLICY-003",
        "required": [
          "error",
          "message",
          "title"
        ]
      },
      "ExecutionPolicy004": {
        "allOf": [
          {
            "$ref": "#/components/schemas/BasicError"
          }
        ],
        "description": "Execution Policy already exists",
        "properties": {
          "error": {
            "enum": [
              "EXECUTION-POLICY-004"
            ]
          },
          "message": {
            "enum": [
              "Execution Policy already exists"
            ]
          },
          "title": {
            "enum": [
              "Execution Policy already exists"
            ]
          }
        },
        "title": "EXECUTION-POLICY-004",
        "required": [
          "error",
          "message",
          "title"
        ]
      },
      "ExecutionPolicy005": {
        "allOf": [
          {
            "$ref": "#/components/schemas/BasicError"
          }
        ],
        "description": "Referenced Execution Policy",
        "properties": {
          "error": {
            "enum": [
              "EXECUTION-POLICY-005"
            ]
          },
          "message": {
            "enum": [
              "Referenced Execution Policy"
            ]
          },
          "title": {
            "enum": [
              "Referenced Execution Policy"
            ]
          }
        },
        "title": "EXECUTION-POLICY-005",
        "required": [
          "error",
          "message",
          "title"
        ]
      },
      "CompliancePolicy": {
        "properties": {
          "authorizedSigningAlgorithms": {
            "type": "array",
            "nullable": true,
            "items": {
              "type": "string"
            }
          },
          "authorizedCas": {
            "type": "array",
            "nullable": true,
            "items": {
              "type": "string"
            }
          }
        }
      },
      "AutomationPolicyResponse": {
        "properties": {
          "_id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/Id"
              }
            ]
          },
          "name": {
            "type": "string"
          },
          "executionPolicy": {
            "type": "string",
            "nullable": true
          },
          "compliancePolicy": {
            "nullable": true,
            "type": "object",
            "allOf": [
              {
                "$ref": "#/components/schemas/CompliancePolicy"
              }
            ]
          },
          "trustChains": {
            "type": "array",
            "nullable": true,
            "items": {
              "type": "string"
            }
          },
          "profile": {
            "type": "string"
          }
        },
        "required": [
          "name"
        ]
      },
      "AutomationPolicy001": {
        "allOf": [
          {
            "$ref": "#/components/schemas/BasicError"
          }
        ],
        "description": "Unexpected error",
        "properties": {
          "error": {
            "enum": [
              "AUTOMATION-POLICY-001"
            ]
          },
          "message": {
            "enum": [
              "Unexpected error"
            ]
          },
          "title": {
            "enum": [
              "Unexpected error"
            ]
          }
        },
        "title": "AUTOMATION-POLICY-001",
        "required": [
          "error",
          "message",
          "title"
        ]
      },
      "AutomationPolicy": {
        "properties": {
          "name": {
            "type": "string"
          },
          "executionPolicy": {
            "type": "string",
            "nullable": true
          },
          "compliancePolicy": {
            "nullable": true,
            "type": "object",
            "allOf": [
              {
                "$ref": "#/components/schemas/CompliancePolicy"
              }
            ]
          },
          "trustChains": {
            "type": "array",
            "nullable": true,
            "items": {
              "type": "string"
            }
          },
          "profile": {
            "type": "string"
          }
        },
        "required": [
          "name",
          "profile"
        ]
      },
      "AutomationPolicy002": {
        "allOf": [
          {
            "$ref": "#/components/schemas/BasicError"
          }
        ],
        "description": "Invalid Automation Policy",
        "properties": {
          "error": {
            "enum": [
              "AUTOMATION-POLICY-002"
            ]
          },
          "message": {
            "enum": [
              "Invalid Automation Policy"
            ]
          },
          "title": {
            "enum": [
              "Invalid Automation Policy"
            ]
          }
        },
        "title": "AUTOMATION-POLICY-002",
        "required": [
          "error",
          "message",
          "title"
        ]
      },
      "AutomationPolicy003": {
        "allOf": [
          {
            "$ref": "#/components/schemas/BasicError"
          }
        ],
        "description": "Automation Policy not found",
        "properties": {
          "error": {
            "enum": [
              "AUTOMATION-POLICY-003"
            ]
          },
          "message": {
            "enum": [
              "Automation Policy not found"
            ]
          },
          "title": {
            "enum": [
              "Automation Policy not found"
            ]
          }
        },
        "title": "AUTOMATION-POLICY-003",
        "required": [
          "error",
          "message",
          "title"
        ]
      },
      "AutomationPolicy004": {
        "allOf": [
          {
            "$ref": "#/components/schemas/BasicError"
          }
        ],
        "description": "Automation Policy already exists",
        "properties": {
          "error": {
            "enum": [
              "AUTOMATION-POLICY-004"
            ]
          },
          "message": {
            "enum": [
              "Automation Policy already exists"
            ]
          },
          "title": {
            "enum": [
              "Automation Policy already exists"
            ]
          }
        },
        "title": "AUTOMATION-POLICY-004",
        "required": [
          "error",
          "message",
          "title"
        ]
      },
      "AutomationPolicy005": {
        "allOf": [
          {
            "$ref": "#/components/schemas/BasicError"
          }
        ],
        "description": "Referenced Automation Policy",
        "properties": {
          "error": {
            "enum": [
              "AUTOMATION-POLICY-005"
            ]
          },
          "message": {
            "enum": [
              "Referenced Automation Policy"
            ]
          },
          "title": {
            "enum": [
              "Referenced Automation Policy"
            ]
          }
        },
        "title": "AUTOMATION-POLICY-005",
        "required": [
          "error",
          "message",
          "title"
        ]
      },
      "AutomationReportResponse": {
        "properties": {
          "runnable": {
            "type": "boolean",
            "description": "If true the certificate can be renewed now (the execution period allows it)"
          },
          "renewable": {
            "type": "boolean",
            "description": "If true the certificate can be renewed (all conditions for renewal are met - correct profile, renewal period, etc...)"
          }
        },
        "required": [
          "runnable",
          "renewable"
        ]
      },
      "SecAuth010": {
        "title": "SEC-AUTH-010",
        "description": "Invalid Jwt Token",
        "allOf": [
          {
            "$ref": "#/components/schemas/BasicError"
          }
        ],
        "properties": {
          "error": {
            "enum": [
              "SEC-AUTH-010"
            ]
          },
          "message": {
            "enum": [
              "Invalid Jwt Token"
            ]
          },
          "title": {
            "enum": [
              "Invalid Jwt Token"
            ]
          }
        },
        "required": [
          "error",
          "message",
          "title"
        ]
      },
      "AcmeExternalInitParameters": {
        "properties": {
          "module": {
            "type": "string",
            "description": "The module of the initialization parameters.",
            "enum": [
              "acme-external"
            ]
          },
          "profile": {
            "type": "string",
            "description": "The profile used for ACME external."
          },
          "keyType": {
            "type": "string",
            "description": "The key type used for ACME external."
          },
          "acmeUrl": {
            "type": "string",
            "description": "The ACME URL for the external ACME server."
          },
          "allowedAuthorizationMethod": {
            "type": "array",
            "description": "The allowed authorization methods for ACME external.",
            "items": {
              "type": "string"
            }
          },
          "requireEAB": {
            "type": "boolean",
            "description": "Indicates whether EAB is required for ACME external."
          }
        },
        "required": [
          "module",
          "profile"
        ]
      },
      "AcmeInitParameters": {
        "properties": {
          "module": {
            "type": "string",
            "description": "The module of the initialization parameters.",
            "enum": [
              "acme"
            ]
          },
          "profile": {
            "type": "string",
            "description": "The profile used for ACME."
          },
          "keyType": {
            "type": "string",
            "description": "The key type used for ACME."
          },
          "tlsAlpn01Port": {
            "type": "integer",
            "description": "The TLS-ALPN-01 port for ACME."
          },
          "http01Port": {
            "type": "integer",
            "description": "The HTTP-01 port for ACME."
          }
        },
        "required": [
          "module",
          "profile"
        ]
      },
      "EstInitParameters": {
        "properties": {
          "module": {
            "type": "string",
            "description": "The module of the initialization parameters.",
            "enum": [
              "est"
            ]
          },
          "profile": {
            "type": "string",
            "description": "The profile used for EST."
          },
          "keyType": {
            "type": "string",
            "description": "The key type used for EST."
          },
          "authorizationMode": {
            "type": "string",
            "description": "The authorization mode for EST."
          },
          "enrollmentMode": {
            "type": "string",
            "description": "The enrollment mode for EST."
          },
          "csrInfoIgnored": {
            "type": "boolean",
            "description": "Indicates whether CSR info is ignored for EST."
          }
        },
        "required": [
          "module",
          "profile"
        ]
      },
      "ScepInitParameters": {
        "properties": {
          "module": {
            "type": "string",
            "description": "The module of the initialization parameters.",
            "enum": [
              "scep"
            ]
          },
          "profile": {
            "type": "string",
            "description": "The profile used for SCEP."
          },
          "keyType": {
            "type": "string",
            "description": "The key type used for SCEP."
          },
          "csrInfoIgnored": {
            "type": "boolean",
            "description": "Indicates whether CSR info is ignored for SCEP."
          },
          "authorizationMode": {
            "type": "string",
            "description": "The authorization mode for SCEP."
          }
        },
        "required": [
          "module",
          "profile"
        ]
      },
      "PasswordPolicy": {
        "title": "Password Policy",
        "properties": {
          "name": {
            "description": "The name of the password policy",
            "type": "string",
            "example": "Horizon-Default"
          },
          "minChar": {
            "description": "The minimum number of characters of the password",
            "example": 8,
            "type": "integer",
            "format": "int32"
          },
          "maxChar": {
            "description": "The maximum number of characters of the password",
            "example": 24,
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "minUpChar": {
            "description": "The minimum number of uppercase characters of the password",
            "example": 1,
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "minLoChar": {
            "description": "The minimum number of lowercase characters of the password",
            "example": 1,
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "minDiChar": {
            "description": "The minimum number of digits of the password",
            "example": 1,
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "spChar": {
            "description": "The special characters of the password accepted by the password policy",
            "example": "!@#$%^&*()_+",
            "type": "string",
            "nullable": true
          },
          "minSpChar": {
            "description": "The minimum number of special characters of the password",
            "example": 1,
            "type": "integer",
            "format": "int32",
            "nullable": true
          }
        },
        "required": [
          "name",
          "minChar"
        ]
      },
      "WebraInitParameters": {
        "properties": {
          "module": {
            "type": "string",
            "description": "The module of the initialization parameters.",
            "enum": [
              "webra"
            ]
          },
          "profile": {
            "type": "string",
            "description": "The profile used for WebRA."
          },
          "keyType": {
            "type": "string",
            "description": "The key type used for WebRA."
          },
          "authorizationMode": {
            "type": "string",
            "description": "The authorization mode for WebRA."
          },
          "enrollmentMode": {
            "type": "string",
            "description": "The enrollment mode for WebRA."
          },
          "passwordPolicy": {
            "type": "object",
            "description": "The password policy for WebRA.",
            "allOf": [
              {
                "$ref": "#/components/schemas/PasswordPolicy"
              }
            ]
          }
        },
        "required": [
          "module",
          "profile"
        ]
      },
      "Analytics002": {
        "title": "ANALYTICS-002",
        "description": "Certificate analytics disabled",
        "allOf": [
          {
            "$ref": "#/components/schemas/BasicError"
          }
        ],
        "properties": {
          "error": {
            "enum": [
              "ANALYTICS-002"
            ]
          },
          "message": {
            "enum": [
              "Certificate analytics disabled"
            ]
          },
          "title": {
            "enum": [
              "Certificate analytics disabled"
            ]
          }
        },
        "required": [
          "error",
          "message",
          "title"
        ]
      },
      "Analytics001": {
        "title": "ANALYTICS-001",
        "description": "Unexpected error",
        "allOf": [
          {
            "$ref": "#/components/schemas/BasicError"
          }
        ],
        "properties": {
          "error": {
            "enum": [
              "ANALYTICS-001"
            ]
          },
          "message": {
            "enum": [
              "Unexpected error"
            ]
          },
          "title": {
            "enum": [
              "Unexpected error"
            ]
          }
        },
        "required": [
          "error",
          "message",
          "title"
        ]
      },
      "Analytics003": {
        "title": "ANALYTICS-003",
        "description": "Event analytics disabled",
        "allOf": [
          {
            "$ref": "#/components/schemas/BasicError"
          }
        ],
        "properties": {
          "error": {
            "enum": [
              "ANALYTICS-003"
            ]
          },
          "message": {
            "enum": [
              "Event analytics disabled"
            ]
          },
          "title": {
            "enum": [
              "Event analytics disabled"
            ]
          }
        },
        "required": [
          "error",
          "message",
          "title"
        ]
      },
      "CertificateArchive": {
        "type": "object",
        "title": "Certificate Archive",
        "properties": {
          "name": {
            "type": "string"
          },
          "type": {
            "type": "string",
            "enum": [
              "certificate"
            ]
          },
          "filename": {
            "type": "string"
          },
          "archiveKeys": {
            "type": "boolean"
          },
          "filter": {
            "type": "string",
            "description": "An HCQL filter for the archive",
            "nullable": true
          }
        },
        "required": [
          "name",
          "type",
          "filename",
          "archiveKeys"
        ]
      },
      "ArchiveStatus": {
        "type": "string",
        "title": "Archive Status",
        "enum": [
          "archiving_queued",
          "cancellation_queued",
          "archiving",
          "failed",
          "completed"
        ]
      },
      "CertificateArchiveResponse": {
        "type": "object",
        "title": "Certificate Archive",
        "allOf": [
          {
            "$ref": "#/components/schemas/CertificateArchive"
          }
        ],
        "properties": {
          "_id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/Id"
              }
            ]
          },
          "createdAt": {
            "format": "epoch",
            "type": "integer",
            "example": 1609459200000,
            "nullable": true
          },
          "purgeAt": {
            "format": "epoch",
            "type": "integer",
            "example": 1609459200000,
            "nullable": true
          },
          "status": {
            "allOf": [
              {
                "$ref": "#/components/schemas/ArchiveStatus"
              }
            ]
          },
          "count": {
            "type": "integer",
            "nullable": true
          },
          "error": {
            "type": "string",
            "nullable": true
          }
        },
        "required": [
          "_id",
          "name",
          "type",
          "filename",
          "archiveKeys",
          "status"
        ]
      },
      "EventArchive": {
        "type": "object",
        "title": "Event Archive",
        "properties": {
          "name": {
            "type": "string"
          },
          "type": {
            "type": "string",
            "enum": [
              "event"
            ]
          },
          "filename": {
            "type": "string"
          },
          "before": {
            "format": "epoch",
            "type": "integer",
            "example": 1609459200000,
            "description": "Date before which all events will be archived"
          }
        },
        "required": [
          "name",
          "type",
          "filename",
          "before"
        ]
      },
      "EventArchiveResponse": {
        "type": "object",
        "title": "Event Archive",
        "allOf": [
          {
            "$ref": "#/components/schemas/EventArchive"
          }
        ],
        "properties": {
          "_id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/Id"
              }
            ]
          },
          "createdAt": {
            "format": "epoch",
            "type": "integer",
            "example": 1609459200000,
            "nullable": true
          },
          "purgeAt": {
            "format": "epoch",
            "type": "integer",
            "example": 1609459200000,
            "nullable": true
          },
          "status": {
            "allOf": [
              {
                "$ref": "#/components/schemas/ArchiveStatus"
              }
            ]
          },
          "count": {
            "type": "integer",
            "nullable": true
          },
          "error": {
            "type": "string",
            "nullable": true
          }
        },
        "required": [
          "_id",
          "name",
          "type",
          "filename",
          "status"
        ]
      },
      "ArchiveResponses": {
        "oneOf": [
          {
            "$ref": "#/components/schemas/CertificateArchiveResponse"
          },
          {
            "$ref": "#/components/schemas/EventArchiveResponse"
          }
        ]
      },
      "Archive001": {
        "allOf": [
          {
            "$ref": "#/components/schemas/BasicError"
          }
        ],
        "description": "Unexpected error",
        "properties": {
          "error": {
            "enum": [
              "ARCHIVE-001"
            ]
          },
          "message": {
            "enum": [
              "Unexpected error"
            ]
          },
          "title": {
            "enum": [
              "Unexpected error"
            ]
          }
        },
        "title": "ARCHIVE-001",
        "required": [
          "error",
          "message",
          "title"
        ]
      },
      "Archives": {
        "oneOf": [
          {
            "$ref": "#/components/schemas/CertificateArchive"
          },
          {
            "$ref": "#/components/schemas/EventArchive"
          }
        ]
      },
      "Archive002": {
        "allOf": [
          {
            "$ref": "#/components/schemas/BasicError"
          }
        ],
        "description": "Invalid archive",
        "properties": {
          "error": {
            "enum": [
              "ARCHIVE-002"
            ]
          },
          "message": {
            "enum": [
              "Invalid archive"
            ]
          },
          "title": {
            "enum": [
              "Invalid archive"
            ]
          }
        },
        "title": "ARCHIVE-002",
        "required": [
          "error",
          "message",
          "title"
        ]
      },
      "Archive004": {
        "allOf": [
          {
            "$ref": "#/components/schemas/BasicError"
          }
        ],
        "description": "Archive already exists",
        "properties": {
          "error": {
            "enum": [
              "ARCHIVE-004"
            ]
          },
          "message": {
            "enum": [
              "Archive already exists"
            ]
          },
          "title": {
            "enum": [
              "Archive already exists"
            ]
          }
        },
        "title": "ARCHIVE-004",
        "required": [
          "error",
          "message",
          "title"
        ]
      },
      "Archive008": {
        "allOf": [
          {
            "$ref": "#/components/schemas/BasicError"
          }
        ],
        "description": "Archive cannot be downloaded",
        "properties": {
          "error": {
            "enum": [
              "ARCHIVE-008"
            ]
          },
          "message": {
            "enum": [
              "Archive cannot be downloaded"
            ]
          },
          "title": {
            "enum": [
              "Archive cannot be downloaded"
            ]
          }
        },
        "title": "ARCHIVE-008",
        "required": [
          "error",
          "message",
          "title"
        ]
      },
      "Archive003": {
        "allOf": [
          {
            "$ref": "#/components/schemas/BasicError"
          }
        ],
        "description": "Archive not found",
        "properties": {
          "error": {
            "enum": [
              "ARCHIVE-003"
            ]
          },
          "message": {
            "enum": [
              "Archive not found"
            ]
          },
          "title": {
            "enum": [
              "Archive not found"
            ]
          }
        },
        "title": "ARCHIVE-003",
        "required": [
          "error",
          "message",
          "title"
        ]
      },
      "Archive007": {
        "allOf": [
          {
            "$ref": "#/components/schemas/BasicError"
          }
        ],
        "description": "Archive cannot be canceled",
        "properties": {
          "error": {
            "enum": [
              "ARCHIVE-007"
            ]
          },
          "message": {
            "enum": [
              "Archive cannot be canceled"
            ]
          },
          "title": {
            "enum": [
              "Archive cannot be canceled"
            ]
          }
        },
        "title": "ARCHIVE-007",
        "required": [
          "error",
          "message",
          "title"
        ]
      },
      "Archive006": {
        "allOf": [
          {
            "$ref": "#/components/schemas/BasicError"
          }
        ],
        "description": "Archive cannot be retried",
        "properties": {
          "error": {
            "enum": [
              "ARCHIVE-006"
            ]
          },
          "message": {
            "enum": [
              "Archive cannot be retried"
            ]
          },
          "title": {
            "enum": [
              "Archive cannot be retried"
            ]
          }
        },
        "title": "ARCHIVE-006",
        "required": [
          "error",
          "message",
          "title"
        ]
      },
      "Archive005": {
        "allOf": [
          {
            "$ref": "#/components/schemas/BasicError"
          }
        ],
        "description": "Referenced archive",
        "properties": {
          "error": {
            "enum": [
              "ARCHIVE-005"
            ]
          },
          "message": {
            "enum": [
              "Referenced archive"
            ]
          },
          "title": {
            "enum": [
              "Referenced archive"
            ]
          }
        },
        "title": "ARCHIVE-005",
        "required": [
          "error",
          "message",
          "title"
        ]
      },
      "CachedCRLInfosResponse": {
        "properties": {
          "ca": {
            "type": "string"
          },
          "number": {
            "nullable": true,
            "type": "number"
          },
          "issuerDn": {
            "type": "string",
            "nullable": true
          },
          "thisUpdate": {
            "type": "integer",
            "format": "epoch",
            "nullable": true
          },
          "nextUpdate": {
            "type": "integer",
            "format": "epoch",
            "nullable": true
          },
          "lastRefresh": {
            "type": "integer",
            "format": "epoch",
            "nullable": true
          },
          "nextRefresh": {
            "type": "integer",
            "format": "epoch",
            "nullable": true
          },
          "size": {
            "type": "integer",
            "format": "int32"
          },
          "error": {
            "type": "string",
            "nullable": true
          }
        },
        "required": [
          "ca",
          "size"
        ]
      },
      "Cache001": {
        "allOf": [
          {
            "$ref": "#/components/schemas/BasicError"
          }
        ],
        "description": "Unexpected error",
        "properties": {
          "error": {
            "enum": [
              "CACHE-001"
            ]
          },
          "message": {
            "enum": [
              "Unexpected error"
            ]
          },
          "title": {
            "enum": [
              "Unexpected error"
            ]
          }
        },
        "title": "CACHE-001",
        "required": [
          "error",
          "message",
          "title"
        ]
      },
      "Cache002": {
        "allOf": [
          {
            "$ref": "#/components/schemas/BasicError"
          }
        ],
        "description": "Certificate authority not found",
        "properties": {
          "error": {
            "enum": [
              "CACHE-002"
            ]
          },
          "message": {
            "enum": [
              "Certificate authority not found"
            ]
          },
          "title": {
            "enum": [
              "Certificate authority not found"
            ]
          }
        },
        "title": "CACHE-002",
        "required": [
          "error",
          "message",
          "title"
        ]
      },
      "FiniteDuration": {
        "nullable": true,
        "type": "string",
        "format": "Finite Duration",
        "pattern": "^([0-9]+) *(ms|millisecond|milliseconds|s|second|seconds|m|minute|minutes|h|hour|hours|d|day|days)$"
      },
      "CertificateAuthority": {
        "properties": {
          "name": {
            "type": "string"
          },
          "subjectKeyIdentifier": {
            "type": "string",
            "nullable": true
          },
          "responderUrl": {
            "type": "string",
            "nullable": true
          },
          "crlUrl": {
            "type": "string",
            "nullable": true
          },
          "refresh": {
            "allOf": [
              {
                "$ref": "#/components/schemas/FiniteDuration"
              }
            ]
          },
          "trustedForClientAuthentication": {
            "type": "boolean"
          },
          "trustedForServerAuthentication": {
            "type": "boolean"
          },
          "outdatedRevocationStatusPolicy": {
            "type": "string",
            "enum": [
              "revoked",
              "unknown",
              "lastavailablestatus"
            ]
          },
          "timeout": {
            "allOf": [
              {
                "$ref": "#/components/schemas/FiniteDuration"
              }
            ]
          },
          "proxy": {
            "type": "string",
            "nullable": true
          },
          "cacheTimeToIdle": {
            "allOf": [
              {
                "$ref": "#/components/schemas/FiniteDuration"
              }
            ]
          },
          "public": {
            "type": "boolean"
          },
          "downloadable": {
            "type": "boolean"
          }
        }
      },
      "CFDistinguishedName": {
        "title": "CFDistinguishedName",
        "type": "object",
        "properties": {
          "type": {
            "type": "string"
          },
          "value": {
            "type": "string"
          }
        },
        "required": [
          "type",
          "value"
        ]
      },
      "KeyType": {
        "title": "Keytype",
        "type": "string",
        "pattern": "(rsa-2048|rsa-3072|rsa-4096|rsa-8192|ec-secp256r1|ec-secp384r1|ec-secp521r1|ed-448|ed-25519|mldsa-44|mldsa-65|mldsa-87|slhdsa-sha2-128s|slhdsa-sha2-128f|slhdsa-sha2-192s|slhdsa-sha2-192f|slhdsa-sha2-256s|slhdsa-sha2-256f|slhdsa-sha2-128ssha256|slhdsa-sha2-128fsha256|slhdsa-sha2-192ssha512|slhdsa-sha2-192fsha512|slhdsa-sha2-256ssha512|slhdsa-sha2-256fsha512)(\\\\+(rsa-2048|rsa-3072|rsa-4096|rsa-8192|ec-secp256r1|ec-secp384r1|ec-secp521r1|ed-448|ed-25519|mldsa-44|mldsa-65|mldsa-87|slhdsa-sha2-128s|slhdsa-sha2-128f|slhdsa-sha2-192s|slhdsa-sha2-192f|slhdsa-sha2-256s|slhdsa-sha2-256f|slhdsa-sha2-128ssha256|slhdsa-sha2-128fsha256|slhdsa-sha2-192ssha512|slhdsa-sha2-192fsha512|slhdsa-sha2-256ssha512|slhdsa-sha2-256fsha512))?",
        "example": "rsa-2048",
        "description": "One of `rsa-2048`, `rsa-3072`, `rsa-4096`, `rsa-8192`, `ec-secp256r1`, `ec-secp384r1`, `ec-secp521r1`, `ed-448`, `ed-25519`, `mldsa-44`, `mldsa-65`, `mldsa-87`, `slhdsa-sha2-128s`, `slhdsa-sha2-128f`, `slhdsa-sha2-192s`, `slhdsa-sha2-192f`, `slhdsa-sha2-256s`, `slhdsa-sha2-256f`, `slhdsa-sha2-128ssha256`, `slhdsa-sha2-128fsha256`, `slhdsa-sha2-192ssha512`, `slhdsa-sha2-192fsha512`, `slhdsa-sha2-256ssha512`, `slhdsa-sha2-256fsha512` or `<primary key type>+<alternate key type>`"
      },
      "SubjectAlternateName": {
        "properties": {
          "sanType": {
            "description": "The type of the SAN",
            "example": "DNSNAME",
            "enum": [
              "RFC822NAME",
              "DNSNAME",
              "URI",
              "IPADDRESS",
              "OTHERNAME_UPN",
              "OTHERNAME_GUID",
              "REGISTERED_ID"
            ],
            "type": "string"
          },
          "value": {
            "description": "The value of the SAN",
            "example": "docs.evertrust.fr",
            "type": "string"
          }
        },
        "required": [
          "sanType",
          "value"
        ]
      },
      "CertificateExtension": {
        "properties": {
          "key": {
            "description": "The extension's type",
            "type": "string",
            "enum": [
              "ms_sid",
              "ms_template",
              "ms_template_v2"
            ],
            "example": "ms_sid"
          },
          "value": {
            "description": "The extension's value",
            "type": "string",
            "example": "wcce_enrollment"
          }
        },
        "required": [
          "key",
          "value"
        ]
      },
      "CFCertificateResponse": {
        "title": "CFCertificate",
        "type": "object",
        "properties": {
          "dn": {
            "description": "The certificate's Distinguished Name",
            "type": "string",
            "example": "CN=Test Certificate,OU=Test,O=Test,L=Test,ST=Test,C=US"
          },
          "dnElements": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CFDistinguishedName"
            }
          },
          "issuerDn": {
            "description": "The certificate's issuer Distinguished Name",
            "example": "CN=Test CA,OU=Test,O=Test,L=Test,ST=Test,C=US",
            "type": "string"
          },
          "serial": {
            "description": "The certificate's serial number",
            "example": "1",
            "type": "string"
          },
          "notBefore": {
            "description": "The certificate's start date in milliseconds since the epoch",
            "example": 1609459200000,
            "format": "epoch",
            "type": "integer"
          },
          "notAfter": {
            "description": "The certificate's expiration date in milliseconds since the epoch",
            "format": "epoch",
            "type": "integer",
            "example": 1609459200000
          },
          "keyType": {
            "description": "The certificate's key type",
            "allOf": [
              {
                "$ref": "#/components/schemas/KeyType"
              }
            ]
          },
          "signingAlgorithm": {
            "description": "The certificate's signing algorithm",
            "example": "SHA256WITHRSA",
            "type": "string"
          },
          "pem": {
            "description": "The certificate's PEM-encoded content",
            "type": "string",
            "example": "-----BEGIN CERTIFICATE-----\nMI....\n-----END CERTIFICATE-----"
          },
          "subjectKeyIdentifier": {
            "type": "string"
          },
          "certificateThumbprint": {
            "description": "The certificate's thumbprint",
            "type": "string",
            "example": "30f727ea932acc3e7ec4716a7c1d1d571a0b9124afbe1d1d81a205562164c69c"
          },
          "certificateSHAOneThumbprint": {
            "description": "The thumbprint of the certificate using SHAOne algorithm",
            "type": "string"
          },
          "publicKeyThumbprint": {
            "description": "The certificate's public key thumbprint",
            "example": "4d0faebaeaa595aba5fafe6040fa8a2143b019b59a2b25ced3b2fb7393ee10e2",
            "type": "string"
          },
          "keyUsages": {
            "description": "The certificate key's usage",
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "isKeyUsagesCritical": {
            "description": "If the key usage of the certificate are critical",
            "type": "boolean"
          },
          "extendedKeyUsages": {
            "description": "The certificate extended key's usage",
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "isExtendedKeyUsagesCritical": {
            "description": "If the extended key usage are critical",
            "type": "boolean"
          },
          "selfSigned": {
            "description": "Whether the certificate is self-signed",
            "type": "boolean",
            "example": false
          },
          "sans": {
            "description": "The certificate's SAN",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/SubjectAlternateName"
            }
          },
          "basicConstraints": {
            "type": "object",
            "properties": {
              "isCa": {
                "description": "If the certificate is type of CA",
                "type": "boolean"
              },
              "pathLen": {
                "description": "The path len of the certificate",
                "type": "integer"
              }
            },
            "required": [
              "isCa"
            ]
          },
          "extensions": {
            "nullable": true,
            "description": "The certificate's extensions",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CertificateExtension"
            }
          },
          "crldps": {
            "description": "The certificate's CRLDP if any",
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "aias": {
            "description": "The certificate's AIA",
            "type": "object",
            "properties": {
              "ocsp": {
                "description": "The OCSP certificate AIA",
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "crt": {
                "description": "The CRT certificate AIA",
                "type": "array",
                "items": {
                  "type": "string"
                }
              }
            }
          },
          "policies": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "oid": {
                  "type": "string"
                },
                "urls": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              },
              "required": [
                "oid"
              ]
            }
          },
          "authorityKeyIdentifier": {
            "description": "The certificate AKI",
            "type": "string"
          },
          "unsupportedExtensions": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "oid": {
                  "type": "string"
                },
                "hex": {
                  "type": "string"
                }
              },
              "required": [
                "oid",
                "hex"
              ]
            }
          }
        },
        "required": [
          "dn",
          "dnElements",
          "issuerDn",
          "notBefore",
          "notAfter",
          "keyType",
          "signingAlgorithm",
          "pem",
          "subjectKeyIdentifier",
          "certificateThumbprint",
          "certificateSHAOneThumbprint",
          "publicKeyThumbprint",
          "keyUsages",
          "isKeyUsagesCritical",
          "extendedKeyUsages",
          "isExtendedKeyUsagesCritical",
          "selfSigned"
        ]
      },
      "CertificateAuthorityResponse": {
        "title": "Certificate Authority",
        "allOf": [
          {
            "$ref": "#/components/schemas/CertificateAuthority"
          }
        ],
        "properties": {
          "_id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/Id"
              }
            ]
          },
          "certificate": {
            "allOf": [
              {
                "$ref": "#/components/schemas/CFCertificateResponse"
              }
            ]
          }
        },
        "required": [
          "_id",
          "name",
          "certificate",
          "trustedForClientAuthentication",
          "trustedForServerAuthentication",
          "outdatedRevocationStatusPolicy",
          "public"
        ]
      },
      "Ca001": {
        "allOf": [
          {
            "$ref": "#/components/schemas/BasicError"
          }
        ],
        "description": "Unexpected error",
        "properties": {
          "error": {
            "enum": [
              "CA-001"
            ]
          },
          "message": {
            "enum": [
              "Unexpected error"
            ]
          },
          "title": {
            "enum": [
              "Unexpected error"
            ]
          }
        },
        "title": "CA-001",
        "required": [
          "error",
          "message",
          "title"
        ]
      },
      "CertificateAuthorityRequest": {
        "title": "Certificate Authority",
        "allOf": [
          {
            "$ref": "#/components/schemas/CertificateAuthority"
          }
        ],
        "properties": {
          "certificate": {
            "type": "string"
          }
        },
        "required": [
          "name",
          "certificate",
          "trustedForClientAuthentication",
          "trustedForServerAuthentication",
          "outdatedRevocationStatusPolicy",
          "public"
        ]
      },
      "Ca002": {
        "allOf": [
          {
            "$ref": "#/components/schemas/BasicError"
          }
        ],
        "description": "Invalid Certificate Authority",
        "properties": {
          "error": {
            "enum": [
              "CA-002"
            ]
          },
          "message": {
            "enum": [
              "Invalid Certificate Authority"
            ]
          },
          "title": {
            "enum": [
              "Invalid Certificate Authority"
            ]
          }
        },
        "title": "CA-002",
        "required": [
          "error",
          "message",
          "title"
        ]
      },
      "Ca003": {
        "allOf": [
          {
            "$ref": "#/components/schemas/BasicError"
          }
        ],
        "description": "Certificate Authority not found",
        "properties": {
          "error": {
            "enum": [
              "CA-003"
            ]
          },
          "message": {
            "enum": [
              "Certificate Authority not found"
            ]
          },
          "title": {
            "enum": [
              "Certificate Authority not found"
            ]
          }
        },
        "title": "CA-003",
        "required": [
          "error",
          "message",
          "title"
        ]
      },
      "Ca004": {
        "allOf": [
          {
            "$ref": "#/components/schemas/BasicError"
          }
        ],
        "description": "Certificate Authority already exists",
        "properties": {
          "error": {
            "enum": [
              "CA-004"
            ]
          },
          "message": {
            "enum": [
              "Certificate Authority already exists"
            ]
          },
          "title": {
            "enum": [
              "Certificate Authority already exists"
            ]
          }
        },
        "title": "CA-004",
        "required": [
          "error",
          "message",
          "title"
        ]
      },
      "Ca005": {
        "allOf": [
          {
            "$ref": "#/components/schemas/BasicError"
          }
        ],
        "description": "Referenced Certificate Authority",
        "properties": {
          "error": {
            "enum": [
              "CA-005"
            ]
          },
          "message": {
            "enum": [
              "Referenced Certificate Authority"
            ]
          },
          "title": {
            "enum": [
              "Referenced Certificate Authority"
            ]
          }
        },
        "title": "CA-005",
        "required": [
          "error",
          "message",
          "title"
        ]
      },
      "LocalizedString": {
        "title": "LocalizedString",
        "properties": {
          "lang": {
            "description": "The ISO 3166-1 (2-letters) code of the language used for the value",
            "example": "en",
            "type": "string"
          },
          "value": {
            "description": "The localized value",
            "example": "Value In English",
            "type": "string"
          }
        },
        "required": [
          "lang",
          "value"
        ]
      },
      "WeightedGradingRuleset": {
        "properties": {
          "ruleset": {
            "type": "string"
          },
          "weight": {
            "type": "integer",
            "format": "int32"
          }
        },
        "required": [
          "ruleset",
          "weight"
        ]
      },
      "GradingPolicyResponse": {
        "properties": {
          "_id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/Id"
              }
            ]
          },
          "name": {
            "type": "string"
          },
          "description": {
            "type": "array",
            "nullable": true,
            "items": {
              "$ref": "#/components/schemas/LocalizedString"
            }
          },
          "rulesets": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/WeightedGradingRuleset"
            }
          }
        },
        "required": [
          "_id",
          "name",
          "rulesets"
        ]
      },
      "GradingPolicy003": {
        "allOf": [
          {
            "$ref": "#/components/schemas/BasicError"
          }
        ],
        "description": "Grading Policy not found",
        "properties": {
          "error": {
            "enum": [
              "GRADING-POLICY-003"
            ]
          },
          "message": {
            "enum": [
              "Grading Policy not found"
            ]
          },
          "title": {
            "enum": [
              "Grading Policy not found"
            ]
          }
        },
        "title": "GRADING-POLICY-003",
        "required": [
          "error",
          "message",
          "title"
        ]
      },
      "GradingPolicy001": {
        "allOf": [
          {
            "$ref": "#/components/schemas/BasicError"
          }
        ],
        "description": "Unexpected error",
        "properties": {
          "error": {
            "enum": [
              "GRADING-POLICY-001"
            ]
          },
          "message": {
            "enum": [
              "Unexpected error"
            ]
          },
          "title": {
            "enum": [
              "Unexpected error"
            ]
          }
        },
        "title": "GRADING-POLICY-001",
        "required": [
          "error",
          "message",
          "title"
        ]
      },
      "ExplainedGradingRule": {
        "properties": {
          "description": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/LocalizedString"
            }
          },
          "score": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "obtained": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "scope": {
            "type": "string",
            "nullable": true
          },
          "condition": {
            "type": "string"
          },
          "apply": {
            "type": "boolean"
          },
          "eval": {
            "type": "boolean",
            "nullable": true
          }
        },
        "required": [
          "description",
          "condition",
          "apply"
        ]
      },
      "ExplainedGradingRuleset": {
        "properties": {
          "name": {
            "type": "string"
          },
          "description": {
            "type": "array",
            "nullable": true,
            "items": {
              "$ref": "#/components/schemas/LocalizedString"
            }
          },
          "certificate": {
            "nullable": true,
            "type": "string"
          },
          "scope": {
            "type": "string",
            "nullable": true
          },
          "apply": {
            "type": "boolean"
          },
          "max": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "obtained": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "score": {
            "type": "number",
            "format": "float",
            "nullable": true
          },
          "explained": {
            "type": "array",
            "nullable": true,
            "items": {
              "$ref": "#/components/schemas/ExplainedGradingRule"
            }
          }
        },
        "required": [
          "name",
          "apply"
        ]
      },
      "ExplainedGradingPolicyResponse": {
        "properties": {
          "name": {
            "type": "string"
          },
          "description": {
            "type": "array",
            "nullable": true,
            "items": {
              "$ref": "#/components/schemas/LocalizedString"
            }
          },
          "rulesets": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/WeightedGradingRuleset"
            }
          },
          "certificate": {
            "type": "string"
          },
          "score": {
            "type": "number",
            "format": "float",
            "nullable": true
          },
          "grade": {
            "type": "string",
            "nullable": true
          },
          "explained": {
            "type": "array",
            "nullable": true,
            "items": {
              "$ref": "#/components/schemas/ExplainedGradingRuleset"
            }
          }
        },
        "required": [
          "name",
          "rulesets",
          "certificate"
        ]
      },
      "GradingPolicy005": {
        "allOf": [
          {
            "$ref": "#/components/schemas/BasicError"
          }
        ],
        "description": "Invalid X509 certificate",
        "properties": {
          "error": {
            "enum": [
              "GRADING-POLICY-005"
            ]
          },
          "message": {
            "enum": [
              "Invalid X509 certificate"
            ]
          },
          "title": {
            "enum": [
              "Invalid X509 certificate"
            ]
          }
        },
        "title": "GRADING-POLICY-005",
        "required": [
          "error",
          "message",
          "title"
        ]
      },
      "GradingRule": {
        "properties": {
          "description": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/LocalizedString"
            }
          },
          "scope": {
            "type": "string",
            "nullable": true
          },
          "condition": {
            "type": "string"
          },
          "score": {
            "type": "integer",
            "format": "int32"
          }
        },
        "required": [
          "description",
          "condition",
          "score"
        ]
      },
      "GradingRulesetResponse": {
        "properties": {
          "_id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/Id"
              }
            ]
          },
          "name": {
            "type": "string"
          },
          "description": {
            "type": "array",
            "nullable": true,
            "items": {
              "$ref": "#/components/schemas/LocalizedString"
            }
          },
          "scope": {
            "type": "string",
            "nullable": true
          },
          "rules": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/GradingRule"
            }
          }
        },
        "required": [
          "_id",
          "name",
          "rules"
        ]
      },
      "GradingRuleset003": {
        "allOf": [
          {
            "$ref": "#/components/schemas/BasicError"
          }
        ],
        "description": "Grading Ruleset not found",
        "properties": {
          "error": {
            "enum": [
              "GRADING-RULESET-003"
            ]
          },
          "message": {
            "enum": [
              "Grading Ruleset not found"
            ]
          },
          "title": {
            "enum": [
              "Grading Ruleset not found"
            ]
          }
        },
        "title": "GRADING-RULESET-003",
        "required": [
          "error",
          "message",
          "title"
        ]
      },
      "GradingRuleset001": {
        "allOf": [
          {
            "$ref": "#/components/schemas/BasicError"
          }
        ],
        "description": "Unexpected error",
        "properties": {
          "error": {
            "enum": [
              "GRADING-RULESET-001"
            ]
          },
          "message": {
            "enum": [
              "Unexpected error"
            ]
          },
          "title": {
            "enum": [
              "Unexpected error"
            ]
          }
        },
        "title": "GRADING-RULESET-001",
        "required": [
          "error",
          "message",
          "title"
        ]
      },
      "ExplainedGradingRulesetResponse": {
        "properties": {
          "name": {
            "type": "string"
          },
          "description": {
            "type": "array",
            "nullable": true,
            "items": {
              "$ref": "#/components/schemas/LocalizedString"
            }
          },
          "certificate": {
            "nullable": true,
            "type": "string"
          },
          "scope": {
            "type": "string",
            "nullable": true
          },
          "apply": {
            "type": "boolean"
          },
          "max": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "obtained": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "score": {
            "type": "number",
            "format": "float",
            "nullable": true
          },
          "explained": {
            "type": "array",
            "nullable": true,
            "items": {
              "$ref": "#/components/schemas/ExplainedGradingRule"
            }
          }
        },
        "required": [
          "name",
          "apply"
        ]
      },
      "GradingRuleset005": {
        "allOf": [
          {
            "$ref": "#/components/schemas/BasicError"
          }
        ],
        "description": "Invalid X509 certificate",
        "properties": {
          "error": {
            "enum": [
              "GRADING-RULESET-005"
            ]
          },
          "message": {
            "enum": [
              "Invalid X509 certificate"
            ]
          },
          "title": {
            "enum": [
              "Invalid X509 certificate"
            ]
          }
        },
        "title": "GRADING-RULESET-005",
        "required": [
          "error",
          "message",
          "title"
        ]
      },
      "LabelResponse": {
        "properties": {
          "_id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/Id"
              }
            ]
          },
          "name": {
            "description": "Technical name of the label",
            "example": "business_unit",
            "type": "string"
          },
          "displayName": {
            "description": "Display names of the label",
            "type": "array",
            "nullable": true,
            "items": {
              "$ref": "#/components/schemas/LocalizedString"
            }
          },
          "description": {
            "description": "Localized descriptions of the label",
            "type": "array",
            "nullable": true,
            "items": {
              "$ref": "#/components/schemas/LocalizedString"
            }
          }
        },
        "required": [
          "_id",
          "name"
        ]
      },
      "CertLabel005": {
        "allOf": [
          {
            "$ref": "#/components/schemas/BasicError"
          }
        ],
        "description": "Referenced Label",
        "properties": {
          "error": {
            "enum": [
              "CERT-LABEL-005"
            ]
          },
          "message": {
            "enum": [
              "Referenced Label"
            ]
          },
          "title": {
            "enum": [
              "Referenced Label"
            ]
          }
        },
        "title": "CERT-LABEL-005",
        "required": [
          "error",
          "message",
          "title"
        ]
      },
      "CertLabel001": {
        "allOf": [
          {
            "$ref": "#/components/schemas/BasicError"
          }
        ],
        "description": "Unexpected Error",
        "properties": {
          "error": {
            "enum": [
              "CERT-LABEL-001"
            ]
          },
          "message": {
            "enum": [
              "Unexpected Error"
            ]
          },
          "title": {
            "enum": [
              "Unexpected Error"
            ]
          }
        },
        "title": "CERT-LABEL-001",
        "required": [
          "error",
          "message",
          "title"
        ]
      },
      "Label": {
        "properties": {
          "name": {
            "description": "Technical name of the label",
            "example": "business_unit",
            "type": "string"
          },
          "displayName": {
            "description": "Display names of the label",
            "type": "array",
            "nullable": true,
            "items": {
              "$ref": "#/components/schemas/LocalizedString"
            }
          },
          "description": {
            "description": "Localized descriptions of the label",
            "type": "array",
            "nullable": true,
            "items": {
              "$ref": "#/components/schemas/LocalizedString"
            }
          }
        },
        "required": [
          "name"
        ]
      },
      "CertLabel002": {
        "allOf": [
          {
            "$ref": "#/components/schemas/BasicError"
          }
        ],
        "description": "Invalid Label",
        "properties": {
          "error": {
            "enum": [
              "CERT-LABEL-002"
            ]
          },
          "message": {
            "enum": [
              "Invalid Label"
            ]
          },
          "title": {
            "enum": [
              "Invalid Label"
            ]
          }
        },
        "title": "CERT-LABEL-002",
        "required": [
          "error",
          "message",
          "title"
        ]
      },
      "CertLabel003": {
        "allOf": [
          {
            "$ref": "#/components/schemas/BasicError"
          }
        ],
        "description": "Label not found",
        "properties": {
          "error": {
            "enum": [
              "CERT-LABEL-003"
            ]
          },
          "message": {
            "enum": [
              "Label not found"
            ]
          },
          "title": {
            "enum": [
              "Label not found"
            ]
          }
        },
        "title": "CERT-LABEL-003",
        "required": [
          "error",
          "message",
          "title"
        ]
      },
      "CertLabel004": {
        "allOf": [
          {
            "$ref": "#/components/schemas/BasicError"
          }
        ],
        "description": "Label already exists",
        "properties": {
          "error": {
            "enum": [
              "CERT-LABEL-004"
            ]
          },
          "message": {
            "enum": [
              "Label already exists"
            ]
          },
          "title": {
            "enum": [
              "Label already exists"
            ]
          }
        },
        "title": "CERT-LABEL-004",
        "required": [
          "error",
          "message",
          "title"
        ]
      },
      "DirectoryMeta": {
        "properties": {
          "termsOfService": {
            "type": "string",
            "nullable": true
          },
          "website": {
            "type": "string",
            "nullable": true
          },
          "caaIdentities": {
            "type": "array",
            "nullable": true,
            "items": {
              "type": "string"
            }
          },
          "externalAccountRequired": {
            "type": "boolean",
            "nullable": true
          }
        }
      },
      "CertificateRequestConstraints": {
        "properties": {
          "allowedDomains": {
            "type": "string",
            "nullable": true
          },
          "allowedEmailDomains": {
            "type": "string",
            "nullable": true
          },
          "allowedDnsDomains": {
            "type": "string",
            "nullable": true
          }
        }
      },
      "RevocationReason": {
        "title": "Revocation Reason",
        "type": "string",
        "description": "One of: `unspecified`, `keycompromise`, `cacompromise`, `affiliationchange`, `superseded`, `cessationofoperation`"
      },
      "MaxCertificatePerHolderPolicy": {
        "properties": {
          "max": {
            "type": "integer",
            "format": "int32"
          },
          "behavior": {
            "type": "string",
            "enum": [
              "revoke",
              "reject"
            ]
          },
          "revocationReason": {
            "allOf": [
              {
                "$ref": "#/components/schemas/RevocationReason"
              }
            ],
            "nullable": true
          }
        },
        "required": [
          "max",
          "behavior"
        ]
      },
      "EnforcedIdentityProvider": {
        "title": "Enforced identity providers",
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "Local",
              "OpenId",
              "X509",
              "Pop"
            ],
            "description": "The type of identity provider to be enforced",
            "example": "Local"
          },
          "name": {
            "type": "string",
            "description": "The name of the identity provider to be enforced",
            "example": "local"
          }
        },
        "required": [
          "type",
          "name"
        ]
      },
      "AuthorizationLevel": {
        "properties": {
          "accessLevel": {
            "type": "string",
            "enum": [
              "everyone",
              "authenticated",
              "authorized"
            ],
            "description": "The access level required to perform the action",
            "example": "authenticated"
          },
          "enforcedIdentityProviders": {
            "type": "array",
            "nullable": true,
            "items": {
              "$ref": "#/components/schemas/EnforcedIdentityProvider"
            },
            "description": "The different identity providers that can be enforced to perform the action"
          }
        },
        "required": [
          "accessLevel"
        ]
      },
      "CertificateProfileAuthorizationLevels": {
        "properties": {
          "enroll": {
            "nullable": true,
            "type": "object",
            "allOf": [
              {
                "$ref": "#/components/schemas/AuthorizationLevel"
              }
            ]
          },
          "enrollApi": {
            "nullable": true,
            "type": "object",
            "allOf": [
              {
                "$ref": "#/components/schemas/AuthorizationLevel"
              }
            ]
          },
          "requestEnroll": {
            "nullable": true,
            "type": "object",
            "allOf": [
              {
                "$ref": "#/components/schemas/AuthorizationLevel"
              }
            ]
          },
          "approveEnroll": {
            "nullable": true,
            "type": "object",
            "allOf": [
              {
                "$ref": "#/components/schemas/AuthorizationLevel"
              }
            ]
          },
          "revoke": {
            "allOf": [
              {
                "$ref": "#/components/schemas/AuthorizationLevel"
              }
            ]
          },
          "requestRevoke": {
            "allOf": [
              {
                "$ref": "#/components/schemas/AuthorizationLevel"
              }
            ]
          },
          "approveRevoke": {
            "allOf": [
              {
                "$ref": "#/components/schemas/AuthorizationLevel"
              }
            ]
          },
          "search": {
            "allOf": [
              {
                "$ref": "#/components/schemas/AuthorizationLevel"
              }
            ]
          },
          "update": {
            "allOf": [
              {
                "$ref": "#/components/schemas/AuthorizationLevel"
              }
            ]
          },
          "requestUpdate": {
            "allOf": [
              {
                "$ref": "#/components/schemas/AuthorizationLevel"
              }
            ]
          },
          "approveUpdate": {
            "allOf": [
              {
                "$ref": "#/components/schemas/AuthorizationLevel"
              }
            ]
          },
          "recover": {
            "type": "object",
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/AuthorizationLevel"
              }
            ]
          },
          "recoverApi": {
            "type": "object",
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/AuthorizationLevel"
              }
            ]
          },
          "requestRecover": {
            "type": "object",
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/AuthorizationLevel"
              }
            ]
          },
          "approveRecover": {
            "type": "object",
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/AuthorizationLevel"
              }
            ]
          },
          "migrate": {
            "type": "object",
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/AuthorizationLevel"
              }
            ]
          },
          "requestMigrate": {
            "type": "object",
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/AuthorizationLevel"
              }
            ]
          },
          "approveMigrate": {
            "type": "object",
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/AuthorizationLevel"
              }
            ]
          },
          "renew": {
            "type": "object",
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/AuthorizationLevel"
              }
            ]
          },
          "renewApi": {
            "type": "object",
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/AuthorizationLevel"
              }
            ]
          },
          "requestRenew": {
            "type": "object",
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/AuthorizationLevel"
              }
            ]
          },
          "approveRenew": {
            "type": "object",
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/AuthorizationLevel"
              }
            ]
          },
          "auditRequest": {
            "type": "object",
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/AuthorizationLevel"
              }
            ]
          }
        },
        "required": [
          "search",
          "update",
          "requestUpdate",
          "approveUpdate"
        ]
      },
      "CertificateProfileAsynchronousTrigger": {
        "properties": {
          "name": {
            "type": "string"
          },
          "activationDate": {
            "type": "integer",
            "format": "epoch",
            "nullable": true
          }
        },
        "required": [
          "name"
        ]
      },
      "CertificateProfileTriggers": {
        "properties": {
          "onEnroll": {
            "type": "array",
            "nullable": true,
            "items": {
              "type": "string"
            }
          },
          "onSubmitEnroll": {
            "type": "array",
            "nullable": true,
            "items": {
              "type": "string"
            }
          },
          "onCancelEnroll": {
            "type": "array",
            "nullable": true,
            "items": {
              "type": "string"
            }
          },
          "onApproveEnroll": {
            "type": "array",
            "nullable": true,
            "items": {
              "type": "string"
            }
          },
          "onDenyEnroll": {
            "type": "array",
            "nullable": true,
            "items": {
              "type": "string"
            }
          },
          "onPendingEnroll": {
            "type": "array",
            "nullable": true,
            "items": {
              "$ref": "#/components/schemas/CertificateProfileAsynchronousTrigger"
            }
          },
          "onRevoke": {
            "type": "array",
            "nullable": true,
            "items": {
              "type": "string"
            }
          },
          "onSubmitRevoke": {
            "type": "array",
            "nullable": true,
            "items": {
              "type": "string"
            }
          },
          "onCancelRevoke": {
            "type": "array",
            "nullable": true,
            "items": {
              "type": "string"
            }
          },
          "onApproveRevoke": {
            "type": "array",
            "nullable": true,
            "items": {
              "type": "string"
            }
          },
          "onDenyRevoke": {
            "type": "array",
            "nullable": true,
            "items": {
              "type": "string"
            }
          },
          "onPendingRevoke": {
            "type": "array",
            "nullable": true,
            "items": {
              "$ref": "#/components/schemas/CertificateProfileAsynchronousTrigger"
            }
          },
          "onUpdate": {
            "type": "array",
            "nullable": true,
            "items": {
              "type": "string"
            }
          },
          "onSubmitUpdate": {
            "type": "array",
            "nullable": true,
            "items": {
              "type": "string"
            }
          },
          "onCancelUpdate": {
            "type": "array",
            "nullable": true,
            "items": {
              "type": "string"
            }
          },
          "onApproveUpdate": {
            "type": "array",
            "nullable": true,
            "items": {
              "type": "string"
            }
          },
          "onDenyUpdate": {
            "type": "array",
            "nullable": true,
            "items": {
              "type": "string"
            }
          },
          "onPendingUpdate": {
            "type": "array",
            "nullable": true,
            "items": {
              "$ref": "#/components/schemas/CertificateProfileAsynchronousTrigger"
            }
          },
          "onRecover": {
            "type": "array",
            "nullable": true,
            "items": {
              "type": "string"
            }
          },
          "onSubmitRecover": {
            "type": "array",
            "nullable": true,
            "items": {
              "type": "string"
            }
          },
          "onCancelRecover": {
            "type": "array",
            "nullable": true,
            "items": {
              "type": "string"
            }
          },
          "onApproveRecover": {
            "type": "array",
            "nullable": true,
            "items": {
              "type": "string"
            }
          },
          "onDenyRecover": {
            "type": "array",
            "nullable": true,
            "items": {
              "type": "string"
            }
          },
          "onPendingRecover": {
            "type": "array",
            "nullable": true,
            "items": {
              "$ref": "#/components/schemas/CertificateProfileAsynchronousTrigger"
            }
          },
          "onMigrate": {
            "type": "array",
            "nullable": true,
            "items": {
              "type": "string"
            }
          },
          "onSubmitMigrate": {
            "type": "array",
            "nullable": true,
            "items": {
              "type": "string"
            }
          },
          "onCancelMigrate": {
            "type": "array",
            "nullable": true,
            "items": {
              "type": "string"
            }
          },
          "onApproveMigrate": {
            "type": "array",
            "nullable": true,
            "items": {
              "type": "string"
            }
          },
          "onDenyMigrate": {
            "type": "array",
            "nullable": true,
            "items": {
              "type": "string"
            }
          },
          "onPendingMigrate": {
            "type": "array",
            "nullable": true,
            "items": {
              "$ref": "#/components/schemas/CertificateProfileAsynchronousTrigger"
            }
          },
          "onExpire": {
            "type": "array",
            "nullable": true,
            "items": {
              "$ref": "#/components/schemas/CertificateProfileAsynchronousTrigger"
            }
          },
          "onRenew": {
            "type": "array",
            "nullable": true,
            "items": {
              "type": "string"
            }
          },
          "onSubmitRenew": {
            "type": "array",
            "nullable": true,
            "items": {
              "type": "string"
            }
          },
          "onCancelRenew": {
            "type": "array",
            "nullable": true,
            "items": {
              "type": "string"
            }
          },
          "onApproveRenew": {
            "type": "array",
            "nullable": true,
            "items": {
              "type": "string"
            }
          },
          "onDenyRenew": {
            "type": "array",
            "nullable": true,
            "items": {
              "type": "string"
            }
          },
          "onPendingRenew": {
            "type": "array",
            "nullable": true,
            "items": {
              "$ref": "#/components/schemas/CertificateProfileAsynchronousTrigger"
            }
          }
        }
      },
      "RequestsPolicy": {
        "properties": {
          "enroll": {
            "nullable": true,
            "type": "string",
            "format": "Finite Duration",
            "pattern": "^([0-9]+) *(ms|millisecond|milliseconds|s|second|seconds|m|minute|minutes|h|hour|hours|d|day|days)$",
            "example": "5 seconds"
          },
          "revoke": {
            "nullable": true,
            "type": "string",
            "format": "Finite Duration",
            "pattern": "^([0-9]+) *(ms|millisecond|milliseconds|s|second|seconds|m|minute|minutes|h|hour|hours|d|day|days)$",
            "example": "5 seconds"
          },
          "recover": {
            "nullable": true,
            "type": "string",
            "format": "Finite Duration",
            "pattern": "^([0-9]+) *(ms|millisecond|milliseconds|s|second|seconds|m|minute|minutes|h|hour|hours|d|day|days)$",
            "example": "5 seconds"
          },
          "update": {
            "nullable": true,
            "type": "string",
            "format": "Finite Duration",
            "pattern": "^([0-9]+) *(ms|millisecond|milliseconds|s|second|seconds|m|minute|minutes|h|hour|hours|d|day|days)$",
            "example": "5 seconds"
          },
          "migrate": {
            "nullable": true,
            "type": "string",
            "format": "Finite Duration",
            "pattern": "^([0-9]+) *(ms|millisecond|milliseconds|s|second|seconds|m|minute|minutes|h|hour|hours|d|day|days)$",
            "example": "5 seconds"
          },
          "renew": {
            "nullable": true,
            "type": "string",
            "format": "Finite Duration",
            "pattern": "^([0-9]+) *(ms|millisecond|milliseconds|s|second|seconds|m|minute|minutes|h|hour|hours|d|day|days)$",
            "example": "5 seconds"
          }
        }
      },
      "CertificateProfileSelfPermissions": {
        "properties": {
          "selfRecover": {
            "type": "boolean",
            "nullable": true,
            "default": false
          },
          "selfUpdate": {
            "type": "boolean",
            "nullable": true,
            "default": false
          },
          "selfRevoke": {
            "type": "boolean",
            "nullable": true,
            "default": false
          },
          "selfRenew": {
            "type": "boolean",
            "nullable": true,
            "default": false
          },
          "selfPopRenew": {
            "type": "boolean",
            "nullable": true,
            "default": false
          },
          "selfPopRevoke": {
            "type": "boolean",
            "nullable": true,
            "default": false
          },
          "selfPopUpdate": {
            "type": "boolean",
            "nullable": true,
            "default": false
          }
        }
      },
      "ComputationRule": {
        "title": "Computation Rule",
        "description": "A computation rule that will dynamically generate a string value from the request's context",
        "externalDocs": {
          "description": "Computation rules guide",
          "url": "https://docs.evertrust.fr/horizon/admin-guide/-/other/template_string"
        },
        "type": "string",
        "example": "{{csr.subject.cn.1}}"
      },
      "DNElement": {
        "properties": {
          "type": {
            "type": "string"
          },
          "value": {
            "type": "string",
            "nullable": true
          },
          "computationRule": {
            "allOf": [
              {
                "$ref": "#/components/schemas/ComputationRule"
              }
            ],
            "nullable": true
          },
          "mandatory": {
            "type": "boolean"
          },
          "editableByRequester": {
            "type": "boolean",
            "nullable": true
          },
          "editableByApprover": {
            "type": "boolean",
            "nullable": true
          },
          "regex": {
            "type": "string",
            "nullable": true
          }
        },
        "required": [
          "type",
          "mandatory"
        ]
      },
      "SANElement": {
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "RFC822NAME",
              "DNSNAME",
              "URI",
              "IPADDRESS",
              "OTHERNAME_UPN",
              "OTHERNAME_GUID",
              "REGISTERED_ID"
            ]
          },
          "computationRule": {
            "allOf": [
              {
                "$ref": "#/components/schemas/ComputationRule"
              }
            ],
            "nullable": true
          },
          "editableByRequester": {
            "type": "boolean",
            "nullable": true
          },
          "editableByApprover": {
            "type": "boolean",
            "nullable": true
          },
          "regex": {
            "type": "string",
            "nullable": true
          },
          "min": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "max": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          }
        },
        "required": [
          "type"
        ]
      },
      "ExtensionElement": {
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "ms_sid",
              "ms_template",
              "ms_template_v2"
            ]
          },
          "value": {
            "type": "string",
            "nullable": true
          },
          "computationRule": {
            "allOf": [
              {
                "$ref": "#/components/schemas/ComputationRule"
              }
            ],
            "nullable": true
          },
          "mandatory": {
            "type": "boolean"
          },
          "editableByRequester": {
            "type": "boolean",
            "nullable": true
          },
          "editableByApprover": {
            "type": "boolean",
            "nullable": true
          },
          "regex": {
            "type": "string",
            "nullable": true
          }
        },
        "required": [
          "type",
          "mandatory"
        ]
      },
      "OwnerPolicy": {
        "properties": {
          "editableByRequester": {
            "type": "boolean"
          },
          "editableByApprover": {
            "type": "boolean"
          },
          "computationRule": {
            "allOf": [
              {
                "$ref": "#/components/schemas/ComputationRule"
              }
            ],
            "nullable": true
          },
          "mandatory": {
            "type": "boolean"
          },
          "description": {
            "type": "array",
            "nullable": true,
            "items": {
              "$ref": "#/components/schemas/LocalizedString"
            }
          }
        },
        "required": [
          "editableByRequester",
          "editableByApprover",
          "mandatory"
        ]
      },
      "TeamPolicy": {
        "properties": {
          "editableByRequester": {
            "type": "boolean"
          },
          "editableByApprover": {
            "type": "boolean"
          },
          "regex": {
            "type": "string",
            "nullable": true
          },
          "whitelist": {
            "type": "array",
            "nullable": true,
            "items": {
              "type": "string"
            }
          },
          "value": {
            "type": "string",
            "nullable": true
          },
          "computationRule": {
            "allOf": [
              {
                "$ref": "#/components/schemas/ComputationRule"
              }
            ],
            "nullable": true
          },
          "mandatory": {
            "type": "boolean"
          },
          "description": {
            "type": "array",
            "nullable": true,
            "items": {
              "$ref": "#/components/schemas/LocalizedString"
            }
          }
        },
        "required": [
          "editableByRequester",
          "editableByApprover",
          "mandatory"
        ]
      },
      "MetadataPolicy": {
        "properties": {
          "metadata": {
            "type": "string",
            "enum": [
              "gs_order_id",
              "renewed_certificate_id",
              "metapki_id",
              "pki_connector",
              "digicert_id",
              "entrust_id",
              "scep_transid",
              "fcms_id",
              "previous_certificate_id",
              "gsatlas_id",
              "certeurope_id",
              "digicert_order_id",
              "automation_policy",
              "contact_email"
            ]
          },
          "editableByRequester": {
            "type": "boolean"
          },
          "editableByApprover": {
            "type": "boolean"
          }
        },
        "required": [
          "metadata",
          "editableByRequester",
          "editableByApprover"
        ]
      },
      "LabelElement": {
        "title": "Label",
        "properties": {
          "label": {
            "description": "The name of the label",
            "example": "BU",
            "type": "string"
          },
          "value": {
            "description": "The default value of the label element",
            "type": "string",
            "nullable": true,
            "example": "business_unit_1"
          },
          "computationRule": {
            "allOf": [
              {
                "$ref": "#/components/schemas/ComputationRule"
              }
            ],
            "description": "The computation rule of the label element",
            "nullable": true
          },
          "mandatory": {
            "description": "Whether the label element is mandatory to submit a request",
            "type": "boolean",
            "nullable": true
          },
          "editableByRequester": {
            "description": "Whether the label element is editable by the requester",
            "type": "boolean",
            "nullable": true
          },
          "editableByApprover": {
            "description": "Whether the label element is editable by the approver",
            "type": "boolean",
            "nullable": true
          },
          "regex": {
            "description": "The regex used to validate the label element",
            "type": "string",
            "nullable": true,
            "example": "^.*aregex$"
          },
          "enum": {
            "description": "The whitelist used to validate the label element",
            "type": "array",
            "nullable": true,
            "example": [
              "business_unit_1",
              "business_unit_2"
            ],
            "items": {
              "type": "string"
            }
          },
          "suggestions": {
            "description": "The suggestions used to recommend the label element values",
            "type": "array",
            "nullable": true,
            "example": [
              "business_unit_2",
              "business_unit_3"
            ],
            "items": {
              "type": "string"
            }
          }
        },
        "required": [
          "label"
        ]
      },
      "ContactEmailPolicy": {
        "properties": {
          "value": {
            "type": "string",
            "nullable": true
          },
          "computationRule": {
            "allOf": [
              {
                "$ref": "#/components/schemas/ComputationRule"
              }
            ],
            "nullable": true
          },
          "mandatory": {
            "type": "boolean"
          },
          "editableByRequester": {
            "type": "boolean",
            "nullable": true
          },
          "editableByApprover": {
            "type": "boolean",
            "nullable": true
          },
          "regex": {
            "type": "string",
            "nullable": true
          },
          "whitelist": {
            "type": "array",
            "nullable": true,
            "items": {
              "type": "string"
            }
          },
          "description": {
            "type": "array",
            "nullable": true,
            "items": {
              "$ref": "#/components/schemas/LocalizedString"
            }
          }
        },
        "required": [
          "mandatory"
        ]
      },
      "CertificateTemplate": {
        "properties": {
          "subject": {
            "type": "array",
            "nullable": true,
            "items": {
              "$ref": "#/components/schemas/DNElement"
            }
          },
          "sans": {
            "type": "array",
            "nullable": true,
            "items": {
              "$ref": "#/components/schemas/SANElement"
            }
          },
          "extensions": {
            "type": "array",
            "nullable": true,
            "items": {
              "$ref": "#/components/schemas/ExtensionElement"
            }
          },
          "ownerPolicy": {
            "nullable": true,
            "type": "object",
            "allOf": [
              {
                "$ref": "#/components/schemas/OwnerPolicy"
              }
            ]
          },
          "teamPolicy": {
            "nullable": true,
            "type": "object",
            "allOf": [
              {
                "$ref": "#/components/schemas/TeamPolicy"
              }
            ]
          },
          "metadataPolicies": {
            "type": "array",
            "nullable": true,
            "items": {
              "$ref": "#/components/schemas/MetadataPolicy"
            }
          },
          "labels": {
            "type": "array",
            "nullable": true,
            "items": {
              "$ref": "#/components/schemas/LabelElement"
            }
          },
          "contactEmailPolicy": {
            "nullable": true,
            "type": "object",
            "allOf": [
              {
                "$ref": "#/components/schemas/ContactEmailPolicy"
              }
            ]
          }
        }
      },
      "ManagedCertificateProfileCryptoPolicy": {
        "title": "Managed Certificate profile crypto policy",
        "properties": {
          "centralized": {
            "description": "Whether this profile supports centralized enrollment",
            "type": "boolean",
            "nullable": true,
            "default": false
          },
          "decentralized": {
            "description": "Whether this profile supports decentralized enrollment",
            "type": "boolean",
            "nullable": true,
            "default": false
          },
          "defaultKeyType": {
            "description": "Default key type used for centralized enrollment",
            "allOf": [
              {
                "$ref": "#/components/schemas/KeyType"
              }
            ],
            "nullable": true
          },
          "authorizedKeyTypes": {
            "description": "List of authorized key types for enrollment",
            "example": [
              "rsa-2048",
              "rsa-3072",
              "rsa-4096"
            ],
            "type": "array",
            "nullable": true,
            "items": {
              "allOf": [
                {
                  "$ref": "#/components/schemas/KeyType"
                }
              ]
            }
          },
          "preferredEnrollmentMode": {
            "description": "If both centralized and decentralized enrollment are supported, this is the preferred mode",
            "type": "string",
            "nullable": true,
            "enum": [
              "centralized",
              "decentralized"
            ]
          },
          "escrow": {
            "description": "Whether this profile will escrow the certificate private keys",
            "type": "boolean",
            "nullable": true,
            "default": false
          },
          "p12passwordPolicy": {
            "description": "Password policy for the P12 file",
            "type": "string",
            "nullable": true
          },
          "p12passwordMode": {
            "description": "Whether the user will be required to input their PKCS#12 password upon enrollment",
            "type": "string",
            "nullable": true,
            "enum": [
              "random",
              "manual"
            ]
          },
          "p12storeEncryptionType": {
            "description": "Encryption type for the P12 file",
            "example": "AES",
            "nullable": true,
            "type": "string"
          },
          "showP12PasswordOnEnroll": {
            "description": "Whether the PKCS#12 password will be displayed to the user upon enrollment",
            "type": "boolean",
            "nullable": true
          },
          "showP12OnEnroll": {
            "description": "Whether the PKCS#12 file will be displayed to the user upon enrollment",
            "type": "boolean",
            "nullable": true
          },
          "showP12PasswordOnRecover": {
            "description": "Whether the PKCS#12 password will be displayed to the user upon recovery",
            "type": "boolean",
            "nullable": true
          },
          "showP12OnRecover": {
            "description": "Whether the PKCS#12 file will be displayed to the user upon recovery",
            "type": "boolean",
            "nullable": true
          },
          "keyAvailability": {
            "description": "Availability of the key in the requests (enroll, recover), as well as time during which a non-escrowed key is available for trigger retries",
            "allOf": [
              {
                "$ref": "#/components/schemas/FiniteDuration"
              }
            ]
          }
        }
      },
      "DataSourceInput": {
        "title": "Datasource Input",
        "type": "object",
        "description": "Input to execute a datasource in a flow",
        "properties": {
          "key": {
            "type": "string",
            "example": "LDAP_DS",
            "description": "Name of the datasource to execute for this step"
          },
          "value": {
            "description": "Value for this input",
            "allOf": [
              {
                "$ref": "#/components/schemas/ComputationRule"
              }
            ]
          }
        },
        "required": [
          "key"
        ]
      },
      "DataSourceFlowEntry": {
        "title": "Datasource Flow Entry",
        "type": "object",
        "description": "Parameters to execute a datasource in a flow",
        "properties": {
          "ds": {
            "type": "string",
            "example": "LDAP_DS",
            "description": "Name of the datasource to execute for this step"
          },
          "inputs": {
            "nullable": true,
            "description": "List of inputs to use for this datasource",
            "type": "array",
            "items": {
              "allOf": [
                {
                  "$ref": "#/components/schemas/DataSourceInput"
                }
              ]
            }
          },
          "stopOnSuccess": {
            "type": "boolean",
            "default": false,
            "description": "Stop the flow if this datasource is successfully executed"
          }
        },
        "required": [
          "ds"
        ]
      },
      "DataSourceFlow": {
        "title": "Datasource Flow",
        "type": "array",
        "description": "Representation of a datasource execution flow",
        "items": {
          "allOf": [
            {
              "$ref": "#/components/schemas/DataSourceFlowEntry"
            }
          ]
        }
      },
      "AcmeProfileResponse": {
        "title": "ACME Profile",
        "properties": {
          "_id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/Id"
              }
            ]
          },
          "module": {
            "type": "string",
            "enum": [
              "acme"
            ]
          },
          "name": {
            "type": "string"
          },
          "displayName": {
            "type": "array",
            "nullable": true,
            "items": {
              "$ref": "#/components/schemas/LocalizedString"
            }
          },
          "description": {
            "type": "array",
            "nullable": true,
            "items": {
              "$ref": "#/components/schemas/LocalizedString"
            }
          },
          "enabled": {
            "type": "boolean"
          },
          "timeout": {
            "type": "string",
            "format": "Finite Duration",
            "pattern": "^([0-9]+) *(ms|millisecond|milliseconds|s|second|seconds|m|minute|minutes|h|hour|hours|d|day|days)$",
            "example": "5 seconds"
          },
          "meta": {
            "nullable": true,
            "type": "object",
            "allOf": [
              {
                "$ref": "#/components/schemas/DirectoryMeta"
              }
            ]
          },
          "constraints": {
            "nullable": true,
            "type": "object",
            "allOf": [
              {
                "$ref": "#/components/schemas/CertificateRequestConstraints"
              }
            ]
          },
          "authorizationMethods": {
            "type": "array",
            "nullable": true,
            "items": {
              "type": "string"
            }
          },
          "pkiConnector": {
            "type": "string"
          },
          "http01Port": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "tlsAlpn01Port": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "authorizeShortName": {
            "type": "boolean"
          },
          "authorizeEmptyContact": {
            "type": "boolean"
          },
          "defaultContacts": {
            "type": "array",
            "nullable": true,
            "items": {
              "type": "string"
            }
          },
          "verifyRetryCount": {
            "type": "integer",
            "format": "int32"
          },
          "verifyRetryDelay": {
            "type": "string",
            "format": "Finite Duration",
            "pattern": "^([0-9]+) *(ms|millisecond|milliseconds|s|second|seconds|m|minute|minutes|h|hour|hours|d|day|days)$",
            "example": "5 seconds"
          },
          "requireTermsOfService": {
            "type": "boolean"
          },
          "renewalPeriod": {
            "nullable": true,
            "type": "string",
            "format": "Finite Duration",
            "pattern": "^([0-9]+) *(ms|millisecond|milliseconds|s|second|seconds|m|minute|minutes|h|hour|hours|d|day|days)$",
            "example": "5 seconds"
          },
          "csrDataMapping": {
            "nullable": true,
            "type": "object",
            "additionalProperties": {
              "type": "string"
            }
          },
          "maxCertificatePerHolderPolicy": {
            "nullable": true,
            "type": "object",
            "allOf": [
              {
                "$ref": "#/components/schemas/MaxCertificatePerHolderPolicy"
              }
            ]
          },
          "maxDnsName": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "proxy": {
            "type": "string",
            "nullable": true
          },
          "authorizationLevels": {
            "allOf": [
              {
                "$ref": "#/components/schemas/CertificateProfileAuthorizationLevels"
              }
            ]
          },
          "triggers": {
            "nullable": true,
            "type": "object",
            "allOf": [
              {
                "$ref": "#/components/schemas/CertificateProfileTriggers"
              }
            ]
          },
          "requestsPolicy": {
            "allOf": [
              {
                "$ref": "#/components/schemas/RequestsPolicy"
              }
            ]
          },
          "selfPermissions": {
            "allOf": [
              {
                "$ref": "#/components/schemas/CertificateProfileSelfPermissions"
              }
            ]
          },
          "certificateTemplate": {
            "nullable": true,
            "type": "object",
            "allOf": [
              {
                "$ref": "#/components/schemas/CertificateTemplate"
              }
            ]
          },
          "cryptoPolicy": {
            "allOf": [
              {
                "$ref": "#/components/schemas/ManagedCertificateProfileCryptoPolicy"
              }
            ]
          },
          "gradingPolicies": {
            "type": "array",
            "nullable": true,
            "items": {
              "type": "string"
            }
          },
          "dsFlow": {
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/DataSourceFlow"
              }
            ]
          },
          "thirdPartyDiscoverySync": {
            "nullable": true,
            "default": false,
            "type": "boolean",
            "description": "Available from `2.8.2`"
          }
        },
        "required": [
          "_id",
          "module",
          "name",
          "enabled",
          "timeout",
          "pkiConnector",
          "authorizeShortName",
          "authorizeEmptyContact",
          "verifyRetryCount",
          "verifyRetryDelay",
          "requireTermsOfService",
          "authorizationLevels",
          "requestsPolicy",
          "selfPermissions",
          "cryptoPolicy"
        ]
      },
      "ValidationRuleset": {
        "title": "Validation Ruleset",
        "description": "The validation ruleset used for auto validation",
        "properties": {
          "rules": {
            "description": "The validation rules for this ruleset",
            "type": "array",
            "items": {
              "type": "string",
              "description": "A validation rule to use for auto validation",
              "example": "{{csr.subject.cn.1}} contains \"evertrust\""
            }
          },
          "threshold": {
            "type": "integer",
            "description": "Number of rules to validation in order to allow enrollment",
            "example": 1
          }
        },
        "required": [
          "rules",
          "threshold"
        ]
      },
      "EstProfileResponse": {
        "title": "EST Profile",
        "properties": {
          "_id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/Id"
              }
            ]
          },
          "module": {
            "type": "string",
            "enum": [
              "est"
            ]
          },
          "name": {
            "type": "string"
          },
          "displayName": {
            "type": "array",
            "nullable": true,
            "items": {
              "$ref": "#/components/schemas/LocalizedString"
            }
          },
          "description": {
            "type": "array",
            "nullable": true,
            "items": {
              "$ref": "#/components/schemas/LocalizedString"
            }
          },
          "enabled": {
            "type": "boolean"
          },
          "ca": {
            "type": "string"
          },
          "constraints": {
            "nullable": true,
            "type": "object",
            "allOf": [
              {
                "$ref": "#/components/schemas/CertificateRequestConstraints"
              }
            ]
          },
          "pkiConnector": {
            "type": "string"
          },
          "csrDataMapping": {
            "nullable": true,
            "type": "object",
            "additionalProperties": {
              "type": "string"
            }
          },
          "maxCertificatePerHolderPolicy": {
            "nullable": true,
            "type": "object",
            "allOf": [
              {
                "$ref": "#/components/schemas/MaxCertificatePerHolderPolicy"
              }
            ]
          },
          "authorizationMode": {
            "type": "string",
            "enum": [
              "authorized",
              "x509",
              "challenge",
              "auto-validation"
            ]
          },
          "dnWhitelist": {
            "type": "boolean"
          },
          "enrollAuthorizedCas": {
            "type": "array",
            "nullable": true,
            "items": {
              "type": "string"
            }
          },
          "renewalAuthorizedCas": {
            "type": "array",
            "nullable": true,
            "items": {
              "type": "string"
            }
          },
          "renewalPeriod": {
            "nullable": true,
            "type": "string",
            "format": "Finite Duration",
            "pattern": "^([0-9]+) *(ms|millisecond|milliseconds|s|second|seconds|m|minute|minutes|h|hour|hours|d|day|days)$",
            "example": "5 seconds"
          },
          "authorizationLevels": {
            "allOf": [
              {
                "$ref": "#/components/schemas/CertificateProfileAuthorizationLevels"
              }
            ]
          },
          "triggers": {
            "nullable": true,
            "type": "object",
            "allOf": [
              {
                "$ref": "#/components/schemas/CertificateProfileTriggers"
              }
            ]
          },
          "requestsPolicy": {
            "allOf": [
              {
                "$ref": "#/components/schemas/RequestsPolicy"
              }
            ]
          },
          "passwordPolicy": {
            "type": "string",
            "nullable": true
          },
          "cryptoPolicy": {
            "allOf": [
              {
                "$ref": "#/components/schemas/ManagedCertificateProfileCryptoPolicy"
              }
            ]
          },
          "selfPermissions": {
            "allOf": [
              {
                "$ref": "#/components/schemas/CertificateProfileSelfPermissions"
              }
            ]
          },
          "certificateTemplate": {
            "nullable": true,
            "type": "object",
            "allOf": [
              {
                "$ref": "#/components/schemas/CertificateTemplate"
              }
            ]
          },
          "gradingPolicies": {
            "type": "array",
            "nullable": true,
            "items": {
              "type": "string"
            }
          },
          "validationRuleset": {
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/ValidationRuleset"
              }
            ]
          },
          "dsFlow": {
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/DataSourceFlow"
              }
            ]
          },
          "thirdPartyDiscoverySync": {
            "nullable": true,
            "default": false,
            "type": "boolean",
            "description": "Available from `2.8.2`"
          }
        },
        "required": [
          "_id",
          "module",
          "name",
          "enabled",
          "ca",
          "pkiConnector",
          "authorizationMode",
          "dnWhitelist",
          "authorizationLevels",
          "requestsPolicy",
          "cryptoPolicy",
          "selfPermissions"
        ]
      },
      "IntuneProfileResponse": {
        "title": "Intune Profile",
        "properties": {
          "_id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/Id"
              }
            ]
          },
          "module": {
            "type": "string",
            "enum": [
              "intune"
            ]
          },
          "name": {
            "type": "string"
          },
          "displayName": {
            "type": "array",
            "nullable": true,
            "items": {
              "$ref": "#/components/schemas/LocalizedString"
            }
          },
          "description": {
            "type": "array",
            "nullable": true,
            "items": {
              "$ref": "#/components/schemas/LocalizedString"
            }
          },
          "enabled": {
            "type": "boolean"
          },
          "mode": {
            "type": "string",
            "enum": [
              "ca",
              "ra"
            ]
          },
          "thirdPartyConnector": {
            "type": "string"
          },
          "pkiConnector": {
            "type": "string"
          },
          "renewalPeriod": {
            "nullable": true,
            "type": "string",
            "format": "Finite Duration",
            "pattern": "^([0-9]+) *(ms|millisecond|milliseconds|s|second|seconds|m|minute|minutes|h|hour|hours|d|day|days)$",
            "example": "5 seconds"
          },
          "constraints": {
            "nullable": true,
            "type": "object",
            "allOf": [
              {
                "$ref": "#/components/schemas/CertificateRequestConstraints"
              }
            ]
          },
          "csrDataMapping": {
            "nullable": true,
            "type": "object",
            "additionalProperties": {
              "type": "string"
            }
          },
          "scepRA": {
            "type": "string"
          },
          "caps": {
            "type": "array",
            "items": {
              "type": "string",
              "enum": [
                "AES",
                "SHA-256",
                "Renewal",
                "SHA-512",
                "SHA-1",
                "DES3"
              ]
            }
          },
          "postPKIOperation": {
            "type": "boolean",
            "nullable": true
          },
          "encryptionAlgorithm": {
            "type": "string"
          },
          "deviceIdField": {
            "nullable": true,
            "type": "string"
          },
          "deviceIdSeparator": {
            "type": "string",
            "nullable": true
          },
          "maxCertificatePerHolderPolicy": {
            "nullable": true,
            "type": "object",
            "allOf": [
              {
                "$ref": "#/components/schemas/MaxCertificatePerHolderPolicy"
              }
            ]
          },
          "authorizationLevels": {
            "allOf": [
              {
                "$ref": "#/components/schemas/CertificateProfileAuthorizationLevels"
              }
            ]
          },
          "triggers": {
            "nullable": true,
            "type": "object",
            "allOf": [
              {
                "$ref": "#/components/schemas/CertificateProfileTriggers"
              }
            ]
          },
          "requestsPolicy": {
            "allOf": [
              {
                "$ref": "#/components/schemas/RequestsPolicy"
              }
            ]
          },
          "selfPermissions": {
            "allOf": [
              {
                "$ref": "#/components/schemas/CertificateProfileSelfPermissions"
              }
            ]
          },
          "certificateTemplate": {
            "nullable": true,
            "type": "object",
            "allOf": [
              {
                "$ref": "#/components/schemas/CertificateTemplate"
              }
            ]
          },
          "cryptoPolicy": {
            "allOf": [
              {
                "$ref": "#/components/schemas/ManagedCertificateProfileCryptoPolicy"
              }
            ]
          },
          "gradingPolicies": {
            "type": "array",
            "nullable": true,
            "items": {
              "type": "string"
            }
          },
          "dsFlow": {
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/DataSourceFlow"
              }
            ]
          },
          "thirdPartyDiscoverySync": {
            "nullable": true,
            "default": false,
            "type": "boolean",
            "description": "Available from `2.8.2`"
          }
        },
        "required": [
          "_id",
          "module",
          "name",
          "enabled",
          "mode",
          "thirdPartyConnector",
          "pkiConnector",
          "scepRA",
          "caps",
          "encryptionAlgorithm",
          "authorizationLevels",
          "requestsPolicy",
          "selfPermissions",
          "cryptoPolicy"
        ]
      },
      "JamfProfileResponse": {
        "title": "JAMF Profile",
        "properties": {
          "_id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/Id"
              }
            ]
          },
          "module": {
            "type": "string",
            "enum": [
              "jamf"
            ]
          },
          "name": {
            "type": "string"
          },
          "displayName": {
            "type": "array",
            "nullable": true,
            "items": {
              "$ref": "#/components/schemas/LocalizedString"
            }
          },
          "description": {
            "type": "array",
            "nullable": true,
            "items": {
              "$ref": "#/components/schemas/LocalizedString"
            }
          },
          "enabled": {
            "type": "boolean"
          },
          "mode": {
            "type": "string",
            "enum": [
              "ca",
              "ra"
            ]
          },
          "thirdPartyConnector": {
            "type": "string"
          },
          "pkiConnector": {
            "type": "string"
          },
          "renewalPeriod": {
            "nullable": true,
            "type": "string",
            "format": "Finite Duration",
            "pattern": "^([0-9]+) *(ms|millisecond|milliseconds|s|second|seconds|m|minute|minutes|h|hour|hours|d|day|days)$",
            "example": "5 seconds"
          },
          "constraints": {
            "nullable": true,
            "type": "object",
            "allOf": [
              {
                "$ref": "#/components/schemas/CertificateRequestConstraints"
              }
            ]
          },
          "csrDataMapping": {
            "nullable": true,
            "type": "object",
            "additionalProperties": {
              "type": "string"
            }
          },
          "scepRA": {
            "type": "string"
          },
          "caps": {
            "type": "array",
            "items": {
              "type": "string",
              "enum": [
                "AES",
                "SHA-256",
                "Renewal",
                "SHA-512",
                "SHA-1",
                "DES3"
              ]
            }
          },
          "postPKIOperation": {
            "type": "boolean",
            "nullable": true
          },
          "encryptionAlgorithm": {
            "type": "string"
          },
          "deviceIdField": {
            "nullable": true,
            "type": "string"
          },
          "maxCertificatePerHolderPolicy": {
            "nullable": true,
            "type": "object",
            "allOf": [
              {
                "$ref": "#/components/schemas/MaxCertificatePerHolderPolicy"
              }
            ]
          },
          "authorizationLevels": {
            "allOf": [
              {
                "$ref": "#/components/schemas/CertificateProfileAuthorizationLevels"
              }
            ]
          },
          "triggers": {
            "nullable": true,
            "type": "object",
            "allOf": [
              {
                "$ref": "#/components/schemas/CertificateProfileTriggers"
              }
            ]
          },
          "passwordPolicy": {
            "type": "string",
            "nullable": true
          },
          "requestsPolicy": {
            "allOf": [
              {
                "$ref": "#/components/schemas/RequestsPolicy"
              }
            ]
          },
          "selfPermissions": {
            "allOf": [
              {
                "$ref": "#/components/schemas/CertificateProfileSelfPermissions"
              }
            ]
          },
          "certificateTemplate": {
            "nullable": true,
            "type": "object",
            "allOf": [
              {
                "$ref": "#/components/schemas/CertificateTemplate"
              }
            ]
          },
          "cryptoPolicy": {
            "allOf": [
              {
                "$ref": "#/components/schemas/ManagedCertificateProfileCryptoPolicy"
              }
            ]
          },
          "gradingPolicies": {
            "type": "array",
            "nullable": true,
            "items": {
              "type": "string"
            }
          },
          "dsFlow": {
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/DataSourceFlow"
              }
            ]
          },
          "thirdPartyDiscoverySync": {
            "nullable": true,
            "default": false,
            "type": "boolean",
            "description": "Available from `2.8.2`"
          }
        },
        "required": [
          "_id",
          "module",
          "name",
          "enabled",
          "mode",
          "thirdPartyConnector",
          "pkiConnector",
          "scepRA",
          "caps",
          "encryptionAlgorithm",
          "authorizationLevels",
          "requestsPolicy",
          "selfPermissions",
          "cryptoPolicy"
        ]
      },
      "ScepProfileResponse": {
        "title": "SCEP Profile",
        "properties": {
          "_id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/Id"
              }
            ]
          },
          "module": {
            "type": "string",
            "enum": [
              "scep"
            ]
          },
          "name": {
            "type": "string"
          },
          "displayName": {
            "type": "array",
            "nullable": true,
            "items": {
              "$ref": "#/components/schemas/LocalizedString"
            }
          },
          "description": {
            "type": "array",
            "nullable": true,
            "items": {
              "$ref": "#/components/schemas/LocalizedString"
            }
          },
          "enabled": {
            "type": "boolean"
          },
          "mode": {
            "type": "string",
            "enum": [
              "ca",
              "ra"
            ]
          },
          "scepRA": {
            "type": "string"
          },
          "caps": {
            "type": "array",
            "items": {
              "type": "string",
              "enum": [
                "AES",
                "SHA-256",
                "Renewal",
                "SHA-512",
                "SHA-1",
                "DES3"
              ]
            }
          },
          "postPKIOperation": {
            "type": "boolean",
            "nullable": true
          },
          "encryptionAlgorithm": {
            "type": "string"
          },
          "pkiConnector": {
            "type": "string"
          },
          "constraints": {
            "nullable": true,
            "type": "object",
            "allOf": [
              {
                "$ref": "#/components/schemas/CertificateRequestConstraints"
              }
            ]
          },
          "renewalPeriod": {
            "nullable": true,
            "type": "string",
            "format": "Finite Duration",
            "pattern": "^([0-9]+) *(ms|millisecond|milliseconds|s|second|seconds|m|minute|minutes|h|hour|hours|d|day|days)$",
            "example": "5 seconds"
          },
          "csrDataMapping": {
            "nullable": true,
            "type": "object",
            "additionalProperties": {
              "type": "string"
            }
          },
          "dnWhitelist": {
            "type": "boolean"
          },
          "authorizationMode": {
            "description": "The authorization mode for this profile:\n- `challenge`: a SCEP challenge must be used when submitting a request. \n- `authorized`: the challenge does not come from the challenge but are credentials 'login:password' hex encoded of an account with enroll permissions.\n- `ndes`: challenge requests are automatically generated by an account with enroll permissions.\n",
            "type": "string",
            "enum": [
              "challenge",
              "authorized",
              "ndes",
              "auto-validation"
            ]
          },
          "maxCertificatePerHolderPolicy": {
            "nullable": true,
            "type": "object",
            "allOf": [
              {
                "$ref": "#/components/schemas/MaxCertificatePerHolderPolicy"
              }
            ]
          },
          "authorizationLevels": {
            "allOf": [
              {
                "$ref": "#/components/schemas/CertificateProfileAuthorizationLevels"
              }
            ]
          },
          "triggers": {
            "nullable": true,
            "type": "object",
            "allOf": [
              {
                "$ref": "#/components/schemas/CertificateProfileTriggers"
              }
            ]
          },
          "passwordPolicy": {
            "type": "string",
            "nullable": true
          },
          "requestsPolicy": {
            "allOf": [
              {
                "$ref": "#/components/schemas/RequestsPolicy"
              }
            ]
          },
          "selfPermissions": {
            "allOf": [
              {
                "$ref": "#/components/schemas/CertificateProfileSelfPermissions"
              }
            ]
          },
          "certificateTemplate": {
            "nullable": true,
            "type": "object",
            "allOf": [
              {
                "$ref": "#/components/schemas/CertificateTemplate"
              }
            ]
          },
          "cryptoPolicy": {
            "allOf": [
              {
                "$ref": "#/components/schemas/ManagedCertificateProfileCryptoPolicy"
              }
            ]
          },
          "gradingPolicies": {
            "type": "array",
            "nullable": true,
            "items": {
              "type": "string"
            }
          },
          "validationRuleset": {
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/ValidationRuleset"
              }
            ]
          },
          "dsFlow": {
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/DataSourceFlow"
              }
            ]
          },
          "thirdPartyDiscoverySync": {
            "nullable": true,
            "default": false,
            "type": "boolean",
            "description": "Available from `2.8.2`"
          }
        },
        "required": [
          "_id",
          "module",
          "name",
          "enabled",
          "mode",
          "scepRA",
          "caps",
          "encryptionAlgorithm",
          "pkiConnector",
          "dnWhitelist",
          "authorizationMode",
          "authorizationLevels",
          "requestsPolicy",
          "selfPermissions",
          "cryptoPolicy"
        ]
      },
      "WcceProfileResponse": {
        "title": "WCCE Profile",
        "properties": {
          "_id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/Id"
              }
            ]
          },
          "module": {
            "type": "string",
            "enum": [
              "wcce"
            ]
          },
          "name": {
            "type": "string"
          },
          "displayName": {
            "type": "array",
            "nullable": true,
            "items": {
              "$ref": "#/components/schemas/LocalizedString"
            }
          },
          "description": {
            "type": "array",
            "nullable": true,
            "items": {
              "$ref": "#/components/schemas/LocalizedString"
            }
          },
          "enabled": {
            "type": "boolean"
          },
          "pkiConnector": {
            "type": "string"
          },
          "constraints": {
            "nullable": true,
            "type": "object",
            "allOf": [
              {
                "$ref": "#/components/schemas/CertificateRequestConstraints"
              }
            ]
          },
          "csrDataMapping": {
            "nullable": true,
            "type": "object",
            "additionalProperties": {
              "type": "string"
            }
          },
          "maxCertificatePerHolderPolicy": {
            "nullable": true,
            "type": "object",
            "allOf": [
              {
                "$ref": "#/components/schemas/MaxCertificatePerHolderPolicy"
              }
            ]
          },
          "authorizationLevels": {
            "allOf": [
              {
                "$ref": "#/components/schemas/CertificateProfileAuthorizationLevels"
              }
            ]
          },
          "triggers": {
            "nullable": true,
            "type": "object",
            "allOf": [
              {
                "$ref": "#/components/schemas/CertificateProfileTriggers"
              }
            ]
          },
          "requestsPolicy": {
            "allOf": [
              {
                "$ref": "#/components/schemas/RequestsPolicy"
              }
            ]
          },
          "selfPermissions": {
            "allOf": [
              {
                "$ref": "#/components/schemas/CertificateProfileSelfPermissions"
              }
            ]
          },
          "certificateTemplate": {
            "nullable": true,
            "type": "object",
            "allOf": [
              {
                "$ref": "#/components/schemas/CertificateTemplate"
              }
            ]
          },
          "cryptoPolicy": {
            "allOf": [
              {
                "$ref": "#/components/schemas/ManagedCertificateProfileCryptoPolicy"
              }
            ]
          },
          "gradingPolicies": {
            "type": "array",
            "nullable": true,
            "items": {
              "type": "string"
            }
          },
          "exchangeCertificate": {
            "type": "string",
            "nullable": true
          },
          "dsFlow": {
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/DataSourceFlow"
              }
            ]
          },
          "thirdPartyDiscoverySync": {
            "nullable": true,
            "default": false,
            "type": "boolean",
            "description": "Available from `2.8.2`"
          }
        },
        "required": [
          "_id",
          "module",
          "name",
          "enabled",
          "pkiConnector",
          "authorizationLevels",
          "requestsPolicy",
          "selfPermissions",
          "cryptoPolicy"
        ]
      },
      "WebRAProfileResponse": {
        "title": "WebRA Profile",
        "properties": {
          "_id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/Id"
              }
            ]
          },
          "module": {
            "type": "string",
            "enum": [
              "webra"
            ]
          },
          "name": {
            "type": "string"
          },
          "displayName": {
            "type": "array",
            "nullable": true,
            "items": {
              "$ref": "#/components/schemas/LocalizedString"
            }
          },
          "description": {
            "type": "array",
            "nullable": true,
            "items": {
              "$ref": "#/components/schemas/LocalizedString"
            }
          },
          "authorizationMode": {
            "type": "string",
            "description": "The authorization mode to use. \n`authorized` uses permissions to allow enrollment, \n`auto-validation` uses the validation ruleset,\n`auto-validation-authorized` uses the validation ruleset, and if enrollment is denied, uses the permissions\n",
            "enum": [
              "authorized",
              "auto-validation",
              "auto-validation-authorized"
            ]
          },
          "enabled": {
            "type": "boolean"
          },
          "pkiConnector": {
            "type": "string"
          },
          "csrDataMapping": {
            "nullable": true,
            "type": "object",
            "additionalProperties": {
              "type": "string"
            }
          },
          "maxCertificatePerHolderPolicy": {
            "nullable": true,
            "type": "object",
            "allOf": [
              {
                "$ref": "#/components/schemas/MaxCertificatePerHolderPolicy"
              }
            ]
          },
          "authorizationLevels": {
            "allOf": [
              {
                "$ref": "#/components/schemas/CertificateProfileAuthorizationLevels"
              }
            ]
          },
          "triggers": {
            "nullable": true,
            "type": "object",
            "allOf": [
              {
                "$ref": "#/components/schemas/CertificateProfileTriggers"
              }
            ]
          },
          "requestsPolicy": {
            "allOf": [
              {
                "$ref": "#/components/schemas/RequestsPolicy"
              }
            ]
          },
          "cryptoPolicy": {
            "allOf": [
              {
                "$ref": "#/components/schemas/ManagedCertificateProfileCryptoPolicy"
              }
            ]
          },
          "selfPermissions": {
            "allOf": [
              {
                "$ref": "#/components/schemas/CertificateProfileSelfPermissions"
              }
            ]
          },
          "certificateTemplate": {
            "nullable": true,
            "type": "object",
            "allOf": [
              {
                "$ref": "#/components/schemas/CertificateTemplate"
              }
            ]
          },
          "renewalPeriod": {
            "nullable": true,
            "type": "string",
            "format": "Finite Duration",
            "pattern": "^([0-9]+) *(ms|millisecond|milliseconds|s|second|seconds|m|minute|minutes|h|hour|hours|d|day|days)$",
            "example": "5 seconds"
          },
          "gradingPolicies": {
            "type": "array",
            "nullable": true,
            "items": {
              "type": "string"
            }
          },
          "validationRuleset": {
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/ValidationRuleset"
              }
            ]
          },
          "dsFlow": {
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/DataSourceFlow"
              }
            ]
          },
          "thirdPartyDiscoverySync": {
            "nullable": true,
            "default": false,
            "type": "boolean",
            "description": "Available from `2.8.2`"
          }
        },
        "required": [
          "_id",
          "module",
          "name",
          "enabled",
          "pkiConnector",
          "authorizationLevels",
          "authorizationMode",
          "requestsPolicy",
          "cryptoPolicy",
          "selfPermissions"
        ]
      },
      "IntunePKCSProfileResponse": {
        "title": "Intune PKCS Profile",
        "properties": {
          "_id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/Id"
              }
            ]
          },
          "module": {
            "type": "string",
            "enum": [
              "intunepkcs"
            ]
          },
          "name": {
            "type": "string"
          },
          "displayName": {
            "type": "array",
            "nullable": true,
            "items": {
              "$ref": "#/components/schemas/LocalizedString"
            }
          },
          "description": {
            "type": "array",
            "nullable": true,
            "items": {
              "$ref": "#/components/schemas/LocalizedString"
            }
          },
          "enabled": {
            "type": "boolean"
          },
          "pkiConnector": {
            "type": "string"
          },
          "thirdPartyConnector": {
            "type": "string"
          },
          "constraints": {
            "nullable": true,
            "type": "object",
            "allOf": [
              {
                "$ref": "#/components/schemas/CertificateRequestConstraints"
              }
            ]
          },
          "csrDataMapping": {
            "nullable": true,
            "type": "object",
            "additionalProperties": {
              "type": "string"
            }
          },
          "maxCertificatePerHolderPolicy": {
            "nullable": true,
            "type": "object",
            "allOf": [
              {
                "$ref": "#/components/schemas/MaxCertificatePerHolderPolicy"
              }
            ]
          },
          "authorizationLevels": {
            "allOf": [
              {
                "$ref": "#/components/schemas/CertificateProfileAuthorizationLevels"
              }
            ]
          },
          "triggers": {
            "nullable": true,
            "type": "object",
            "allOf": [
              {
                "$ref": "#/components/schemas/CertificateProfileTriggers"
              }
            ]
          },
          "requestsPolicy": {
            "allOf": [
              {
                "$ref": "#/components/schemas/RequestsPolicy"
              }
            ]
          },
          "cryptoPolicy": {
            "allOf": [
              {
                "$ref": "#/components/schemas/ManagedCertificateProfileCryptoPolicy"
              }
            ]
          },
          "selfPermissions": {
            "allOf": [
              {
                "$ref": "#/components/schemas/CertificateProfileSelfPermissions"
              }
            ]
          },
          "certificateTemplate": {
            "nullable": true,
            "type": "object",
            "allOf": [
              {
                "$ref": "#/components/schemas/CertificateTemplate"
              }
            ]
          },
          "gradingPolicies": {
            "type": "array",
            "nullable": true,
            "items": {
              "type": "string"
            }
          },
          "dsFlow": {
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/DataSourceFlow"
              }
            ]
          },
          "thirdPartyDiscoverySync": {
            "nullable": true,
            "default": false,
            "type": "boolean",
            "description": "Available from `2.8.2`"
          }
        },
        "required": [
          "_id",
          "module",
          "name",
          "enabled",
          "pkiConnector",
          "thirdPartyConnector",
          "authorizationLevels",
          "requestsPolicy",
          "cryptoPolicy",
          "selfPermissions"
        ]
      },
      "AcmeExternalProfileResponse": {
        "title": "ACME External Profile",
        "properties": {
          "_id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/Id"
              }
            ]
          },
          "module": {
            "type": "string",
            "enum": [
              "acme-external"
            ]
          },
          "name": {
            "type": "string"
          },
          "displayName": {
            "type": "array",
            "nullable": true,
            "items": {
              "$ref": "#/components/schemas/LocalizedString"
            }
          },
          "description": {
            "type": "array",
            "nullable": true,
            "items": {
              "$ref": "#/components/schemas/LocalizedString"
            }
          },
          "enabled": {
            "type": "boolean"
          },
          "constraints": {
            "nullable": true,
            "type": "object",
            "allOf": [
              {
                "$ref": "#/components/schemas/CertificateRequestConstraints"
              }
            ]
          },
          "authorizationMethods": {
            "type": "array",
            "nullable": true,
            "items": {
              "type": "string"
            }
          },
          "pkiConnector": {
            "type": "string"
          },
          "acmeUrl": {
            "type": "string"
          },
          "requireEAB": {
            "type": "boolean"
          },
          "maxCertificatePerHolderPolicy": {
            "nullable": true,
            "type": "object",
            "allOf": [
              {
                "$ref": "#/components/schemas/MaxCertificatePerHolderPolicy"
              }
            ]
          },
          "authorizedCas": {
            "type": "array",
            "nullable": true,
            "items": {
              "type": "string"
            }
          },
          "renewalPeriod": {
            "nullable": true,
            "type": "string",
            "format": "Finite Duration",
            "pattern": "^([0-9]+) *(ms|millisecond|milliseconds|s|second|seconds|m|minute|minutes|h|hour|hours|d|day|days)$",
            "example": "5 seconds"
          },
          "authorizationLevels": {
            "allOf": [
              {
                "$ref": "#/components/schemas/CertificateProfileAuthorizationLevels"
              }
            ]
          },
          "triggers": {
            "nullable": true,
            "type": "object",
            "allOf": [
              {
                "$ref": "#/components/schemas/CertificateProfileTriggers"
              }
            ]
          },
          "requestsPolicy": {
            "allOf": [
              {
                "$ref": "#/components/schemas/RequestsPolicy"
              }
            ]
          },
          "selfPermissions": {
            "allOf": [
              {
                "$ref": "#/components/schemas/CertificateProfileSelfPermissions"
              }
            ]
          },
          "certificateTemplate": {
            "nullable": true,
            "type": "object",
            "allOf": [
              {
                "$ref": "#/components/schemas/CertificateTemplate"
              }
            ]
          },
          "cryptoPolicy": {
            "allOf": [
              {
                "$ref": "#/components/schemas/ManagedCertificateProfileCryptoPolicy"
              }
            ]
          },
          "gradingPolicies": {
            "type": "array",
            "nullable": true,
            "items": {
              "type": "string"
            }
          },
          "dsFlow": {
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/DataSourceFlow"
              }
            ]
          },
          "thirdPartyDiscoverySync": {
            "nullable": true,
            "default": false,
            "type": "boolean",
            "description": "Available from `2.8.2`"
          }
        },
        "required": [
          "_id",
          "module",
          "name",
          "enabled",
          "pkiConnector",
          "requireEAB",
          "authorizationMethods",
          "authorizedCas",
          "authorizationLevels",
          "requestsPolicy",
          "selfPermissions",
          "cryptoPolicy"
        ]
      },
      "CrmpProfileResponse": {
        "title": "CRMP Profile",
        "properties": {
          "_id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/Id"
              }
            ]
          },
          "module": {
            "type": "string",
            "enum": [
              "crmp"
            ]
          },
          "name": {
            "type": "string"
          },
          "displayName": {
            "type": "array",
            "nullable": true,
            "items": {
              "$ref": "#/components/schemas/LocalizedString"
            }
          },
          "description": {
            "type": "array",
            "nullable": true,
            "items": {
              "$ref": "#/components/schemas/LocalizedString"
            }
          },
          "pkiConnector": {
            "type": "string"
          },
          "maxCertificatePerHolderPolicy": {
            "nullable": true,
            "type": "object",
            "allOf": [
              {
                "$ref": "#/components/schemas/MaxCertificatePerHolderPolicy"
              }
            ]
          },
          "authorizationLevels": {
            "allOf": [
              {
                "$ref": "#/components/schemas/CertificateProfileAuthorizationLevels"
              }
            ]
          },
          "triggers": {
            "nullable": true,
            "type": "object",
            "allOf": [
              {
                "$ref": "#/components/schemas/CertificateProfileTriggers"
              }
            ]
          },
          "requestsPolicy": {
            "allOf": [
              {
                "$ref": "#/components/schemas/RequestsPolicy"
              }
            ]
          },
          "enabled": {
            "type": "boolean"
          },
          "cryptoPolicy": {
            "allOf": [
              {
                "$ref": "#/components/schemas/ManagedCertificateProfileCryptoPolicy"
              }
            ]
          },
          "selfPermissions": {
            "allOf": [
              {
                "$ref": "#/components/schemas/CertificateProfileSelfPermissions"
              }
            ]
          },
          "dataFieldIdentifier": {
            "nullable": true,
            "description": "Only when escrow is enabled in the cryptoPolicy,\npossible values are: `rfc822name`, `othername_upn`, `mail`, `uid`, `cn` and `label.<label_name>`.\nIf a label is used, it should be defined in the certificateTemplate\n",
            "type": "string",
            "pattern": "(rfc822name|othername_upn|mail|uid|cn|label\\..+)"
          },
          "constraints": {
            "nullable": true,
            "type": "object",
            "allOf": [
              {
                "$ref": "#/components/schemas/CertificateRequestConstraints"
              }
            ]
          },
          "version": {
            "type": "integer"
          },
          "certificateTemplate": {
            "nullable": true,
            "type": "object",
            "allOf": [
              {
                "$ref": "#/components/schemas/CertificateTemplate"
              }
            ]
          },
          "gradingPolicies": {
            "type": "array",
            "nullable": true,
            "items": {
              "type": "string"
            }
          },
          "dsFlow": {
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/DataSourceFlow"
              }
            ]
          },
          "thirdPartyDiscoverySync": {
            "nullable": true,
            "default": false,
            "type": "boolean",
            "description": "Available from `2.8.2`"
          }
        },
        "required": [
          "_id",
          "name",
          "module",
          "pkiConnector",
          "authorizationLevels",
          "requestsPolicy",
          "enabled",
          "cryptoPolicy",
          "selfPermissions",
          "version"
        ]
      },
      "MonitoredCertificateProfileCryptoPolicy": {
        "title": "Monitored Certificate profile crypto policy",
        "properties": {
          "authorizedKeyTypes": {
            "description": "List of authorized key types for enrollment",
            "example": [
              "rsa-2048",
              "rsa-3072",
              "rsa-4096"
            ],
            "type": "array",
            "nullable": true,
            "items": {
              "allOf": [
                {
                  "$ref": "#/components/schemas/KeyType"
                }
              ]
            }
          },
          "escrow": {
            "description": "Whether this profile will escrow the certificate private keys",
            "type": "boolean",
            "nullable": true,
            "default": false
          },
          "p12passwordPolicy": {
            "description": "Password policy for the P12 file",
            "type": "string",
            "nullable": true
          },
          "p12passwordMode": {
            "description": "Whether the user will be required to input their PKCS#12 password upon enrollment",
            "type": "string",
            "nullable": true,
            "enum": [
              "random",
              "manual"
            ]
          },
          "p12storeEncryptionType": {
            "description": "Encryption type for the P12 file",
            "example": "AES",
            "nullable": true,
            "type": "string"
          },
          "showP12PasswordOnRecover": {
            "description": "Whether the PKCS#12 password will be displayed to the user upon recovery",
            "type": "boolean",
            "nullable": true
          },
          "showP12OnRecover": {
            "description": "Whether the PKCS#12 file will be displayed to the user upon recovery",
            "type": "boolean",
            "nullable": true
          },
          "keyAvailability": {
            "description": "Availability of the key in the requests (enroll, recover), as well as time during which a non-escrowed key is available for trigger retries",
            "allOf": [
              {
                "$ref": "#/components/schemas/FiniteDuration"
              }
            ]
          }
        }
      },
      "MonitoredProfile": {
        "title": "Monitored Profile",
        "properties": {
          "module": {
            "type": "string",
            "enum": [
              "monitored"
            ]
          },
          "name": {
            "type": "string"
          },
          "displayName": {
            "type": "array",
            "nullable": true,
            "items": {
              "$ref": "#/components/schemas/LocalizedString"
            }
          },
          "description": {
            "type": "array",
            "nullable": true,
            "items": {
              "$ref": "#/components/schemas/LocalizedString"
            }
          },
          "enabled": {
            "type": "boolean"
          },
          "authorizationLevels": {
            "allOf": [
              {
                "$ref": "#/components/schemas/CertificateProfileAuthorizationLevels"
              }
            ]
          },
          "triggers": {
            "nullable": true,
            "type": "object",
            "allOf": [
              {
                "$ref": "#/components/schemas/CertificateProfileTriggers"
              }
            ]
          },
          "requestsPolicy": {
            "allOf": [
              {
                "$ref": "#/components/schemas/RequestsPolicy"
              }
            ]
          },
          "cryptoPolicy": {
            "allOf": [
              {
                "$ref": "#/components/schemas/MonitoredCertificateProfileCryptoPolicy"
              }
            ]
          },
          "selfPermissions": {
            "allOf": [
              {
                "$ref": "#/components/schemas/CertificateProfileSelfPermissions"
              }
            ]
          },
          "certificateTemplate": {
            "nullable": true,
            "type": "object",
            "allOf": [
              {
                "$ref": "#/components/schemas/CertificateTemplate"
              }
            ]
          },
          "gradingPolicies": {
            "type": "array",
            "nullable": true,
            "items": {
              "type": "string"
            }
          }
        },
        "required": [
          "module",
          "name",
          "enabled",
          "authorizationLevels",
          "requestsPolicy",
          "cryptoPolicy",
          "selfPermissions"
        ]
      },
      "MonitoredProfileResponse": {
        "title": "Monitored Profile",
        "allOf": [
          {
            "$ref": "#/components/schemas/MonitoredProfile"
          }
        ],
        "properties": {
          "_id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/Id"
              }
            ]
          }
        },
        "required": [
          "_id",
          "module",
          "name",
          "enabled",
          "authorizationLevels",
          "requestsPolicy",
          "cryptoPolicy",
          "selfPermissions"
        ]
      },
      "CertificateProfileResponses": {
        "oneOf": [
          {
            "$ref": "#/components/schemas/AcmeProfileResponse"
          },
          {
            "$ref": "#/components/schemas/EstProfileResponse"
          },
          {
            "$ref": "#/components/schemas/IntuneProfileResponse"
          },
          {
            "$ref": "#/components/schemas/JamfProfileResponse"
          },
          {
            "$ref": "#/components/schemas/ScepProfileResponse"
          },
          {
            "$ref": "#/components/schemas/WcceProfileResponse"
          },
          {
            "$ref": "#/components/schemas/WebRAProfileResponse"
          },
          {
            "$ref": "#/components/schemas/IntunePKCSProfileResponse"
          },
          {
            "$ref": "#/components/schemas/AcmeExternalProfileResponse"
          },
          {
            "$ref": "#/components/schemas/CrmpProfileResponse"
          },
          {
            "$ref": "#/components/schemas/MonitoredProfileResponse"
          }
        ]
      },
      "CertProfile005": {
        "allOf": [
          {
            "$ref": "#/components/schemas/BasicError"
          }
        ],
        "description": "Invalid Module",
        "properties": {
          "error": {
            "enum": [
              "CERT-PROFILE-005"
            ]
          },
          "message": {
            "enum": [
              "Invalid Module"
            ]
          },
          "title": {
            "enum": [
              "Invalid Module"
            ]
          }
        },
        "title": "CERT-PROFILE-005",
        "required": [
          "error",
          "message",
          "title"
        ]
      },
      "CertProfile001": {
        "allOf": [
          {
            "$ref": "#/components/schemas/BasicError"
          }
        ],
        "description": "Unexpected Error",
        "properties": {
          "error": {
            "enum": [
              "CERT-PROFILE-001"
            ]
          },
          "message": {
            "enum": [
              "Unexpected Error"
            ]
          },
          "title": {
            "enum": [
              "Unexpected Error"
            ]
          }
        },
        "title": "CERT-PROFILE-001",
        "required": [
          "error",
          "message",
          "title"
        ]
      },
      "AcmeProfile": {
        "title": "ACME Profile",
        "properties": {
          "module": {
            "type": "string",
            "enum": [
              "acme"
            ]
          },
          "name": {
            "type": "string"
          },
          "displayName": {
            "type": "array",
            "nullable": true,
            "items": {
              "$ref": "#/components/schemas/LocalizedString"
            }
          },
          "description": {
            "type": "array",
            "nullable": true,
            "items": {
              "$ref": "#/components/schemas/LocalizedString"
            }
          },
          "enabled": {
            "type": "boolean"
          },
          "timeout": {
            "type": "string",
            "format": "Finite Duration",
            "pattern": "^([0-9]+) *(ms|millisecond|milliseconds|s|second|seconds|m|minute|minutes|h|hour|hours|d|day|days)$",
            "example": "5 seconds"
          },
          "meta": {
            "nullable": true,
            "type": "object",
            "allOf": [
              {
                "$ref": "#/components/schemas/DirectoryMeta"
              }
            ]
          },
          "constraints": {
            "nullable": true,
            "type": "object",
            "allOf": [
              {
                "$ref": "#/components/schemas/CertificateRequestConstraints"
              }
            ]
          },
          "authorizationMethods": {
            "type": "array",
            "nullable": true,
            "items": {
              "type": "string"
            }
          },
          "pkiConnector": {
            "type": "string"
          },
          "http01Port": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "tlsAlpn01Port": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "authorizeShortName": {
            "type": "boolean"
          },
          "authorizeEmptyContact": {
            "type": "boolean"
          },
          "defaultContacts": {
            "type": "array",
            "nullable": true,
            "items": {
              "type": "string"
            }
          },
          "verifyRetryCount": {
            "type": "integer",
            "format": "int32"
          },
          "verifyRetryDelay": {
            "type": "string",
            "format": "Finite Duration",
            "pattern": "^([0-9]+) *(ms|millisecond|milliseconds|s|second|seconds|m|minute|minutes|h|hour|hours|d|day|days)$",
            "example": "5 seconds"
          },
          "requireTermsOfService": {
            "type": "boolean"
          },
          "renewalPeriod": {
            "nullable": true,
            "type": "string",
            "format": "Finite Duration",
            "pattern": "^([0-9]+) *(ms|millisecond|milliseconds|s|second|seconds|m|minute|minutes|h|hour|hours|d|day|days)$",
            "example": "5 seconds"
          },
          "csrDataMapping": {
            "nullable": true,
            "type": "object",
            "additionalProperties": {
              "type": "string"
            }
          },
          "maxCertificatePerHolderPolicy": {
            "nullable": true,
            "type": "object",
            "allOf": [
              {
                "$ref": "#/components/schemas/MaxCertificatePerHolderPolicy"
              }
            ]
          },
          "maxDnsName": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "proxy": {
            "type": "string",
            "nullable": true
          },
          "authorizationLevels": {
            "allOf": [
              {
                "$ref": "#/components/schemas/CertificateProfileAuthorizationLevels"
              }
            ]
          },
          "triggers": {
            "nullable": true,
            "type": "object",
            "allOf": [
              {
                "$ref": "#/components/schemas/CertificateProfileTriggers"
              }
            ]
          },
          "requestsPolicy": {
            "allOf": [
              {
                "$ref": "#/components/schemas/RequestsPolicy"
              }
            ]
          },
          "selfPermissions": {
            "allOf": [
              {
                "$ref": "#/components/schemas/CertificateProfileSelfPermissions"
              }
            ]
          },
          "certificateTemplate": {
            "nullable": true,
            "type": "object",
            "allOf": [
              {
                "$ref": "#/components/schemas/CertificateTemplate"
              }
            ]
          },
          "cryptoPolicy": {
            "allOf": [
              {
                "$ref": "#/components/schemas/ManagedCertificateProfileCryptoPolicy"
              }
            ]
          },
          "gradingPolicies": {
            "type": "array",
            "nullable": true,
            "items": {
              "type": "string"
            }
          },
          "dsFlow": {
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/DataSourceFlow"
              }
            ]
          },
          "thirdPartyDiscoverySync": {
            "nullable": true,
            "default": false,
            "type": "boolean",
            "description": "Available from `2.8.2`"
          }
        },
        "required": [
          "module",
          "name",
          "enabled",
          "timeout",
          "pkiConnector",
          "authorizeShortName",
          "authorizeEmptyContact",
          "verifyRetryCount",
          "verifyRetryDelay",
          "requireTermsOfService",
          "authorizationLevels",
          "requestsPolicy",
          "selfPermissions",
          "cryptoPolicy"
        ]
      },
      "EstProfile": {
        "title": "EST Profile",
        "properties": {
          "module": {
            "type": "string",
            "enum": [
              "est"
            ]
          },
          "name": {
            "type": "string"
          },
          "displayName": {
            "type": "array",
            "nullable": true,
            "items": {
              "$ref": "#/components/schemas/LocalizedString"
            }
          },
          "description": {
            "type": "array",
            "nullable": true,
            "items": {
              "$ref": "#/components/schemas/LocalizedString"
            }
          },
          "enabled": {
            "type": "boolean"
          },
          "ca": {
            "type": "string"
          },
          "constraints": {
            "nullable": true,
            "type": "object",
            "allOf": [
              {
                "$ref": "#/components/schemas/CertificateRequestConstraints"
              }
            ]
          },
          "pkiConnector": {
            "type": "string"
          },
          "csrDataMapping": {
            "nullable": true,
            "type": "object",
            "additionalProperties": {
              "type": "string"
            }
          },
          "maxCertificatePerHolderPolicy": {
            "nullable": true,
            "type": "object",
            "allOf": [
              {
                "$ref": "#/components/schemas/MaxCertificatePerHolderPolicy"
              }
            ]
          },
          "authorizationMode": {
            "type": "string",
            "enum": [
              "authorized",
              "x509",
              "challenge",
              "auto-validation"
            ]
          },
          "dnWhitelist": {
            "type": "boolean"
          },
          "enrollAuthorizedCas": {
            "type": "array",
            "nullable": true,
            "items": {
              "type": "string"
            }
          },
          "renewalAuthorizedCas": {
            "type": "array",
            "nullable": true,
            "items": {
              "type": "string"
            }
          },
          "renewalPeriod": {
            "nullable": true,
            "type": "string",
            "format": "Finite Duration",
            "pattern": "^([0-9]+) *(ms|millisecond|milliseconds|s|second|seconds|m|minute|minutes|h|hour|hours|d|day|days)$",
            "example": "5 seconds"
          },
          "authorizationLevels": {
            "allOf": [
              {
                "$ref": "#/components/schemas/CertificateProfileAuthorizationLevels"
              }
            ]
          },
          "triggers": {
            "nullable": true,
            "type": "object",
            "allOf": [
              {
                "$ref": "#/components/schemas/CertificateProfileTriggers"
              }
            ]
          },
          "requestsPolicy": {
            "allOf": [
              {
                "$ref": "#/components/schemas/RequestsPolicy"
              }
            ]
          },
          "passwordPolicy": {
            "type": "string",
            "nullable": true
          },
          "cryptoPolicy": {
            "allOf": [
              {
                "$ref": "#/components/schemas/ManagedCertificateProfileCryptoPolicy"
              }
            ]
          },
          "selfPermissions": {
            "allOf": [
              {
                "$ref": "#/components/schemas/CertificateProfileSelfPermissions"
              }
            ]
          },
          "certificateTemplate": {
            "nullable": true,
            "type": "object",
            "allOf": [
              {
                "$ref": "#/components/schemas/CertificateTemplate"
              }
            ]
          },
          "gradingPolicies": {
            "type": "array",
            "nullable": true,
            "items": {
              "type": "string"
            }
          },
          "validationRuleset": {
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/ValidationRuleset"
              }
            ]
          },
          "dsFlow": {
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/DataSourceFlow"
              }
            ]
          },
          "thirdPartyDiscoverySync": {
            "nullable": true,
            "default": false,
            "type": "boolean",
            "description": "Available from `2.8.2`"
          }
        },
        "required": [
          "module",
          "name",
          "enabled",
          "ca",
          "pkiConnector",
          "authorizationMode",
          "dnWhitelist",
          "authorizationLevels",
          "requestsPolicy",
          "cryptoPolicy",
          "selfPermissions"
        ]
      },
      "IntuneProfile": {
        "title": "Intune Profile",
        "properties": {
          "module": {
            "type": "string",
            "enum": [
              "intune"
            ]
          },
          "name": {
            "type": "string"
          },
          "displayName": {
            "type": "array",
            "nullable": true,
            "items": {
              "$ref": "#/components/schemas/LocalizedString"
            }
          },
          "description": {
            "type": "array",
            "nullable": true,
            "items": {
              "$ref": "#/components/schemas/LocalizedString"
            }
          },
          "enabled": {
            "type": "boolean"
          },
          "mode": {
            "type": "string",
            "enum": [
              "ca",
              "ra"
            ]
          },
          "thirdPartyConnector": {
            "type": "string"
          },
          "pkiConnector": {
            "type": "string"
          },
          "renewalPeriod": {
            "nullable": true,
            "type": "string",
            "format": "Finite Duration",
            "pattern": "^([0-9]+) *(ms|millisecond|milliseconds|s|second|seconds|m|minute|minutes|h|hour|hours|d|day|days)$",
            "example": "5 seconds"
          },
          "constraints": {
            "nullable": true,
            "type": "object",
            "allOf": [
              {
                "$ref": "#/components/schemas/CertificateRequestConstraints"
              }
            ]
          },
          "csrDataMapping": {
            "nullable": true,
            "type": "object",
            "additionalProperties": {
              "type": "string"
            }
          },
          "scepRA": {
            "type": "string"
          },
          "caps": {
            "type": "array",
            "items": {
              "type": "string",
              "enum": [
                "AES",
                "SHA-256",
                "Renewal",
                "SHA-512",
                "SHA-1",
                "DES3"
              ]
            }
          },
          "postPKIOperation": {
            "type": "boolean",
            "nullable": true
          },
          "encryptionAlgorithm": {
            "type": "string"
          },
          "deviceIdField": {
            "nullable": true,
            "type": "string"
          },
          "deviceIdSeparator": {
            "type": "string",
            "nullable": true
          },
          "maxCertificatePerHolderPolicy": {
            "nullable": true,
            "type": "object",
            "allOf": [
              {
                "$ref": "#/components/schemas/MaxCertificatePerHolderPolicy"
              }
            ]
          },
          "authorizationLevels": {
            "allOf": [
              {
                "$ref": "#/components/schemas/CertificateProfileAuthorizationLevels"
              }
            ]
          },
          "triggers": {
            "nullable": true,
            "type": "object",
            "allOf": [
              {
                "$ref": "#/components/schemas/CertificateProfileTriggers"
              }
            ]
          },
          "requestsPolicy": {
            "allOf": [
              {
                "$ref": "#/components/schemas/RequestsPolicy"
              }
            ]
          },
          "selfPermissions": {
            "allOf": [
              {
                "$ref": "#/components/schemas/CertificateProfileSelfPermissions"
              }
            ]
          },
          "certificateTemplate": {
            "nullable": true,
            "type": "object",
            "allOf": [
              {
                "$ref": "#/components/schemas/CertificateTemplate"
              }
            ]
          },
          "cryptoPolicy": {
            "allOf": [
              {
                "$ref": "#/components/schemas/ManagedCertificateProfileCryptoPolicy"
              }
            ]
          },
          "gradingPolicies": {
            "type": "array",
            "nullable": true,
            "items": {
              "type": "string"
            }
          },
          "dsFlow": {
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/DataSourceFlow"
              }
            ]
          },
          "thirdPartyDiscoverySync": {
            "nullable": true,
            "default": false,
            "type": "boolean",
            "description": "Available from `2.8.2`"
          }
        },
        "required": [
          "module",
          "name",
          "enabled",
          "mode",
          "thirdPartyConnector",
          "pkiConnector",
          "scepRA",
          "caps",
          "encryptionAlgorithm",
          "authorizationLevels",
          "requestsPolicy",
          "selfPermissions",
          "cryptoPolicy"
        ]
      },
      "JamfProfile": {
        "title": "JAMF Profile",
        "properties": {
          "module": {
            "type": "string",
            "enum": [
              "jamf"
            ]
          },
          "name": {
            "type": "string"
          },
          "displayName": {
            "type": "array",
            "nullable": true,
            "items": {
              "$ref": "#/components/schemas/LocalizedString"
            }
          },
          "description": {
            "type": "array",
            "nullable": true,
            "items": {
              "$ref": "#/components/schemas/LocalizedString"
            }
          },
          "enabled": {
            "type": "boolean"
          },
          "mode": {
            "type": "string",
            "enum": [
              "ca",
              "ra"
            ]
          },
          "thirdPartyConnector": {
            "type": "string"
          },
          "pkiConnector": {
            "type": "string"
          },
          "renewalPeriod": {
            "nullable": true,
            "type": "string",
            "format": "Finite Duration",
            "pattern": "^([0-9]+) *(ms|millisecond|milliseconds|s|second|seconds|m|minute|minutes|h|hour|hours|d|day|days)$",
            "example": "5 seconds"
          },
          "constraints": {
            "nullable": true,
            "type": "object",
            "allOf": [
              {
                "$ref": "#/components/schemas/CertificateRequestConstraints"
              }
            ]
          },
          "csrDataMapping": {
            "nullable": true,
            "type": "object",
            "additionalProperties": {
              "type": "string"
            }
          },
          "scepRA": {
            "type": "string"
          },
          "caps": {
            "type": "array",
            "items": {
              "type": "string",
              "enum": [
                "AES",
                "SHA-256",
                "Renewal",
                "SHA-512",
                "SHA-1",
                "DES3"
              ]
            }
          },
          "postPKIOperation": {
            "type": "boolean",
            "nullable": true
          },
          "encryptionAlgorithm": {
            "type": "string"
          },
          "deviceIdField": {
            "nullable": true,
            "type": "string"
          },
          "maxCertificatePerHolderPolicy": {
            "nullable": true,
            "type": "object",
            "allOf": [
              {
                "$ref": "#/components/schemas/MaxCertificatePerHolderPolicy"
              }
            ]
          },
          "authorizationLevels": {
            "allOf": [
              {
                "$ref": "#/components/schemas/CertificateProfileAuthorizationLevels"
              }
            ]
          },
          "triggers": {
            "nullable": true,
            "type": "object",
            "allOf": [
              {
                "$ref": "#/components/schemas/CertificateProfileTriggers"
              }
            ]
          },
          "passwordPolicy": {
            "type": "string",
            "nullable": true
          },
          "requestsPolicy": {
            "allOf": [
              {
                "$ref": "#/components/schemas/RequestsPolicy"
              }
            ]
          },
          "selfPermissions": {
            "allOf": [
              {
                "$ref": "#/components/schemas/CertificateProfileSelfPermissions"
              }
            ]
          },
          "certificateTemplate": {
            "nullable": true,
            "type": "object",
            "allOf": [
              {
                "$ref": "#/components/schemas/CertificateTemplate"
              }
            ]
          },
          "cryptoPolicy": {
            "allOf": [
              {
                "$ref": "#/components/schemas/ManagedCertificateProfileCryptoPolicy"
              }
            ]
          },
          "gradingPolicies": {
            "type": "array",
            "nullable": true,
            "items": {
              "type": "string"
            }
          },
          "dsFlow": {
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/DataSourceFlow"
              }
            ]
          },
          "thirdPartyDiscoverySync": {
            "nullable": true,
            "default": false,
            "type": "boolean",
            "description": "Available from `2.8.2`"
          }
        },
        "required": [
          "module",
          "name",
          "enabled",
          "mode",
          "thirdPartyConnector",
          "pkiConnector",
          "scepRA",
          "caps",
          "encryptionAlgorithm",
          "authorizationLevels",
          "requestsPolicy",
          "selfPermissions",
          "cryptoPolicy"
        ]
      },
      "ScepProfile": {
        "title": "SCEP Profile",
        "properties": {
          "module": {
            "type": "string",
            "enum": [
              "scep"
            ]
          },
          "name": {
            "type": "string"
          },
          "displayName": {
            "type": "array",
            "nullable": true,
            "items": {
              "$ref": "#/components/schemas/LocalizedString"
            }
          },
          "description": {
            "type": "array",
            "nullable": true,
            "items": {
              "$ref": "#/components/schemas/LocalizedString"
            }
          },
          "enabled": {
            "type": "boolean"
          },
          "mode": {
            "type": "string",
            "enum": [
              "ca",
              "ra"
            ]
          },
          "scepRA": {
            "type": "string"
          },
          "caps": {
            "type": "array",
            "items": {
              "type": "string",
              "enum": [
                "AES",
                "SHA-256",
                "Renewal",
                "SHA-512",
                "SHA-1",
                "DES3"
              ]
            }
          },
          "postPKIOperation": {
            "type": "boolean",
            "nullable": true
          },
          "encryptionAlgorithm": {
            "type": "string"
          },
          "pkiConnector": {
            "type": "string"
          },
          "constraints": {
            "nullable": true,
            "type": "object",
            "allOf": [
              {
                "$ref": "#/components/schemas/CertificateRequestConstraints"
              }
            ]
          },
          "renewalPeriod": {
            "nullable": true,
            "type": "string",
            "format": "Finite Duration",
            "pattern": "^([0-9]+) *(ms|millisecond|milliseconds|s|second|seconds|m|minute|minutes|h|hour|hours|d|day|days)$",
            "example": "5 seconds"
          },
          "csrDataMapping": {
            "nullable": true,
            "type": "object",
            "additionalProperties": {
              "type": "string"
            }
          },
          "dnWhitelist": {
            "type": "boolean"
          },
          "authorizationMode": {
            "description": "The authorization mode for this profile:\n- `challenge`: a SCEP challenge must be used when submitting a request. \n- `authorized`: the challenge does not come from the challenge but are credentials 'login:password' hex encoded of an account with enroll permissions.\n- `ndes`: challenge requests are automatically generated by an account with enroll permissions.\n",
            "type": "string",
            "enum": [
              "challenge",
              "authorized",
              "ndes",
              "auto-validation"
            ]
          },
          "maxCertificatePerHolderPolicy": {
            "nullable": true,
            "type": "object",
            "allOf": [
              {
                "$ref": "#/components/schemas/MaxCertificatePerHolderPolicy"
              }
            ]
          },
          "authorizationLevels": {
            "allOf": [
              {
                "$ref": "#/components/schemas/CertificateProfileAuthorizationLevels"
              }
            ]
          },
          "triggers": {
            "nullable": true,
            "type": "object",
            "allOf": [
              {
                "$ref": "#/components/schemas/CertificateProfileTriggers"
              }
            ]
          },
          "passwordPolicy": {
            "type": "string",
            "nullable": true
          },
          "requestsPolicy": {
            "allOf": [
              {
                "$ref": "#/components/schemas/RequestsPolicy"
              }
            ]
          },
          "selfPermissions": {
            "allOf": [
              {
                "$ref": "#/components/schemas/CertificateProfileSelfPermissions"
              }
            ]
          },
          "certificateTemplate": {
            "nullable": true,
            "type": "object",
            "allOf": [
              {
                "$ref": "#/components/schemas/CertificateTemplate"
              }
            ]
          },
          "cryptoPolicy": {
            "allOf": [
              {
                "$ref": "#/components/schemas/ManagedCertificateProfileCryptoPolicy"
              }
            ]
          },
          "gradingPolicies": {
            "type": "array",
            "nullable": true,
            "items": {
              "type": "string"
            }
          },
          "validationRuleset": {
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/ValidationRuleset"
              }
            ]
          },
          "dsFlow": {
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/DataSourceFlow"
              }
            ]
          },
          "thirdPartyDiscoverySync": {
            "nullable": true,
            "default": false,
            "type": "boolean",
            "description": "Available from `2.8.2`"
          }
        },
        "required": [
          "module",
          "name",
          "enabled",
          "mode",
          "scepRA",
          "caps",
          "encryptionAlgorithm",
          "pkiConnector",
          "dnWhitelist",
          "authorizationMode",
          "authorizationLevels",
          "requestsPolicy",
          "selfPermissions",
          "cryptoPolicy"
        ]
      },
      "WcceProfile": {
        "title": "WCCE Profile",
        "properties": {
          "module": {
            "type": "string",
            "enum": [
              "wcce"
            ]
          },
          "name": {
            "type": "string"
          },
          "displayName": {
            "type": "array",
            "nullable": true,
            "items": {
              "$ref": "#/components/schemas/LocalizedString"
            }
          },
          "description": {
            "type": "array",
            "nullable": true,
            "items": {
              "$ref": "#/components/schemas/LocalizedString"
            }
          },
          "enabled": {
            "type": "boolean"
          },
          "pkiConnector": {
            "type": "string"
          },
          "constraints": {
            "nullable": true,
            "type": "object",
            "allOf": [
              {
                "$ref": "#/components/schemas/CertificateRequestConstraints"
              }
            ]
          },
          "csrDataMapping": {
            "nullable": true,
            "type": "object",
            "additionalProperties": {
              "type": "string"
            }
          },
          "maxCertificatePerHolderPolicy": {
            "nullable": true,
            "type": "object",
            "allOf": [
              {
                "$ref": "#/components/schemas/MaxCertificatePerHolderPolicy"
              }
            ]
          },
          "authorizationLevels": {
            "allOf": [
              {
                "$ref": "#/components/schemas/CertificateProfileAuthorizationLevels"
              }
            ]
          },
          "triggers": {
            "nullable": true,
            "type": "object",
            "allOf": [
              {
                "$ref": "#/components/schemas/CertificateProfileTriggers"
              }
            ]
          },
          "requestsPolicy": {
            "allOf": [
              {
                "$ref": "#/components/schemas/RequestsPolicy"
              }
            ]
          },
          "selfPermissions": {
            "allOf": [
              {
                "$ref": "#/components/schemas/CertificateProfileSelfPermissions"
              }
            ]
          },
          "certificateTemplate": {
            "nullable": true,
            "type": "object",
            "allOf": [
              {
                "$ref": "#/components/schemas/CertificateTemplate"
              }
            ]
          },
          "cryptoPolicy": {
            "allOf": [
              {
                "$ref": "#/components/schemas/ManagedCertificateProfileCryptoPolicy"
              }
            ]
          },
          "gradingPolicies": {
            "type": "array",
            "nullable": true,
            "items": {
              "type": "string"
            }
          },
          "exchangeCertificate": {
            "type": "string",
            "nullable": true
          },
          "dsFlow": {
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/DataSourceFlow"
              }
            ]
          },
          "thirdPartyDiscoverySync": {
            "nullable": true,
            "default": false,
            "type": "boolean",
            "description": "Available from `2.8.2`"
          }
        },
        "required": [
          "module",
          "name",
          "enabled",
          "pkiConnector",
          "authorizationLevels",
          "requestsPolicy",
          "selfPermissions",
          "cryptoPolicy"
        ]
      },
      "WebRAProfile": {
        "title": "WebRA Profile",
        "properties": {
          "module": {
            "type": "string",
            "enum": [
              "webra"
            ]
          },
          "name": {
            "type": "string"
          },
          "displayName": {
            "type": "array",
            "nullable": true,
            "items": {
              "$ref": "#/components/schemas/LocalizedString"
            }
          },
          "description": {
            "type": "array",
            "nullable": true,
            "items": {
              "$ref": "#/components/schemas/LocalizedString"
            }
          },
          "authorizationMode": {
            "type": "string",
            "description": "The authorization mode to use. \n`authorized` uses permissions to allow enrollment, \n`auto-validation` uses the validation ruleset,\n`auto-validation-authorized` uses the validation ruleset, and if enrollment is denied, uses the permissions\n",
            "enum": [
              "authorized",
              "auto-validation",
              "auto-validation-authorized"
            ]
          },
          "enabled": {
            "type": "boolean"
          },
          "pkiConnector": {
            "type": "string"
          },
          "csrDataMapping": {
            "nullable": true,
            "type": "object",
            "additionalProperties": {
              "type": "string"
            }
          },
          "maxCertificatePerHolderPolicy": {
            "nullable": true,
            "type": "object",
            "allOf": [
              {
                "$ref": "#/components/schemas/MaxCertificatePerHolderPolicy"
              }
            ]
          },
          "authorizationLevels": {
            "allOf": [
              {
                "$ref": "#/components/schemas/CertificateProfileAuthorizationLevels"
              }
            ]
          },
          "triggers": {
            "nullable": true,
            "type": "object",
            "allOf": [
              {
                "$ref": "#/components/schemas/CertificateProfileTriggers"
              }
            ]
          },
          "requestsPolicy": {
            "allOf": [
              {
                "$ref": "#/components/schemas/RequestsPolicy"
              }
            ]
          },
          "cryptoPolicy": {
            "allOf": [
              {
                "$ref": "#/components/schemas/ManagedCertificateProfileCryptoPolicy"
              }
            ]
          },
          "selfPermissions": {
            "allOf": [
              {
                "$ref": "#/components/schemas/CertificateProfileSelfPermissions"
              }
            ]
          },
          "certificateTemplate": {
            "nullable": true,
            "type": "object",
            "allOf": [
              {
                "$ref": "#/components/schemas/CertificateTemplate"
              }
            ]
          },
          "renewalPeriod": {
            "nullable": true,
            "type": "string",
            "format": "Finite Duration",
            "pattern": "^([0-9]+) *(ms|millisecond|milliseconds|s|second|seconds|m|minute|minutes|h|hour|hours|d|day|days)$",
            "example": "5 seconds"
          },
          "gradingPolicies": {
            "type": "array",
            "nullable": true,
            "items": {
              "type": "string"
            }
          },
          "validationRuleset": {
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/ValidationRuleset"
              }
            ]
          },
          "dsFlow": {
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/DataSourceFlow"
              }
            ]
          },
          "thirdPartyDiscoverySync": {
            "nullable": true,
            "default": false,
            "type": "boolean",
            "description": "Available from `2.8.2`"
          }
        },
        "required": [
          "module",
          "name",
          "enabled",
          "pkiConnector",
          "authorizationLevels",
          "authorizationMode",
          "requestsPolicy",
          "cryptoPolicy",
          "selfPermissions"
        ]
      },
      "IntunePKCSProfile": {
        "title": "Intune PKCS Profile",
        "properties": {
          "module": {
            "type": "string",
            "enum": [
              "intunepkcs"
            ]
          },
          "name": {
            "type": "string"
          },
          "displayName": {
            "type": "array",
            "nullable": true,
            "items": {
              "$ref": "#/components/schemas/LocalizedString"
            }
          },
          "description": {
            "type": "array",
            "nullable": true,
            "items": {
              "$ref": "#/components/schemas/LocalizedString"
            }
          },
          "enabled": {
            "type": "boolean"
          },
          "pkiConnector": {
            "type": "string"
          },
          "thirdPartyConnector": {
            "type": "string"
          },
          "constraints": {
            "nullable": true,
            "type": "object",
            "allOf": [
              {
                "$ref": "#/components/schemas/CertificateRequestConstraints"
              }
            ]
          },
          "csrDataMapping": {
            "nullable": true,
            "type": "object",
            "additionalProperties": {
              "type": "string"
            }
          },
          "maxCertificatePerHolderPolicy": {
            "nullable": true,
            "type": "object",
            "allOf": [
              {
                "$ref": "#/components/schemas/MaxCertificatePerHolderPolicy"
              }
            ]
          },
          "authorizationLevels": {
            "allOf": [
              {
                "$ref": "#/components/schemas/CertificateProfileAuthorizationLevels"
              }
            ]
          },
          "triggers": {
            "nullable": true,
            "type": "object",
            "allOf": [
              {
                "$ref": "#/components/schemas/CertificateProfileTriggers"
              }
            ]
          },
          "requestsPolicy": {
            "allOf": [
              {
                "$ref": "#/components/schemas/RequestsPolicy"
              }
            ]
          },
          "cryptoPolicy": {
            "allOf": [
              {
                "$ref": "#/components/schemas/ManagedCertificateProfileCryptoPolicy"
              }
            ]
          },
          "selfPermissions": {
            "allOf": [
              {
                "$ref": "#/components/schemas/CertificateProfileSelfPermissions"
              }
            ]
          },
          "certificateTemplate": {
            "nullable": true,
            "type": "object",
            "allOf": [
              {
                "$ref": "#/components/schemas/CertificateTemplate"
              }
            ]
          },
          "gradingPolicies": {
            "type": "array",
            "nullable": true,
            "items": {
              "type": "string"
            }
          },
          "dsFlow": {
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/DataSourceFlow"
              }
            ]
          },
          "thirdPartyDiscoverySync": {
            "nullable": true,
            "default": false,
            "type": "boolean",
            "description": "Available from `2.8.2`"
          }
        },
        "required": [
          "module",
          "name",
          "enabled",
          "pkiConnector",
          "thirdPartyConnector",
          "authorizationLevels",
          "requestsPolicy",
          "cryptoPolicy",
          "selfPermissions"
        ]
      },
      "AcmeExternalProfile": {
        "title": "ACME External Profile",
        "properties": {
          "module": {
            "type": "string",
            "enum": [
              "acme-external"
            ]
          },
          "name": {
            "type": "string"
          },
          "displayName": {
            "type": "array",
            "nullable": true,
            "items": {
              "$ref": "#/components/schemas/LocalizedString"
            }
          },
          "description": {
            "type": "array",
            "nullable": true,
            "items": {
              "$ref": "#/components/schemas/LocalizedString"
            }
          },
          "enabled": {
            "type": "boolean"
          },
          "constraints": {
            "nullable": true,
            "type": "object",
            "allOf": [
              {
                "$ref": "#/components/schemas/CertificateRequestConstraints"
              }
            ]
          },
          "authorizationMethods": {
            "type": "array",
            "nullable": true,
            "items": {
              "type": "string"
            }
          },
          "pkiConnector": {
            "type": "string"
          },
          "acmeUrl": {
            "type": "string"
          },
          "requireEAB": {
            "type": "boolean"
          },
          "maxCertificatePerHolderPolicy": {
            "nullable": true,
            "type": "object",
            "allOf": [
              {
                "$ref": "#/components/schemas/MaxCertificatePerHolderPolicy"
              }
            ]
          },
          "authorizedCas": {
            "type": "array",
            "nullable": true,
            "items": {
              "type": "string"
            }
          },
          "renewalPeriod": {
            "nullable": true,
            "type": "string",
            "format": "Finite Duration",
            "pattern": "^([0-9]+) *(ms|millisecond|milliseconds|s|second|seconds|m|minute|minutes|h|hour|hours|d|day|days)$",
            "example": "5 seconds"
          },
          "authorizationLevels": {
            "allOf": [
              {
                "$ref": "#/components/schemas/CertificateProfileAuthorizationLevels"
              }
            ]
          },
          "triggers": {
            "nullable": true,
            "type": "object",
            "allOf": [
              {
                "$ref": "#/components/schemas/CertificateProfileTriggers"
              }
            ]
          },
          "requestsPolicy": {
            "allOf": [
              {
                "$ref": "#/components/schemas/RequestsPolicy"
              }
            ]
          },
          "selfPermissions": {
            "allOf": [
              {
                "$ref": "#/components/schemas/CertificateProfileSelfPermissions"
              }
            ]
          },
          "certificateTemplate": {
            "nullable": true,
            "type": "object",
            "allOf": [
              {
                "$ref": "#/components/schemas/CertificateTemplate"
              }
            ]
          },
          "cryptoPolicy": {
            "allOf": [
              {
                "$ref": "#/components/schemas/ManagedCertificateProfileCryptoPolicy"
              }
            ]
          },
          "gradingPolicies": {
            "type": "array",
            "nullable": true,
            "items": {
              "type": "string"
            }
          },
          "dsFlow": {
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/DataSourceFlow"
              }
            ]
          },
          "thirdPartyDiscoverySync": {
            "nullable": true,
            "default": false,
            "type": "boolean",
            "description": "Available from `2.8.2`"
          }
        },
        "required": [
          "module",
          "name",
          "enabled",
          "pkiConnector",
          "requireEAB",
          "authorizationMethods",
          "authorizedCas",
          "authorizationLevels",
          "requestsPolicy",
          "selfPermissions",
          "cryptoPolicy"
        ]
      },
      "CrmpProfile": {
        "title": "CRMP Profile",
        "properties": {
          "module": {
            "type": "string",
            "enum": [
              "crmp"
            ]
          },
          "name": {
            "type": "string"
          },
          "displayName": {
            "type": "array",
            "nullable": true,
            "items": {
              "$ref": "#/components/schemas/LocalizedString"
            }
          },
          "description": {
            "type": "array",
            "nullable": true,
            "items": {
              "$ref": "#/components/schemas/LocalizedString"
            }
          },
          "pkiConnector": {
            "type": "string"
          },
          "maxCertificatePerHolderPolicy": {
            "nullable": true,
            "type": "object",
            "allOf": [
              {
                "$ref": "#/components/schemas/MaxCertificatePerHolderPolicy"
              }
            ]
          },
          "authorizationLevels": {
            "allOf": [
              {
                "$ref": "#/components/schemas/CertificateProfileAuthorizationLevels"
              }
            ]
          },
          "triggers": {
            "nullable": true,
            "type": "object",
            "allOf": [
              {
                "$ref": "#/components/schemas/CertificateProfileTriggers"
              }
            ]
          },
          "requestsPolicy": {
            "allOf": [
              {
                "$ref": "#/components/schemas/RequestsPolicy"
              }
            ]
          },
          "enabled": {
            "type": "boolean"
          },
          "cryptoPolicy": {
            "allOf": [
              {
                "$ref": "#/components/schemas/ManagedCertificateProfileCryptoPolicy"
              }
            ]
          },
          "selfPermissions": {
            "allOf": [
              {
                "$ref": "#/components/schemas/CertificateProfileSelfPermissions"
              }
            ]
          },
          "dataFieldIdentifier": {
            "nullable": true,
            "description": "Only when escrow is enabled in the cryptoPolicy,\npossible values are: `rfc822name`, `othername_upn`, `mail`, `uid`, `cn` and `label.<label_name>`.\nIf a label is used, it should be defined in the certificateTemplate\n",
            "type": "string",
            "pattern": "(rfc822name|othername_upn|mail|uid|cn|label\\..+)"
          },
          "constraints": {
            "nullable": true,
            "type": "object",
            "allOf": [
              {
                "$ref": "#/components/schemas/CertificateRequestConstraints"
              }
            ]
          },
          "certificateTemplate": {
            "nullable": true,
            "type": "object",
            "allOf": [
              {
                "$ref": "#/components/schemas/CertificateTemplate"
              }
            ]
          },
          "gradingPolicies": {
            "type": "array",
            "nullable": true,
            "items": {
              "type": "string"
            }
          },
          "dsFlow": {
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/DataSourceFlow"
              }
            ]
          },
          "thirdPartyDiscoverySync": {
            "nullable": true,
            "default": false,
            "type": "boolean",
            "description": "Available from `2.8.2`"
          }
        },
        "required": [
          "name",
          "module",
          "pkiConnector",
          "authorizationLevels",
          "requestsPolicy",
          "enabled",
          "cryptoPolicy",
          "selfPermissions"
        ]
      },
      "CertificateProfiles": {
        "oneOf": [
          {
            "$ref": "#/components/schemas/AcmeProfile"
          },
          {
            "$ref": "#/components/schemas/EstProfile"
          },
          {
            "$ref": "#/components/schemas/IntuneProfile"
          },
          {
            "$ref": "#/components/schemas/JamfProfile"
          },
          {
            "$ref": "#/components/schemas/ScepProfile"
          },
          {
            "$ref": "#/components/schemas/WcceProfile"
          },
          {
            "$ref": "#/components/schemas/WebRAProfile"
          },
          {
            "$ref": "#/components/schemas/IntunePKCSProfile"
          },
          {
            "$ref": "#/components/schemas/AcmeExternalProfile"
          },
          {
            "$ref": "#/components/schemas/CrmpProfile"
          },
          {
            "$ref": "#/components/schemas/MonitoredProfile"
          }
        ]
      },
      "CertProfile002": {
        "allOf": [
          {
            "$ref": "#/components/schemas/BasicError"
          }
        ],
        "description": "Invalid Certificate Profile",
        "properties": {
          "error": {
            "enum": [
              "CERT-PROFILE-002"
            ]
          },
          "message": {
            "enum": [
              "Invalid Certificate Profile"
            ]
          },
          "title": {
            "enum": [
              "Invalid Certificate Profile"
            ]
          }
        },
        "title": "CERT-PROFILE-002",
        "required": [
          "error",
          "message",
          "title"
        ]
      },
      "CertProfile003": {
        "allOf": [
          {
            "$ref": "#/components/schemas/BasicError"
          }
        ],
        "description": "Certificate Profile not found",
        "properties": {
          "error": {
            "enum": [
              "CERT-PROFILE-003"
            ]
          },
          "message": {
            "enum": [
              "Certificate Profile not found"
            ]
          },
          "title": {
            "enum": [
              "Certificate Profile not found"
            ]
          }
        },
        "title": "CERT-PROFILE-003",
        "required": [
          "error",
          "message",
          "title"
        ]
      },
      "CertProfile004": {
        "allOf": [
          {
            "$ref": "#/components/schemas/BasicError"
          }
        ],
        "description": "Certificate Profile already exists",
        "properties": {
          "error": {
            "enum": [
              "CERT-PROFILE-004"
            ]
          },
          "message": {
            "enum": [
              "Certificate Profile already exists"
            ]
          },
          "title": {
            "enum": [
              "Certificate Profile already exists"
            ]
          }
        },
        "title": "CERT-PROFILE-004",
        "required": [
          "error",
          "message",
          "title"
        ]
      },
      "CertProfile006": {
        "allOf": [
          {
            "$ref": "#/components/schemas/BasicError"
          }
        ],
        "description": "Referenced Certificate Profile",
        "properties": {
          "error": {
            "enum": [
              "CERT-PROFILE-006"
            ]
          },
          "message": {
            "enum": [
              "Referenced Certificate Profile"
            ]
          },
          "title": {
            "enum": [
              "Referenced Certificate Profile"
            ]
          }
        },
        "title": "CERT-PROFILE-006",
        "required": [
          "error",
          "message",
          "title"
        ]
      },
      "SortElement": {
        "title": "SortElement",
        "properties": {
          "element": {
            "example": "notBefore",
            "description": "The name of the field the query should be sorted by. Must be one of the `fields` of the search query",
            "type": "string"
          },
          "order": {
            "description": "The order to use for the sort. `Asc` and `Desc` sort the values, and `KeyAsc` and `KeyDesc` sort by the key, in case of a key-value element",
            "type": "string",
            "enum": [
              "Asc",
              "Desc",
              "KeyAsc",
              "KeyDesc"
            ]
          }
        },
        "required": [
          "element",
          "order"
        ]
      },
      "DiscoveryEventSearchQuery": {
        "properties": {
          "query": {
            "type": "string",
            "nullable": true
          },
          "sortedBy": {
            "type": "array",
            "nullable": true,
            "items": {
              "$ref": "#/components/schemas/SortElement"
            }
          },
          "pageIndex": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "pageSize": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "withCount": {
            "type": "boolean",
            "nullable": true
          }
        }
      },
      "Hql001": {
        "title": "HQL-001",
        "description": "Invalid HQL query",
        "allOf": [
          {
            "$ref": "#/components/schemas/BasicError"
          }
        ],
        "properties": {
          "error": {
            "enum": [
              "HQL-001"
            ]
          },
          "message": {
            "enum": [
              "Invalid HQL query"
            ]
          },
          "title": {
            "enum": [
              "Invalid HQL query"
            ]
          }
        },
        "required": [
          "error",
          "message",
          "title"
        ]
      },
      "DiscEvt001": {
        "allOf": [
          {
            "$ref": "#/components/schemas/BasicError"
          }
        ],
        "description": "Unexpected Error",
        "properties": {
          "error": {
            "enum": [
              "DISC-EVT-001"
            ]
          },
          "message": {
            "enum": [
              "Unexpected Error"
            ]
          },
          "title": {
            "enum": [
              "Unexpected Error"
            ]
          }
        },
        "title": "DISC-EVT-001",
        "required": [
          "error",
          "message",
          "title"
        ]
      },
      "EventSearchQuery": {
        "properties": {
          "query": {
            "type": "string",
            "nullable": true
          },
          "sortedBy": {
            "type": "array",
            "nullable": true,
            "items": {
              "$ref": "#/components/schemas/SortElement"
            }
          },
          "pageIndex": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "pageSize": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "withCount": {
            "type": "boolean",
            "nullable": true
          }
        }
      },
      "EventCode": {
        "title": "Event Code",
        "type": "string",
        "enum": [
          "ACME-ACCOUNT-KEY-CHANGE",
          "ACME-ACCOUNT-REGISTER",
          "ACME-ACCOUNT-UPDATE",
          "ACME-AUTHORIZATION-DEACTIVATE",
          "ACME-CHALLENGE-REQUEST-VERIFY",
          "ACME-CHALLENGE-VERIFY",
          "ACME-ORDER-CERTIFICATE",
          "ACME-ORDER-FINALIZE",
          "ACME-ORDER-NEW",
          "ACME-ORDER-UPDATE",
          "ACME-REVOKE",
          "ACTOR",
          "BOOTSTRAP-ADMINISTRATOR-ACCOUNT",
          "BOOTSTRAP-ADMINISTRATOR-PRINCIPAL",
          "BOOTSTRAP-GRADING-POLICY",
          "BOOTSTRAP-GRADING-RULESET",
          "BOOTSTRAP-LOCAL-IDENTITY-PROVIDER",
          "CA-CERT-SYNC",
          "CA-CRL-UPDATE",
          "CONF-ADD",
          "CONF-DELETE",
          "CONF-UPDATE",
          "CRMP-AUTHENTICATION",
          "CRMP-BAD-REQUEST",
          "CRMP-ENROLL",
          "CRMP-LIST",
          "CRMP-PROFILE-PROPERTIES",
          "CRMP-RECOVER",
          "CRMP-RETRIEVE",
          "CRMP-REVOKE",
          "DISCOVERY-CAMPAIGN-FLUSH",
          "EST-CACERTS",
          "EST-REVOKE-ON-RENEW",
          "EST-SIMPLE-ENROLL",
          "EST-SIMPLE-REENROLL",
          "GRADING-END",
          "GRADING-ERROR",
          "GRADING-START",
          "LICENSE-ERROR",
          "LICENSE-LIMIT-REACHED",
          "LIFECYCLE-ENROLL",
          "LIFECYCLE-ESCROW",
          "LIFECYCLE-MAX-CERT-PER-HOLDER",
          "LIFECYCLE-MIGRATE",
          "LIFECYCLE-RECOVER",
          "LIFECYCLE-RENEW",
          "LIFECYCLE-REVOKE",
          "LIFECYCLE-UPDATE",
          "PKI-CONNECTOR",
          "REQUEST-APPROVE",
          "REQUEST-CANCEL",
          "REQUEST-DENY",
          "REQUEST-SUBMIT",
          "REQUEST-TEMPLATE",
          "SCEP-ENROLL",
          "SCEP-GET-CA-CERT",
          "SCEP-GET-CERT-INITIAL",
          "SCEP-NDES-EMULATION",
          "SCEP-PKI-CLIENT",
          "SCEP-PKI-OPERATION",
          "SCEP-RENEW",
          "SCEP-REVOKE-ON-RENEW",
          "SCHEDULED-TASK-COMPLETE",
          "SCHEDULED-TASK-RUN",
          "SEC-AUTHENTICATION",
          "SEC-AUTHORIZATION-ADD",
          "SEC-AUTHORIZATION-DELETE",
          "SEC-AUTHORIZATION-UPDATE",
          "SEC-IDENTITY-PROVIDER-ADD",
          "SEC-IDENTITY-PROVIDER-DELETE",
          "SEC-IDENTITY-PROVIDER-UPDATE",
          "SEC-LOCAL-IDENTITY-ADD",
          "SEC-LOCAL-IDENTITY-DELETE",
          "SEC-LOCAL-IDENTITY-RESET",
          "SEC-LOCAL-IDENTITY-UPDATE",
          "SEC-PASSWORD-POLICY-ADD",
          "SEC-PASSWORD-POLICY-DELETE",
          "SEC-PASSWORD-POLICY-UPDATE",
          "SEC-ROLE-ADD",
          "SEC-ROLE-DELETE",
          "SEC-ROLE-UPDATE",
          "SEC-TEAM-ADD",
          "SEC-TEAM-DELETE",
          "SEC-TEAM-SWITCH",
          "SEC-TEAM-UPDATE",
          "SERVICE-START",
          "SERVICE-STOP",
          "SUPERVISOR",
          "SYNC-ENROLL",
          "SYNC-RENEW",
          "SYNC-REVOKE",
          "TEAM-SWITCH",
          "TRIGGER-DELETE",
          "TRIGGER-EMAIL",
          "TRIGGER-NOTIFICATION",
          "TRIGGER-PUSH",
          "TRIGGER-REMOVE",
          "WCCE-ENROLL"
        ]
      },
      "EventDetail": {
        "properties": {
          "key": {
            "type": "string"
          },
          "value": {
            "type": "string"
          }
        },
        "required": [
          "key",
          "value"
        ]
      },
      "EventModule": {
        "title": "Event Module",
        "type": "string",
        "enum": [
          "acme",
          "actor",
          "analytics",
          "aws",
          "bootstrap",
          "ca",
          "configuration",
          "crmp",
          "est",
          "event",
          "f5client",
          "f5as3",
          "grading",
          "internal_monitor",
          "intune",
          "intunepkcs",
          "jamf",
          "license",
          "request",
          "scep",
          "scheduler",
          "scim",
          "security",
          "service",
          "thirdparty",
          "wcce",
          "webra"
        ]
      },
      "EventSearchResult": {
        "properties": {
          "_id": {
            "nullable": true,
            "type": "string"
          },
          "code": {
            "allOf": [
              {
                "$ref": "#/components/schemas/EventCode"
              }
            ],
            "nullable": true
          },
          "details": {
            "type": "array",
            "nullable": true,
            "items": {
              "$ref": "#/components/schemas/EventDetail"
            }
          },
          "module": {
            "allOf": [
              {
                "$ref": "#/components/schemas/EventModule"
              }
            ],
            "nullable": true
          },
          "node": {
            "type": "string",
            "nullable": true
          },
          "timestamp": {
            "type": "integer",
            "format": "epoch",
            "nullable": true
          },
          "removeAt": {
            "nullable": true,
            "type": "integer",
            "format": "epoch"
          },
          "seal": {
            "type": "string",
            "nullable": true
          },
          "status": {
            "type": "string",
            "nullable": true,
            "enum": [
              "warning",
              "failure",
              "success"
            ]
          }
        }
      },
      "EventSearchResultsResponse": {
        "properties": {
          "results": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/EventSearchResult"
            }
          },
          "pageIndex": {
            "type": "integer",
            "format": "int32"
          },
          "pageSize": {
            "type": "integer",
            "format": "int32"
          },
          "count": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "hasMore": {
            "type": "boolean"
          }
        },
        "required": [
          "results",
          "pageIndex",
          "pageSize",
          "hasMore"
        ]
      },
      "Evt002": {
        "allOf": [
          {
            "$ref": "#/components/schemas/BasicError"
          }
        ],
        "description": "Invalid Event Search Query",
        "properties": {
          "error": {
            "enum": [
              "EVT-002"
            ]
          },
          "message": {
            "enum": [
              "Invalid Event Search Query"
            ]
          },
          "title": {
            "enum": [
              "Invalid Event Search Query"
            ]
          }
        },
        "title": "EVT-002",
        "required": [
          "error",
          "message",
          "title"
        ]
      },
      "Evt001": {
        "allOf": [
          {
            "$ref": "#/components/schemas/BasicError"
          }
        ],
        "description": "Unexpected Error",
        "properties": {
          "error": {
            "enum": [
              "EVT-001"
            ]
          },
          "message": {
            "enum": [
              "Unexpected Error"
            ]
          },
          "title": {
            "enum": [
              "Unexpected Error"
            ]
          }
        },
        "title": "EVT-001",
        "required": [
          "error",
          "message",
          "title"
        ]
      },
      "Evt004": {
        "allOf": [
          {
            "$ref": "#/components/schemas/BasicError"
          }
        ],
        "description": "Invalid Event",
        "properties": {
          "error": {
            "enum": [
              "EVT-004"
            ]
          },
          "message": {
            "enum": [
              "Invalid Event"
            ]
          },
          "title": {
            "enum": [
              "Invalid Event"
            ]
          }
        },
        "title": "EVT-004",
        "required": [
          "error",
          "message",
          "title"
        ]
      },
      "Evt003": {
        "allOf": [
          {
            "$ref": "#/components/schemas/BasicError"
          }
        ],
        "description": "Event not found",
        "properties": {
          "error": {
            "enum": [
              "EVT-003"
            ]
          },
          "message": {
            "enum": [
              "Event not found"
            ]
          },
          "title": {
            "enum": [
              "Event not found"
            ]
          }
        },
        "title": "EVT-003",
        "required": [
          "error",
          "message",
          "title"
        ]
      },
      "ErrorResponse": {
        "properties": {
          "error": {
            "type": "string"
          },
          "message": {
            "type": "string"
          },
          "detail": {
            "type": "string",
            "nullable": true
          }
        },
        "required": [
          "error",
          "message"
        ]
      },
      "EventResponse": {
        "properties": {
          "_id": {
            "nullable": true,
            "type": "string"
          },
          "code": {
            "allOf": [
              {
                "$ref": "#/components/schemas/EventCode"
              }
            ]
          },
          "details": {
            "type": "array",
            "nullable": true,
            "items": {
              "$ref": "#/components/schemas/EventDetail"
            }
          },
          "module": {
            "allOf": [
              {
                "$ref": "#/components/schemas/EventModule"
              }
            ]
          },
          "node": {
            "type": "string"
          },
          "timestamp": {
            "type": "integer",
            "format": "epoch"
          },
          "removeAt": {
            "nullable": true,
            "type": "integer",
            "format": "epoch"
          },
          "seal": {
            "type": "string",
            "nullable": true
          },
          "status": {
            "type": "string",
            "enum": [
              "warning",
              "failure",
              "success"
            ]
          }
        },
        "required": [
          "code",
          "module",
          "node",
          "timestamp",
          "status"
        ]
      },
      "ModuleLicenseInfoResponse": {
        "properties": {
          "module": {
            "type": "string"
          },
          "items": {
            "type": "integer",
            "format": "int32"
          },
          "limit": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          }
        },
        "required": [
          "module",
          "items"
        ]
      },
      "LibraryInfoResponse": {
        "properties": {
          "name": {
            "type": "string"
          },
          "version": {
            "type": "string"
          }
        },
        "required": [
          "name",
          "version"
        ]
      },
      "LicenseInfoResponse": {
        "properties": {
          "isValid": {
            "type": "boolean"
          },
          "expiration": {
            "nullable": true,
            "type": "integer",
            "format": "epoch"
          },
          "version": {
            "type": "string"
          },
          "buildTime": {
            "type": "integer",
            "format": "int64"
          },
          "modules": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ModuleLicenseInfoResponse"
            }
          },
          "libraries": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/LibraryInfoResponse"
            }
          },
          "releaseChannel": {
            "type": "string"
          }
        },
        "required": [
          "isValid",
          "version",
          "buildTime",
          "modules",
          "libraries"
        ]
      },
      "PKIConnectorStatus": {
        "title": "PKI Connector status",
        "description": "The status of a pki connector",
        "type": "object",
        "readOnly": true,
        "nullable": true,
        "properties": {
          "lastCheck": {
            "description": "The date, in milliseconds since the epoch, of the last time the pki connector health check was ran.",
            "format": "epoch",
            "type": "integer",
            "example": 1729861389720
          },
          "status": {
            "type": "string",
            "enum": [
              "success",
              "failure",
              "unknown",
              "running"
            ],
            "description": "The status of the pki connector connection. \nThe 'unknown' status means that the healthcheck is not available.\n"
          },
          "message": {
            "type": "string",
            "nullable": true,
            "description": "A meaningful message about the result of the health check (in case of error)"
          }
        },
        "required": [
          "lastCheck",
          "status"
        ]
      },
      "StreamConnectorResponse": {
        "title": "Stream",
        "properties": {
          "_id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/Id"
              }
            ]
          },
          "name": {
            "type": "string"
          },
          "type": {
            "type": "string",
            "enum": [
              "stream"
            ]
          },
          "endPoint": {
            "type": "string",
            "description": "Stream's base endpoint"
          },
          "template": {
            "type": "string",
            "description": "Stream's certificate template to use for enrollment"
          },
          "ca": {
            "type": "string",
            "description": "Stream's technical name of the CA on which to enroll"
          },
          "loginCredentials": {
            "example": "myPasswordCredentials",
            "description": "Name of the `password` [credentials](#tag/security.credentials) to use to authenticate on the PKI",
            "type": "string",
            "nullable": true
          },
          "authenticationCredentials": {
            "example": "myCertificateCredentials",
            "description": "Name of the `certificate` [credentials](#tag/security.credentials) to use to authenticate on the PKI",
            "type": "string",
            "nullable": true
          },
          "timeout": {
            "nullable": true,
            "type": "string",
            "format": "Finite Duration",
            "pattern": "^([0-9]+) *(ms|millisecond|milliseconds|s|second|seconds|m|minute|minutes|h|hour|hours|d|day|days)$",
            "example": "5 seconds"
          },
          "proxy": {
            "type": "string",
            "nullable": true
          },
          "queue": {
            "type": "string",
            "nullable": true
          },
          "status": {
            "allOf": [
              {
                "$ref": "#/components/schemas/PKIConnectorStatus"
              }
            ]
          }
        },
        "required": [
          "_id",
          "name",
          "type",
          "endPoint",
          "template",
          "ca"
        ]
      },
      "MapEntry": {
        "type": "object",
        "title": "Map entry",
        "properties": {
          "key": {
            "type": "string",
            "description": "The key of the entry",
            "example": "cn.1"
          },
          "value": {
            "type": "string",
            "description": "The value of the entry",
            "example": "Evertrust"
          }
        }
      },
      "StaticDomainDictionaryProvider": {
        "title": "Static Domain Dictionary Provider",
        "description": "Retrieve a domain dictionary based on a static configuration",
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "static"
            ]
          },
          "domains": {
            "type": "array",
            "description": "The domain dictionaries",
            "items": {
              "type": "object",
              "properties": {
                "domain": {
                  "type": "string",
                  "description": "Top level domain name"
                },
                "dictionary": {
                  "type": "array",
                  "items": {
                    "allOf": [
                      {
                        "$ref": "#/components/schemas/MapEntry"
                      }
                    ]
                  }
                }
              },
              "required": [
                "domain",
                "dictionary"
              ]
            }
          }
        },
        "required": [
          "type",
          "domains"
        ]
      },
      "DomainDictionaryProviders": {
        "oneOf": [
          {
            "$ref": "#/components/schemas/StaticDomainDictionaryProvider"
          }
        ]
      },
      "TemplateString": {
        "type": "string",
        "format": "Template String",
        "externalDocs": {
          "description": "Template strings guide",
          "url": "https://docs.evertrust.fr/horizon/admin-guide/2.7/template_strings"
        }
      },
      "RESTHeader": {
        "title": "Header",
        "type": "object",
        "properties": {
          "name": {
            "example": "Content-Type",
            "description": "The header name",
            "type": "string"
          },
          "value": {
            "example": "application/json",
            "description": "The header value",
            "type": "string"
          }
        },
        "required": [
          "name",
          "value"
        ]
      },
      "AcmeRestRequest": {
        "title": "ACME REST Request",
        "properties": {
          "url": {
            "allOf": [
              {
                "$ref": "#/components/schemas/TemplateString"
              }
            ],
            "description": "The url to request"
          },
          "method": {
            "type": "string",
            "description": "The HTTP method to use for the request",
            "example": "GET"
          },
          "authenticationType": {
            "type": "string",
            "description": "The authentication type to use while making the REST call. Is linked to `credentials`.",
            "example": "bearer",
            "enum": [
              "noauth",
              "basic",
              "x509",
              "bearer",
              "custom"
            ]
          },
          "credentials": {
            "nullable": true,
            "type": "string",
            "description": "Name of the credentials to use for authentication",
            "example": "myRawCredentials"
          },
          "headers": {
            "description": "The headers of the request",
            "nullable": true,
            "type": "array",
            "items": {
              "allOf": [
                {
                  "$ref": "#/components/schemas/RESTHeader"
                }
              ]
            }
          },
          "payloadType": {
            "nullable": true,
            "type": "string",
            "example": "json",
            "description": "For UI purposes in order to format the body correctly"
          },
          "payload": {
            "nullable": true,
            "type": "string",
            "example": "Hello {{certificate.dn.cn.1}}.",
            "description": "The body of the request. Can contain dynamic attributes."
          },
          "expectedHttpCodes": {
            "type": "array",
            "description": "The success HTTP codes for the request. If the return code is not in this list, the notification will be considered failed.",
            "example": [
              200,
              204
            ],
            "items": {
              "type": "integer"
            }
          },
          "proxy": {
            "nullable": true,
            "type": "string",
            "example": "ProxyForInternet",
            "description": "Name of a Proxy to use while making the request"
          },
          "timeout": {
            "type": "string",
            "format": "Finite Duration",
            "pattern": "^([0-9]+) *(ms|millisecond|milliseconds|s|second|seconds|m|minute|minutes|h|hour|hours|d|day|days)$",
            "example": "30 s",
            "description": "Timeout for the HTTP request."
          }
        },
        "required": [
          "url",
          "authenticationType",
          "method",
          "timeout",
          "expectedHttpCodes"
        ]
      },
      "ManualDnsChallengeProvider": {
        "title": "Manual DNS Challenge Provider",
        "description": "Manually configure the DNS Challenge Provider using REST Triggers",
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "manual"
            ]
          },
          "setTriggers": {
            "description": "The triggers that will set the DNS challenge on the provider.",
            "type": "array",
            "items": {
              "allOf": [
                {
                  "$ref": "#/components/schemas/AcmeRestRequest"
                }
              ]
            }
          },
          "unsetTriggers": {
            "description": "The triggers that will unset the DNS challenge on the provider.",
            "type": "array",
            "items": {
              "allOf": [
                {
                  "$ref": "#/components/schemas/AcmeRestRequest"
                }
              ]
            }
          }
        },
        "required": [
          "type",
          "setTriggers"
        ]
      },
      "NameshieldDnsChallengeProvider": {
        "title": "Nameshield DNS Challenge Provider",
        "description": "Configure DNS challenge provider to use Nameshield",
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "nameshield"
            ]
          },
          "credentials": {
            "type": "string",
            "description": "`raw` credentials name to use to authenticate on the Nameshield API"
          },
          "endPoint": {
            "type": "string",
            "description": "Nameshield API endpoint"
          },
          "proxy": {
            "type": "string",
            "nullable": true
          },
          "timeout": {
            "type": "string",
            "description": "Timeout when requesting Nameshield API",
            "format": "Finite Duration",
            "pattern": "^([0-9]+) *(ms|millisecond|milliseconds|s|second|seconds|m|minute|minutes|h|hour|hours|d|day|days)$",
            "example": "5 seconds"
          }
        },
        "required": [
          "type",
          "credentials",
          "endPoint",
          "timeout"
        ]
      },
      "DnsChallengeProviders": {
        "oneOf": [
          {
            "$ref": "#/components/schemas/ManualDnsChallengeProvider"
          },
          {
            "$ref": "#/components/schemas/NameshieldDnsChallengeProvider"
          }
        ]
      },
      "AcmeEnrollConnectorResponse": {
        "title": "Acme enroll",
        "description": "Used to enroll certificate using the ACME protocol with DNS challenge on compatible public PKI",
        "properties": {
          "_id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/Id"
              }
            ]
          },
          "name": {
            "type": "string"
          },
          "type": {
            "type": "string",
            "enum": [
              "acmeenroll"
            ]
          },
          "endPoint": {
            "type": "string",
            "description": "The directory url of the ACME endpoint"
          },
          "timeout": {
            "allOf": [
              {
                "$ref": "#/components/schemas/FiniteDuration"
              }
            ],
            "example": "10s"
          },
          "proxy": {
            "type": "string",
            "nullable": true
          },
          "queue": {
            "type": "string",
            "nullable": true
          },
          "eab": {
            "type": "string",
            "nullable": true,
            "description": "`password` credentials name to use for External Account Binding"
          },
          "accountKeyType": {
            "allOf": [
              {
                "$ref": "#/components/schemas/KeyType"
              }
            ],
            "description": "The key type to use to generate the account key"
          },
          "accountEmail": {
            "type": "string",
            "nullable": true,
            "description": "Email to associate with the account"
          },
          "rotateAccount": {
            "type": "boolean",
            "nullable": true,
            "description": "If enable, regenerate the account (does not need to be specified on creation)"
          },
          "status": {
            "allOf": [
              {
                "$ref": "#/components/schemas/PKIConnectorStatus"
              }
            ]
          },
          "accountUrl": {
            "type": "string",
            "description": "Url of the account on the ACME directory"
          },
          "domainDictionaryProvider": {
            "nullable": true,
            "description": "The dictionary provider",
            "allOf": [
              {
                "$ref": "#/components/schemas/DomainDictionaryProviders"
              }
            ]
          },
          "dnsChallengeProvider": {
            "description": "DNS Provider configuration to provision the DNS challenge. Available from `2.7.7`",
            "allOf": [
              {
                "$ref": "#/components/schemas/DnsChallengeProviders"
              }
            ]
          }
        },
        "required": [
          "_id",
          "name",
          "endPoint",
          "timeout",
          "type",
          "accountKeyType",
          "accountUrl",
          "dnsChallengeProvider"
        ]
      },
      "AcmeRevocationConnectorResponse": {
        "title": "Acme revocation",
        "description": "Used to revoke certificate using the acme protocol on compatible public PKI",
        "properties": {
          "_id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/Id"
              }
            ]
          },
          "name": {
            "type": "string"
          },
          "type": {
            "type": "string",
            "enum": [
              "acmerevoke"
            ]
          },
          "acmeDirectoryUrl": {
            "type": "string",
            "description": "The directory url of the ACME endpoint"
          },
          "timeout": {
            "allOf": [
              {
                "$ref": "#/components/schemas/FiniteDuration"
              }
            ]
          },
          "proxy": {
            "type": "string",
            "nullable": true
          },
          "queue": {
            "type": "string",
            "nullable": true
          },
          "status": {
            "allOf": [
              {
                "$ref": "#/components/schemas/PKIConnectorStatus"
              }
            ]
          }
        },
        "required": [
          "_id",
          "name",
          "acmeDirectoryUrl",
          "type"
        ]
      },
      "EverTrustADCSConnectorResponse": {
        "title": "ADCS",
        "properties": {
          "_id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/Id"
              }
            ]
          },
          "name": {
            "type": "string"
          },
          "type": {
            "type": "string",
            "enum": [
              "evtadcs"
            ]
          },
          "endPoint": {
            "type": "string"
          },
          "caConfig": {
            "type": "string"
          },
          "profile": {
            "type": "string"
          },
          "domain": {
            "type": "string"
          },
          "loginCredentials": {
            "description": "Name of the `password` [credentials](#tag/security.credentials) to use for technical account on the PKI",
            "type": "string"
          },
          "enrollmentCredentials": {
            "description": "Name of the `certificate` [credentials](#tag/security.credentials) to use to enroll on the PKI",
            "type": "string"
          },
          "timeout": {
            "nullable": true,
            "type": "string",
            "format": "Finite Duration",
            "pattern": "^([0-9]+) *(ms|millisecond|milliseconds|s|second|seconds|m|minute|minutes|h|hour|hours|d|day|days)$",
            "example": "5 seconds"
          },
          "proxy": {
            "type": "string",
            "nullable": true
          },
          "queue": {
            "type": "string",
            "nullable": true
          },
          "status": {
            "allOf": [
              {
                "$ref": "#/components/schemas/PKIConnectorStatus"
              }
            ]
          }
        },
        "required": [
          "_id",
          "name",
          "type",
          "endPoint",
          "caConfig",
          "profile",
          "domain",
          "loginCredentials",
          "enrollmentCredentials"
        ]
      },
      "ADCSConnectorResponse": {
        "title": "ADCS (deprecated)",
        "properties": {
          "_id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/Id"
              }
            ]
          },
          "name": {
            "type": "string"
          },
          "type": {
            "type": "string",
            "enum": [
              "msadcs"
            ]
          },
          "endPoint": {
            "type": "string"
          },
          "profile": {
            "type": "string"
          },
          "loginCredentials": {
            "example": "myPasswordCredentials",
            "description": "Name of the `password` [credentials](#tag/security.credentials) to use for technical account on the PKI",
            "type": "string"
          },
          "enrollmentCredentials": {
            "example": "myCertificateCredentials",
            "description": "Name of the `certificate` [credentials](#tag/security.credentials) to use to enroll on the PKI",
            "type": "string"
          },
          "timeout": {
            "nullable": true,
            "type": "string",
            "format": "Finite Duration",
            "pattern": "^([0-9]+) *(ms|millisecond|milliseconds|s|second|seconds|m|minute|minutes|h|hour|hours|d|day|days)$",
            "example": "5 seconds"
          },
          "proxy": {
            "type": "string",
            "nullable": true
          },
          "queue": {
            "type": "string",
            "nullable": true
          },
          "status": {
            "allOf": [
              {
                "$ref": "#/components/schemas/PKIConnectorStatus"
              }
            ]
          }
        },
        "required": [
          "_id",
          "name",
          "type",
          "endPoint",
          "profile",
          "loginCredentials",
          "enrollmentCredentials"
        ]
      },
      "AWSACMPCAConnectorResponse": {
        "title": "AWS ACM PCA",
        "properties": {
          "_id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/Id"
              }
            ]
          },
          "name": {
            "type": "string"
          },
          "type": {
            "type": "string",
            "enum": [
              "awsacmpca"
            ]
          },
          "region": {
            "type": "string"
          },
          "caArn": {
            "type": "string"
          },
          "accessCredentials": {
            "type": "string",
            "nullable": true,
            "example": "myPasswordCredentials",
            "description": "Name of the `password` [credentials](#tag/security.credentials) containing Access Key Id and Secret Access Key. If not defined, an account present in environment variables can be used."
          },
          "templateArn": {
            "type": "string",
            "nullable": true
          },
          "roleArn": {
            "type": "string",
            "nullable": true
          },
          "validDays": {
            "nullable": true,
            "type": "string",
            "format": "Finite Duration",
            "pattern": "^([0-9]+) *(ms|millisecond|milliseconds|s|second|seconds|m|minute|minutes|h|hour|hours|d|day|days)$",
            "example": "5 seconds"
          },
          "retryInterval": {
            "nullable": true,
            "type": "string",
            "format": "Finite Duration",
            "pattern": "^([0-9]+) *(ms|millisecond|milliseconds|s|second|seconds|m|minute|minutes|h|hour|hours|d|day|days)$",
            "example": "5 seconds"
          },
          "signingHash": {
            "type": "string",
            "nullable": true
          },
          "certificateUsage": {
            "type": "string",
            "nullable": true
          },
          "caPolicyOid": {
            "type": "string",
            "nullable": true
          },
          "timeout": {
            "nullable": true,
            "type": "string",
            "format": "Finite Duration",
            "pattern": "^([0-9]+) *(ms|millisecond|milliseconds|s|second|seconds|m|minute|minutes|h|hour|hours|d|day|days)$",
            "example": "5 seconds"
          },
          "proxy": {
            "type": "string",
            "nullable": true
          },
          "queue": {
            "type": "string",
            "nullable": true
          },
          "status": {
            "allOf": [
              {
                "$ref": "#/components/schemas/PKIConnectorStatus"
              }
            ]
          }
        },
        "required": [
          "_id",
          "name",
          "type",
          "region",
          "caArn"
        ]
      },
      "CertEuropeConnectorResponse": {
        "title": "CertEurope",
        "properties": {
          "_id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/Id"
              }
            ]
          },
          "name": {
            "type": "string"
          },
          "type": {
            "type": "string",
            "enum": [
              "certeurope"
            ]
          },
          "endPoint": {
            "type": "string"
          },
          "loginCredentials": {
            "example": "myPasswordCredentials",
            "description": "Name of the `password` [credentials](#tag/security.credentials) to use for technical account on the PKI",
            "type": "string"
          },
          "offerId": {
            "type": "string"
          },
          "organizationId": {
            "type": "string"
          },
          "revReason": {
            "type": "string",
            "nullable": true
          },
          "retryInterval": {
            "nullable": true,
            "type": "string",
            "format": "Finite Duration",
            "pattern": "^([0-9]+) *(ms|millisecond|milliseconds|s|second|seconds|m|minute|minutes|h|hour|hours|d|day|days)$",
            "example": "5 seconds"
          },
          "authenticationCredentials": {
            "description": "Name of the `certificate` [credentials](#tag/security.credentials) to use to authenticate on the PKI",
            "type": "string",
            "example": "myCertificateCredentials"
          },
          "timeout": {
            "nullable": true,
            "type": "string",
            "format": "Finite Duration",
            "pattern": "^([0-9]+) *(ms|millisecond|milliseconds|s|second|seconds|m|minute|minutes|h|hour|hours|d|day|days)$",
            "example": "5 seconds"
          },
          "proxy": {
            "type": "string",
            "nullable": true
          },
          "queue": {
            "type": "string",
            "nullable": true
          },
          "status": {
            "allOf": [
              {
                "$ref": "#/components/schemas/PKIConnectorStatus"
              }
            ]
          }
        },
        "required": [
          "_id",
          "name",
          "type",
          "endPoint",
          "loginCredentials",
          "offerId",
          "authenticationCredentials",
          "organizationId"
        ]
      },
      "CMPConnectorResponse": {
        "title": "CS-Novidy's TrustyKey",
        "properties": {
          "_id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/Id"
              }
            ]
          },
          "name": {
            "type": "string"
          },
          "type": {
            "type": "string",
            "enum": [
              "cmp"
            ]
          },
          "endPoint": {
            "type": "string"
          },
          "profile": {
            "type": "string"
          },
          "issuerCADN": {
            "type": "string"
          },
          "issuerCACert": {
            "type": "string"
          },
          "signerCredentials": {
            "example": "myCertificateCredentials",
            "description": "Name of the `certificate` [credentials](#tag/security.credentials) to use to sign on the PKI",
            "type": "string"
          },
          "emailMap": {
            "type": "string",
            "nullable": true
          },
          "sanDnsMap": {
            "type": "string",
            "nullable": true
          },
          "cnMap": {
            "type": "string",
            "nullable": true
          },
          "profileMap": {
            "type": "string",
            "nullable": true
          },
          "issuerMap": {
            "type": "string",
            "nullable": true
          },
          "legacyCMPStyle": {
            "type": "boolean",
            "nullable": true
          },
          "authenticationCredentials": {
            "description": "Name of the `certificate` [credentials](#tag/security.credentials) to use to authenticate on the PKI",
            "type": "string"
          },
          "timeout": {
            "nullable": true,
            "type": "string",
            "format": "Finite Duration",
            "pattern": "^([0-9]+) *(ms|millisecond|milliseconds|s|second|seconds|m|minute|minutes|h|hour|hours|d|day|days)$",
            "example": "5 seconds"
          },
          "proxy": {
            "type": "string",
            "nullable": true
          },
          "queue": {
            "type": "string",
            "nullable": true
          },
          "status": {
            "allOf": [
              {
                "$ref": "#/components/schemas/PKIConnectorStatus"
              }
            ]
          }
        },
        "required": [
          "_id",
          "name",
          "type",
          "endPoint",
          "profile",
          "issuerCADN",
          "issuerCACert",
          "signerCredentials",
          "authenticationCredentials"
        ]
      },
      "DigiCertConnectorResponse": {
        "title": "DigiCert CertCentral",
        "properties": {
          "_id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/Id"
              }
            ]
          },
          "name": {
            "type": "string"
          },
          "type": {
            "type": "string",
            "enum": [
              "digicert"
            ]
          },
          "baseUrl": {
            "description": "The base URL of the used digicert instance.",
            "type": "string",
            "enum": [
              "https://www.digicert.com/",
              "https://certcentral.digicert.eu/"
            ]
          },
          "productId": {
            "description": "One of the DigiCert product identifier an exhaustive list can be found here: https://dev.digicert.com/en/certcentral-apis/services-api/glossary.html#product-identifiers",
            "type": "string"
          },
          "apiCredentials": {
            "example": "myRawCredentials",
            "type": "string",
            "description": "Name of the `raw` [credentials](#tag/security.credentials) containing the API key to authenticate on the PKI"
          },
          "organizationId": {
            "type": "integer",
            "format": "int32"
          },
          "caCertId": {
            "type": "string",
            "nullable": true
          },
          "retryInterval": {
            "nullable": true,
            "type": "string",
            "format": "Finite Duration",
            "pattern": "^([0-9]+) *(ms|millisecond|milliseconds|s|second|seconds|m|minute|minutes|h|hour|hours|d|day|days)$",
            "example": "5 seconds"
          },
          "skipApproval": {
            "type": "boolean",
            "nullable": true
          },
          "customConnectorDataMapping": {
            "nullable": true,
            "type": "object",
            "additionalProperties": {
              "type": "string"
            }
          },
          "timeout": {
            "nullable": true,
            "type": "string",
            "format": "Finite Duration",
            "pattern": "^([0-9]+) *(ms|millisecond|milliseconds|s|second|seconds|m|minute|minutes|h|hour|hours|d|day|days)$",
            "example": "5 seconds"
          },
          "proxy": {
            "type": "string",
            "nullable": true
          },
          "queue": {
            "type": "string",
            "nullable": true
          },
          "status": {
            "allOf": [
              {
                "$ref": "#/components/schemas/PKIConnectorStatus"
              }
            ]
          }
        },
        "required": [
          "_id",
          "name",
          "type",
          "baseUrl",
          "apiCredentials",
          "organizationId"
        ]
      },
      "EJBCAConnectorResponse": {
        "title": "EJBCA",
        "properties": {
          "_id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/Id"
              }
            ]
          },
          "name": {
            "type": "string"
          },
          "type": {
            "type": "string",
            "enum": [
              "ejbca"
            ]
          },
          "endPoint": {
            "type": "string"
          },
          "profile": {
            "type": "string"
          },
          "caName": {
            "type": "string"
          },
          "eeProfile": {
            "type": "string",
            "nullable": true
          },
          "authenticationCredentials": {
            "example": "myCertificateCredentials",
            "description": "Name of the `certificate` [credentials](#tag/security.credentials) to use to authenticate on the PKI",
            "type": "string"
          },
          "timeout": {
            "nullable": true,
            "type": "string",
            "format": "Finite Duration",
            "pattern": "^([0-9]+) *(ms|millisecond|milliseconds|s|second|seconds|m|minute|minutes|h|hour|hours|d|day|days)$",
            "example": "5 seconds"
          },
          "proxy": {
            "type": "string",
            "nullable": true
          },
          "queue": {
            "type": "string",
            "nullable": true
          },
          "status": {
            "allOf": [
              {
                "$ref": "#/components/schemas/PKIConnectorStatus"
              }
            ]
          }
        },
        "required": [
          "_id",
          "name",
          "type",
          "endPoint",
          "profile",
          "caName",
          "authenticationCredentials"
        ]
      },
      "EntrustConnectorResponse": {
        "title": "Entrust Certificate Services",
        "properties": {
          "_id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/Id"
              }
            ]
          },
          "name": {
            "type": "string"
          },
          "type": {
            "type": "string",
            "enum": [
              "entrust"
            ]
          },
          "loginCredentials": {
            "example": "myPasswordCredentials",
            "description": "Name of the `password` [credentials](#tag/security.credentials) to use for technical account on the PKI",
            "type": "string"
          },
          "certType": {
            "type": "string"
          },
          "requesterDefaultMail": {
            "type": "string"
          },
          "requesterName": {
            "type": "string",
            "nullable": true
          },
          "requesterPhone": {
            "type": "string",
            "nullable": true
          },
          "certLifetime": {
            "nullable": true,
            "type": "string",
            "format": "Finite Duration",
            "pattern": "^([0-9]+) *(ms|millisecond|milliseconds|s|second|seconds|m|minute|minutes|h|hour|hours|d|day|days)$",
            "example": "5 seconds"
          },
          "clientId": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "authenticationCredentials": {
            "example": "myCertificateCredentials",
            "description": "Name of the `certificate` [credentials](#tag/security.credentials) to use to authenticate on the PKI",
            "type": "string"
          },
          "timeout": {
            "nullable": true,
            "type": "string",
            "format": "Finite Duration",
            "pattern": "^([0-9]+) *(ms|millisecond|milliseconds|s|second|seconds|m|minute|minutes|h|hour|hours|d|day|days)$",
            "example": "5 seconds"
          },
          "proxy": {
            "type": "string",
            "nullable": true
          },
          "queue": {
            "type": "string",
            "nullable": true
          },
          "status": {
            "allOf": [
              {
                "$ref": "#/components/schemas/PKIConnectorStatus"
              }
            ]
          }
        },
        "required": [
          "_id",
          "name",
          "type",
          "loginCredentials",
          "authenticationCredentials",
          "certType",
          "requesterDefaultMail"
        ]
      },
      "IDCAConnectorResponse": {
        "title": "IDCA",
        "properties": {
          "_id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/Id"
              }
            ]
          },
          "name": {
            "type": "string"
          },
          "type": {
            "type": "string",
            "enum": [
              "idca"
            ]
          },
          "endPoint": {
            "type": "string"
          },
          "profile": {
            "type": "string"
          },
          "authenticationCredentials": {
            "example": "myCertificateCredentials",
            "description": "Name of the `certificate` [credentials](#tag/security.credentials) to use to authenticate on the PKI",
            "type": "string",
            "nullable": true
          },
          "timeout": {
            "allOf": [
              {
                "$ref": "#/components/schemas/FiniteDuration"
              }
            ],
            "nullable": true
          },
          "proxy": {
            "type": "string",
            "nullable": true
          },
          "queue": {
            "type": "string",
            "nullable": true
          },
          "status": {
            "allOf": [
              {
                "$ref": "#/components/schemas/PKIConnectorStatus"
              }
            ]
          }
        },
        "required": [
          "_id",
          "name",
          "type",
          "endPoint",
          "profile",
          "authenticationCredentials"
        ]
      },
      "SecretString": {
        "type": "object",
        "properties": {
          "value": {
            "type": "string",
            "nullable": true,
            "description": "Value of the secret that will be passed to Horizon",
            "example": "zxNT49BtECRYaRYx ..."
          }
        }
      },
      "IntegratedCAConnectorResponse": {
        "title": "Integrated CA",
        "properties": {
          "_id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/Id"
              }
            ]
          },
          "name": {
            "type": "string"
          },
          "type": {
            "type": "string",
            "enum": [
              "integrated"
            ]
          },
          "caKey": {
            "nullable": true,
            "type": "object",
            "allOf": [
              {
                "$ref": "#/components/schemas/SecretString"
              }
            ]
          },
          "caCert": {
            "type": "string",
            "nullable": true
          },
          "crlPath": {
            "type": "string",
            "nullable": true
          },
          "crlLifetime": {
            "nullable": true,
            "type": "string",
            "format": "Finite Duration",
            "pattern": "^([0-9]+) *(ms|millisecond|milliseconds|s|second|seconds|m|minute|minutes|h|hour|hours|d|day|days)$",
            "example": "5 seconds"
          },
          "certType": {
            "type": "string",
            "nullable": true
          },
          "signAlg": {
            "type": "string",
            "nullable": true
          },
          "crtLifetime": {
            "nullable": true,
            "type": "string",
            "format": "Finite Duration",
            "pattern": "^([0-9]+) *(ms|millisecond|milliseconds|s|second|seconds|m|minute|minutes|h|hour|hours|d|day|days)$",
            "example": "5 seconds"
          },
          "crtBackDate": {
            "nullable": true,
            "type": "string",
            "format": "Finite Duration",
            "pattern": "^([0-9]+) *(ms|millisecond|milliseconds|s|second|seconds|m|minute|minutes|h|hour|hours|d|day|days)$",
            "example": "5 seconds"
          },
          "checkPop": {
            "type": "boolean",
            "nullable": true
          },
          "queue": {
            "type": "string",
            "nullable": true
          },
          "status": {
            "allOf": [
              {
                "$ref": "#/components/schemas/PKIConnectorStatus"
              }
            ]
          },
          "cryptoType": {
            "type": "string",
            "enum": [
              "legacy",
              "hybrid",
              "pqc"
            ]
          }
        },
        "required": [
          "_id",
          "name",
          "type",
          "cryptoType"
        ]
      },
      "FCMSConnectorResponse": {
        "title": "FISid",
        "properties": {
          "_id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/Id"
              }
            ]
          },
          "name": {
            "type": "string"
          },
          "type": {
            "type": "string",
            "enum": [
              "fcms"
            ]
          },
          "endPoint": {
            "type": "string"
          },
          "apiCredentials": {
            "example": "myRawCredentials",
            "type": "string",
            "description": "Name of the `raw` [credentials](#tag/security.credentials) containing the API key to authenticate on the PKI"
          },
          "templateId": {
            "type": "integer",
            "format": "int32"
          },
          "defaultOwner": {
            "type": "string"
          },
          "authenticationDomainId": {
            "type": "integer",
            "format": "int32"
          },
          "ownerGroups": {
            "type": "string",
            "nullable": true
          },
          "deleteOnRevoke": {
            "type": "boolean"
          },
          "timeout": {
            "nullable": true,
            "type": "string",
            "format": "Finite Duration",
            "pattern": "^([0-9]+) *(ms|millisecond|milliseconds|s|second|seconds|m|minute|minutes|h|hour|hours|d|day|days)$",
            "example": "5 seconds"
          },
          "proxy": {
            "type": "string",
            "nullable": true
          },
          "queue": {
            "type": "string",
            "nullable": true
          },
          "status": {
            "allOf": [
              {
                "$ref": "#/components/schemas/PKIConnectorStatus"
              }
            ]
          }
        },
        "required": [
          "_id",
          "name",
          "type",
          "endPoint",
          "apiCredentials",
          "templateId",
          "defaultOwner",
          "authenticationDomainId",
          "deleteOnRevoke"
        ]
      },
      "GSAtlasConnectorResponse": {
        "title": "GlobalSign Atlas",
        "properties": {
          "_id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/Id"
              }
            ]
          },
          "name": {
            "type": "string"
          },
          "type": {
            "type": "string",
            "enum": [
              "gsatlas"
            ]
          },
          "loginCredentials": {
            "example": "myPasswordCredentials",
            "description": "Name of the `password` [credentials](#tag/security.credentials) to use for technical account on the PKI",
            "type": "string"
          },
          "hashAlgorithm": {
            "type": "string",
            "nullable": true
          },
          "certificateUsage": {
            "type": "string",
            "nullable": true
          },
          "retryInterval": {
            "nullable": true,
            "type": "string",
            "format": "Finite Duration",
            "pattern": "^([0-9]+) *(ms|millisecond|milliseconds|s|second|seconds|m|minute|minutes|h|hour|hours|d|day|days)$",
            "example": "5 seconds"
          },
          "authenticationCredentials": {
            "example": "myCertificateCredentials",
            "description": "Name of the `certificate` [credentials](#tag/security.credentials) to use to authenticate on the PKI",
            "type": "string"
          },
          "timeout": {
            "nullable": true,
            "type": "string",
            "format": "Finite Duration",
            "pattern": "^([0-9]+) *(ms|millisecond|milliseconds|s|second|seconds|m|minute|minutes|h|hour|hours|d|day|days)$",
            "example": "5 seconds"
          },
          "proxy": {
            "type": "string",
            "nullable": true
          },
          "queue": {
            "type": "string",
            "nullable": true
          },
          "status": {
            "allOf": [
              {
                "$ref": "#/components/schemas/PKIConnectorStatus"
              }
            ]
          }
        },
        "required": [
          "_id",
          "name",
          "type",
          "loginCredentials",
          "authenticationCredentials"
        ]
      },
      "GSMSSLConnectorResponse": {
        "title": "GlobalSign MSSL",
        "properties": {
          "_id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/Id"
              }
            ]
          },
          "name": {
            "type": "string"
          },
          "type": {
            "type": "string",
            "enum": [
              "gsmssl"
            ]
          },
          "endpointType": {
            "type": "string"
          },
          "profile": {
            "type": "string"
          },
          "loginCredentials": {
            "example": "myPasswordCredentials",
            "description": "Name of the `password` [credentials](#tag/security.credentials) to use for technical account on the PKI",
            "type": "string"
          },
          "domainId": {
            "type": "string"
          },
          "certificateValidity": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "defaultEmail": {
            "type": "string",
            "nullable": true
          },
          "defaultPhone": {
            "type": "string",
            "nullable": true
          },
          "retryInterval": {
            "nullable": true,
            "type": "string",
            "format": "Finite Duration",
            "pattern": "^([0-9]+) *(ms|millisecond|milliseconds|s|second|seconds|m|minute|minutes|h|hour|hours|d|day|days)$",
            "example": "5 seconds"
          },
          "timeout": {
            "nullable": true,
            "type": "string",
            "format": "Finite Duration",
            "pattern": "^([0-9]+) *(ms|millisecond|milliseconds|s|second|seconds|m|minute|minutes|h|hour|hours|d|day|days)$",
            "example": "5 seconds"
          },
          "proxy": {
            "type": "string",
            "nullable": true
          },
          "queue": {
            "type": "string",
            "nullable": true
          },
          "status": {
            "allOf": [
              {
                "$ref": "#/components/schemas/PKIConnectorStatus"
              }
            ]
          }
        },
        "required": [
          "_id",
          "name",
          "type",
          "endpointType",
          "profile",
          "loginCredentials",
          "domainId"
        ]
      },
      "OTPKIConnectorResponse": {
        "title": "OpenTrust PKI",
        "properties": {
          "_id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/Id"
              }
            ]
          },
          "name": {
            "type": "string"
          },
          "type": {
            "type": "string",
            "enum": [
              "otpki"
            ]
          },
          "endPoint": {
            "type": "string"
          },
          "profile": {
            "type": "string"
          },
          "emailMap": {
            "type": "string",
            "nullable": true
          },
          "sanDnsMap": {
            "type": "string",
            "nullable": true
          },
          "sanEmailMap": {
            "type": "string",
            "nullable": true
          },
          "uidMap": {
            "type": "string",
            "nullable": true
          },
          "zone": {
            "type": "string",
            "nullable": true
          },
          "zoneLabel": {
            "type": "string",
            "nullable": true,
            "description": "The name of the label where the zone value is stored on an enrolled certificate"
          },
          "authenticationCredentials": {
            "example": "myCertificateCredentials",
            "description": "Name of the `certificate` [credentials](#tag/security.credentials) to use to authenticate on the PKI",
            "type": "string"
          },
          "timeout": {
            "nullable": true,
            "type": "string",
            "format": "Finite Duration",
            "pattern": "^([0-9]+) *(ms|millisecond|milliseconds|s|second|seconds|m|minute|minutes|h|hour|hours|d|day|days)$",
            "example": "5 seconds"
          },
          "proxy": {
            "type": "string",
            "nullable": true
          },
          "queue": {
            "type": "string",
            "nullable": true
          },
          "status": {
            "allOf": [
              {
                "$ref": "#/components/schemas/PKIConnectorStatus"
              }
            ]
          }
        },
        "required": [
          "_id",
          "name",
          "type",
          "endPoint",
          "profile",
          "authenticationCredentials"
        ]
      },
      "MetaPKIConnectorResponse": {
        "title": "MetaPKI",
        "properties": {
          "_id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/Id"
              }
            ]
          },
          "name": {
            "type": "string"
          },
          "type": {
            "type": "string",
            "enum": [
              "metapki"
            ]
          },
          "endPoint": {
            "type": "string",
            "description": "MetaPKI base endpoint"
          },
          "endPointIssuingCA": {
            "type": "string",
            "description": "Certificate authority of the endpoint"
          },
          "profile": {
            "type": "string"
          },
          "workflow": {
            "type": "string",
            "nullable": true
          },
          "profilCle": {
            "type": "string",
            "nullable": true
          },
          "validDays": {
            "allOf": [
              {
                "$ref": "#/components/schemas/FiniteDuration"
              }
            ]
          },
          "formPorteurName": {
            "type": "string",
            "nullable": true
          },
          "authenticationCredentials": {
            "example": "myCertificateCredentials",
            "description": "Name of the `certificate` [credentials](#tag/security.credentials) to use to authenticate on the PKI",
            "type": "string",
            "nullable": true
          },
          "timeout": {
            "allOf": [
              {
                "$ref": "#/components/schemas/FiniteDuration"
              }
            ]
          },
          "proxy": {
            "type": "string",
            "nullable": true
          },
          "queue": {
            "type": "string",
            "nullable": true
          },
          "status": {
            "allOf": [
              {
                "$ref": "#/components/schemas/PKIConnectorStatus"
              }
            ]
          }
        },
        "required": [
          "_id",
          "name",
          "type",
          "endPoint",
          "endPointIssuingCA",
          "profile",
          "workflow",
          "profilCle"
        ]
      },
      "NameshieldResponse": {
        "title": "Nameshield",
        "properties": {
          "_id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/Id"
              }
            ]
          },
          "name": {
            "type": "string"
          },
          "type": {
            "type": "string",
            "enum": [
              "nameshield"
            ]
          },
          "apiCredentials": {
            "type": "string",
            "description": "Name of the `api-key` [credentials](#tag/security.credentials) to use to authenticate on the PKI"
          },
          "environment": {
            "type": "string",
            "enum": [
              "production",
              "testing"
            ],
            "description": "The testing environment will use https://ote-api.nameshield.net endpoint \nand the production will use https://api.nameshield.net\n"
          },
          "organizationId": {
            "type": "string"
          },
          "productId": {
            "type": "string"
          },
          "customerId": {
            "type": "string"
          },
          "timeout": {
            "nullable": true,
            "type": "string",
            "format": "Finite Duration",
            "pattern": "^([0-9]+) *(ms|millisecond|milliseconds|s|second|seconds|m|minute|minutes|h|hour|hours|d|day|days)$",
            "example": "5 seconds"
          },
          "proxy": {
            "type": "string",
            "nullable": true
          },
          "queue": {
            "type": "string",
            "nullable": true
          },
          "status": {
            "allOf": [
              {
                "$ref": "#/components/schemas/PKIConnectorStatus"
              }
            ]
          }
        },
        "required": [
          "_id",
          "name",
          "type",
          "apiCredentials",
          "environment",
          "organizationId",
          "productId",
          "customerId"
        ]
      },
      "NexusCMConnectorResponse": {
        "title": "Nexus Certificate Manager",
        "properties": {
          "_id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/Id"
              }
            ]
          },
          "name": {
            "type": "string"
          },
          "type": {
            "type": "string",
            "enum": [
              "nexuscm"
            ]
          },
          "endPoint": {
            "type": "string"
          },
          "endPointIssuingCA": {
            "type": "string"
          },
          "procedure": {
            "type": "string"
          },
          "authenticationCredentials": {
            "example": "myCertificateCredentials",
            "description": "Name of the `certificate` [credentials](#tag/security.credentials) to use to authenticate on the PKI",
            "type": "string"
          },
          "timeout": {
            "nullable": true,
            "type": "string",
            "format": "Finite Duration",
            "pattern": "^([0-9]+) *(ms|millisecond|milliseconds|s|second|seconds|m|minute|minutes|h|hour|hours|d|day|days)$",
            "example": "5 seconds"
          },
          "proxy": {
            "type": "string",
            "nullable": true
          },
          "queue": {
            "type": "string",
            "nullable": true
          },
          "status": {
            "allOf": [
              {
                "$ref": "#/components/schemas/PKIConnectorStatus"
              }
            ]
          }
        },
        "required": [
          "_id",
          "name",
          "type",
          "endPoint",
          "endPointIssuingCA",
          "procedure",
          "authenticationCredentials"
        ]
      },
      "SectigoCMSConnectorResponse": {
        "title": "Sectigo CMS",
        "properties": {
          "_id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/Id"
              }
            ]
          },
          "name": {
            "type": "string"
          },
          "type": {
            "type": "string",
            "enum": [
              "sectigo"
            ]
          },
          "loginCredentials": {
            "example": "myPasswordCredentials",
            "description": "Name of the `password` [credentials](#tag/security.credentials) to use to authenticate on the PKI",
            "type": "string"
          },
          "customerUri": {
            "type": "string"
          },
          "organizationId": {
            "type": "integer"
          },
          "profile": {
            "type": "string"
          },
          "retryInterval": {
            "allOf": [
              {
                "$ref": "#/components/schemas/FiniteDuration"
              }
            ]
          },
          "validDays": {
            "allOf": [
              {
                "$ref": "#/components/schemas/FiniteDuration"
              }
            ]
          },
          "endpointType": {
            "type": "string",
            "enum": [
              "eu",
              "hard",
              "default"
            ]
          },
          "timeout": {
            "allOf": [
              {
                "$ref": "#/components/schemas/FiniteDuration"
              }
            ],
            "nullable": true
          },
          "proxy": {
            "type": "string",
            "nullable": true
          },
          "queue": {
            "type": "string",
            "nullable": true
          },
          "status": {
            "allOf": [
              {
                "$ref": "#/components/schemas/PKIConnectorStatus"
              }
            ]
          }
        },
        "required": [
          "_id",
          "name",
          "type",
          "loginCredentials",
          "customerUri",
          "organizationId",
          "profile"
        ]
      },
      "SwissSignConnectorResponse": {
        "title": "Swiss Sign managed PKI",
        "properties": {
          "_id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/Id"
              }
            ]
          },
          "name": {
            "type": "string"
          },
          "proxy": {
            "type": "string",
            "nullable": true
          },
          "timeout": {
            "nullable": true,
            "type": "string",
            "format": "Finite Duration",
            "pattern": "^([0-9]+) *(ms|millisecond|milliseconds|s|second|seconds|m|minute|minutes|h|hour|hours|d|day|days)$",
            "example": "5 seconds"
          },
          "queue": {
            "type": "string",
            "nullable": true
          },
          "type": {
            "type": "string",
            "enum": [
              "swisssign"
            ]
          },
          "mpkiCredentials": {
            "example": "myPasswordCredentials",
            "description": "Name of the `password` [credentials](#tag/security.credentials) to use to authenticate on the PKI. \nIt should contains the mpkiId as the login and the apiKey as password.\n",
            "type": "string"
          },
          "endPoint": {
            "type": "string",
            "description": "Swiss base endpoint",
            "example": "https://api.ra.pre.swisssign.ch"
          },
          "productUuid": {
            "type": "string",
            "description": "The product Uuid that need to be retrieved from the swiss sign api's (<endpoints>/v2/clients)",
            "example": "pma-533143cc-5v11-4b0d-7634-c69g93c02e63"
          },
          "status": {
            "allOf": [
              {
                "$ref": "#/components/schemas/PKIConnectorStatus"
              }
            ]
          }
        },
        "required": [
          "_id",
          "name",
          "type",
          "mpkiCredentials",
          "endPoint",
          "productUuid"
        ]
      },
      "PKIResponses": {
        "oneOf": [
          {
            "$ref": "#/components/schemas/StreamConnectorResponse"
          },
          {
            "$ref": "#/components/schemas/AcmeEnrollConnectorResponse"
          },
          {
            "$ref": "#/components/schemas/AcmeRevocationConnectorResponse"
          },
          {
            "$ref": "#/components/schemas/EverTrustADCSConnectorResponse"
          },
          {
            "$ref": "#/components/schemas/ADCSConnectorResponse"
          },
          {
            "$ref": "#/components/schemas/AWSACMPCAConnectorResponse"
          },
          {
            "$ref": "#/components/schemas/CertEuropeConnectorResponse"
          },
          {
            "$ref": "#/components/schemas/CMPConnectorResponse"
          },
          {
            "$ref": "#/components/schemas/DigiCertConnectorResponse"
          },
          {
            "$ref": "#/components/schemas/EJBCAConnectorResponse"
          },
          {
            "$ref": "#/components/schemas/EntrustConnectorResponse"
          },
          {
            "$ref": "#/components/schemas/IDCAConnectorResponse"
          },
          {
            "$ref": "#/components/schemas/IntegratedCAConnectorResponse"
          },
          {
            "$ref": "#/components/schemas/FCMSConnectorResponse"
          },
          {
            "$ref": "#/components/schemas/GSAtlasConnectorResponse"
          },
          {
            "$ref": "#/components/schemas/GSMSSLConnectorResponse"
          },
          {
            "$ref": "#/components/schemas/OTPKIConnectorResponse"
          },
          {
            "$ref": "#/components/schemas/MetaPKIConnectorResponse"
          },
          {
            "$ref": "#/components/schemas/NameshieldResponse"
          },
          {
            "$ref": "#/components/schemas/NexusCMConnectorResponse"
          },
          {
            "$ref": "#/components/schemas/SectigoCMSConnectorResponse"
          },
          {
            "$ref": "#/components/schemas/SwissSignConnectorResponse"
          }
        ]
      },
      "PkiConnector001": {
        "allOf": [
          {
            "$ref": "#/components/schemas/BasicError"
          }
        ],
        "description": "Unexpected error",
        "properties": {
          "error": {
            "enum": [
              "PKI-CONNECTOR-001"
            ]
          },
          "message": {
            "enum": [
              "Unexpected error"
            ]
          },
          "title": {
            "enum": [
              "Unexpected error"
            ]
          }
        },
        "title": "PKI-CONNECTOR-001",
        "required": [
          "error",
          "message",
          "title"
        ]
      },
      "StreamConnector": {
        "title": "Stream",
        "properties": {
          "name": {
            "type": "string"
          },
          "type": {
            "type": "string",
            "enum": [
              "stream"
            ]
          },
          "endPoint": {
            "type": "string",
            "description": "Stream's base endpoint"
          },
          "template": {
            "type": "string",
            "description": "Stream's certificate template to use for enrollment"
          },
          "ca": {
            "type": "string",
            "description": "Stream's technical name of the CA on which to enroll"
          },
          "loginCredentials": {
            "example": "myPasswordCredentials",
            "description": "Name of the `password` [credentials](#tag/security.credentials) to use to authenticate on the PKI",
            "type": "string",
            "nullable": true
          },
          "authenticationCredentials": {
            "example": "myCertificateCredentials",
            "description": "Name of the `certificate` [credentials](#tag/security.credentials) to use to authenticate on the PKI",
            "type": "string",
            "nullable": true
          },
          "timeout": {
            "nullable": true,
            "type": "string",
            "format": "Finite Duration",
            "pattern": "^([0-9]+) *(ms|millisecond|milliseconds|s|second|seconds|m|minute|minutes|h|hour|hours|d|day|days)$",
            "example": "5 seconds"
          },
          "proxy": {
            "type": "string",
            "nullable": true
          },
          "queue": {
            "type": "string",
            "nullable": true
          }
        },
        "required": [
          "name",
          "type",
          "endPoint",
          "template",
          "ca"
        ]
      },
      "AcmeEnrollConnector": {
        "title": "Acme enroll",
        "description": "Used to enroll certificate using the ACME protocol with DNS challenge on compatible public PKI",
        "properties": {
          "name": {
            "type": "string"
          },
          "type": {
            "type": "string",
            "enum": [
              "acmeenroll"
            ]
          },
          "endPoint": {
            "type": "string",
            "description": "The directory url of the ACME endpoint"
          },
          "timeout": {
            "allOf": [
              {
                "$ref": "#/components/schemas/FiniteDuration"
              }
            ],
            "example": "10s"
          },
          "proxy": {
            "type": "string",
            "nullable": true
          },
          "queue": {
            "type": "string",
            "nullable": true
          },
          "eab": {
            "type": "string",
            "nullable": true,
            "description": "`password` credentials name to use for External Account Binding"
          },
          "accountKeyType": {
            "allOf": [
              {
                "$ref": "#/components/schemas/KeyType"
              }
            ],
            "description": "The key type to use to generate the account key"
          },
          "accountEmail": {
            "type": "string",
            "nullable": true,
            "description": "Email to associate with the account"
          },
          "rotateAccount": {
            "type": "boolean",
            "nullable": true,
            "description": "If enabled, regenerate the account (does not need to be specified on creation)"
          },
          "domainDictionaryProvider": {
            "nullable": true,
            "description": "The dictionary provider",
            "allOf": [
              {
                "$ref": "#/components/schemas/DomainDictionaryProviders"
              }
            ]
          },
          "dnsChallengeProvider": {
            "description": "DNS Provider configuration to provision the DNS challenge",
            "allOf": [
              {
                "$ref": "#/components/schemas/DnsChallengeProviders"
              }
            ]
          }
        },
        "required": [
          "name",
          "endPoint",
          "timeout",
          "type",
          "accountKeyType",
          "dnsChallengeProvider"
        ]
      },
      "AcmeRevocationConnector": {
        "title": "Acme revocation",
        "description": "Used to revoke certificate using the acme protocol on compatible public PKI",
        "properties": {
          "name": {
            "type": "string"
          },
          "type": {
            "type": "string",
            "enum": [
              "acmerevoke"
            ]
          },
          "acmeDirectoryUrl": {
            "type": "string",
            "description": "The directory url of the ACME endpoint"
          },
          "timeout": {
            "allOf": [
              {
                "$ref": "#/components/schemas/FiniteDuration"
              }
            ]
          },
          "proxy": {
            "type": "string",
            "nullable": true
          },
          "queue": {
            "type": "string",
            "nullable": true
          }
        },
        "required": [
          "name",
          "acmeDirectoryUrl",
          "type"
        ]
      },
      "EverTrustADCSConnector": {
        "title": "ADCS",
        "properties": {
          "name": {
            "type": "string"
          },
          "type": {
            "type": "string",
            "enum": [
              "evtadcs"
            ]
          },
          "endPoint": {
            "type": "string"
          },
          "caConfig": {
            "type": "string"
          },
          "profile": {
            "type": "string"
          },
          "domain": {
            "type": "string"
          },
          "loginCredentials": {
            "description": "Name of the `password` [credentials](#tag/security.credentials) to use for technical account on the PKI",
            "type": "string"
          },
          "enrollmentCredentials": {
            "description": "Name of the `certificate` [credentials](#tag/security.credentials) to use to enroll on the PKI",
            "type": "string"
          },
          "timeout": {
            "nullable": true,
            "type": "string",
            "format": "Finite Duration",
            "pattern": "^([0-9]+) *(ms|millisecond|milliseconds|s|second|seconds|m|minute|minutes|h|hour|hours|d|day|days)$",
            "example": "5 seconds"
          },
          "proxy": {
            "type": "string",
            "nullable": true
          },
          "queue": {
            "type": "string",
            "nullable": true
          }
        },
        "required": [
          "name",
          "type",
          "endPoint",
          "caConfig",
          "profile",
          "domain",
          "loginCredentials",
          "enrollmentCredentials"
        ]
      },
      "ADCSConnector": {
        "title": "ADCS (deprecated)",
        "properties": {
          "name": {
            "type": "string"
          },
          "type": {
            "type": "string",
            "enum": [
              "msadcs"
            ]
          },
          "endPoint": {
            "type": "string"
          },
          "profile": {
            "type": "string"
          },
          "loginCredentials": {
            "example": "myPasswordCredentials",
            "description": "Name of the `password` [credentials](#tag/security.credentials) to use for technical account on the PKI",
            "type": "string"
          },
          "enrollmentCredentials": {
            "example": "myCertificateCredentials",
            "description": "Name of the `certificate` [credentials](#tag/security.credentials) to use to enroll on the PKI",
            "type": "string"
          },
          "timeout": {
            "nullable": true,
            "type": "string",
            "format": "Finite Duration",
            "pattern": "^([0-9]+) *(ms|millisecond|milliseconds|s|second|seconds|m|minute|minutes|h|hour|hours|d|day|days)$",
            "example": "5 seconds"
          },
          "proxy": {
            "type": "string",
            "nullable": true
          },
          "queue": {
            "type": "string",
            "nullable": true
          }
        },
        "required": [
          "name",
          "type",
          "endPoint",
          "profile",
          "loginCredentials",
          "enrollmentCredentials"
        ]
      },
      "AWSACMPCAConnector": {
        "title": "AWS ACM PCA",
        "properties": {
          "name": {
            "type": "string"
          },
          "type": {
            "type": "string",
            "enum": [
              "awsacmpca"
            ]
          },
          "region": {
            "type": "string"
          },
          "caArn": {
            "type": "string"
          },
          "accessCredentials": {
            "type": "string",
            "nullable": true,
            "example": "myPasswordCredentials",
            "description": "Name of the `password` [credentials](#tag/security.credentials) containing Access Key Id and Secret Access Key. If not defined, an account present in environment variables can be used."
          },
          "templateArn": {
            "type": "string",
            "nullable": true
          },
          "roleArn": {
            "type": "string",
            "nullable": true
          },
          "validDays": {
            "nullable": true,
            "type": "string",
            "format": "Finite Duration",
            "pattern": "^([0-9]+) *(ms|millisecond|milliseconds|s|second|seconds|m|minute|minutes|h|hour|hours|d|day|days)$",
            "example": "5 seconds"
          },
          "retryInterval": {
            "nullable": true,
            "type": "string",
            "format": "Finite Duration",
            "pattern": "^([0-9]+) *(ms|millisecond|milliseconds|s|second|seconds|m|minute|minutes|h|hour|hours|d|day|days)$",
            "example": "5 seconds"
          },
          "signingHash": {
            "type": "string",
            "nullable": true
          },
          "certificateUsage": {
            "type": "string",
            "nullable": true
          },
          "caPolicyOid": {
            "type": "string",
            "nullable": true
          },
          "timeout": {
            "nullable": true,
            "type": "string",
            "format": "Finite Duration",
            "pattern": "^([0-9]+) *(ms|millisecond|milliseconds|s|second|seconds|m|minute|minutes|h|hour|hours|d|day|days)$",
            "example": "5 seconds"
          },
          "proxy": {
            "type": "string",
            "nullable": true
          },
          "queue": {
            "type": "string",
            "nullable": true
          }
        },
        "required": [
          "name",
          "type",
          "region",
          "caArn"
        ]
      },
      "CertEuropeConnector": {
        "title": "CertEurope",
        "properties": {
          "name": {
            "type": "string"
          },
          "type": {
            "type": "string",
            "enum": [
              "certeurope"
            ]
          },
          "endPoint": {
            "type": "string"
          },
          "loginCredentials": {
            "example": "myPasswordCredentials",
            "description": "Name of the `password` [credentials](#tag/security.credentials) to use for technical account on the PKI",
            "type": "string"
          },
          "offerId": {
            "type": "string"
          },
          "organizationId": {
            "type": "string"
          },
          "revReason": {
            "type": "string",
            "nullable": true
          },
          "retryInterval": {
            "nullable": true,
            "type": "string",
            "format": "Finite Duration",
            "pattern": "^([0-9]+) *(ms|millisecond|milliseconds|s|second|seconds|m|minute|minutes|h|hour|hours|d|day|days)$",
            "example": "5 seconds"
          },
          "authenticationCredentials": {
            "description": "Name of the `certificate` [credentials](#tag/security.credentials) to use to authenticate on the PKI",
            "type": "string",
            "example": "myCertificateCredentials"
          },
          "timeout": {
            "nullable": true,
            "type": "string",
            "format": "Finite Duration",
            "pattern": "^([0-9]+) *(ms|millisecond|milliseconds|s|second|seconds|m|minute|minutes|h|hour|hours|d|day|days)$",
            "example": "5 seconds"
          },
          "proxy": {
            "type": "string",
            "nullable": true
          },
          "queue": {
            "type": "string",
            "nullable": true
          }
        },
        "required": [
          "name",
          "type",
          "endPoint",
          "loginCredentials",
          "offerId",
          "authenticationCredentials",
          "organizationId"
        ]
      },
      "CMPConnector": {
        "title": "CS-Novidy's TrustyKey",
        "properties": {
          "name": {
            "type": "string"
          },
          "type": {
            "type": "string",
            "enum": [
              "cmp"
            ]
          },
          "endPoint": {
            "type": "string"
          },
          "profile": {
            "type": "string"
          },
          "issuerCADN": {
            "type": "string"
          },
          "issuerCACert": {
            "type": "string"
          },
          "signerCredentials": {
            "example": "myCertificateCredentials",
            "description": "Name of the `certificate` [credentials](#tag/security.credentials) to use to sign on the PKI",
            "type": "string"
          },
          "emailMap": {
            "type": "string",
            "nullable": true
          },
          "sanDnsMap": {
            "type": "string",
            "nullable": true
          },
          "cnMap": {
            "type": "string",
            "nullable": true
          },
          "profileMap": {
            "type": "string",
            "nullable": true
          },
          "issuerMap": {
            "type": "string",
            "nullable": true
          },
          "legacyCMPStyle": {
            "type": "boolean",
            "nullable": true
          },
          "authenticationCredentials": {
            "description": "Name of the `certificate` [credentials](#tag/security.credentials) to use to authenticate on the PKI",
            "type": "string"
          },
          "timeout": {
            "nullable": true,
            "type": "string",
            "format": "Finite Duration",
            "pattern": "^([0-9]+) *(ms|millisecond|milliseconds|s|second|seconds|m|minute|minutes|h|hour|hours|d|day|days)$",
            "example": "5 seconds"
          },
          "proxy": {
            "type": "string",
            "nullable": true
          },
          "queue": {
            "type": "string",
            "nullable": true
          }
        },
        "required": [
          "name",
          "type",
          "endPoint",
          "profile",
          "issuerCADN",
          "issuerCACert",
          "signerCredentials",
          "authenticationCredentials"
        ]
      },
      "DigiCertConnector": {
        "title": "DigiCert CertCentral",
        "properties": {
          "name": {
            "type": "string"
          },
          "type": {
            "type": "string",
            "enum": [
              "digicert"
            ]
          },
          "baseUrl": {
            "description": "The base URL of the used digicert instance.",
            "type": "string",
            "enum": [
              "https://www.digicert.com/",
              "https://certcentral.digicert.eu/"
            ]
          },
          "productId": {
            "description": "One of the DigiCert product identifier an exhaustive list can be found here: https://dev.digicert.com/en/certcentral-apis/services-api/glossary.html#product-identifiers",
            "type": "string"
          },
          "apiCredentials": {
            "example": "myRawCredentials",
            "type": "string",
            "description": "Name of the `raw` [credentials](#tag/security.credentials) containing the API key to authenticate on the PKI"
          },
          "organizationId": {
            "type": "integer",
            "format": "int32"
          },
          "caCertId": {
            "type": "string",
            "nullable": true
          },
          "retryInterval": {
            "nullable": true,
            "type": "string",
            "format": "Finite Duration",
            "pattern": "^([0-9]+) *(ms|millisecond|milliseconds|s|second|seconds|m|minute|minutes|h|hour|hours|d|day|days)$",
            "example": "5 seconds"
          },
          "skipApproval": {
            "type": "boolean",
            "nullable": true
          },
          "customConnectorDataMapping": {
            "nullable": true,
            "type": "object",
            "additionalProperties": {
              "type": "string"
            }
          },
          "timeout": {
            "nullable": true,
            "type": "string",
            "format": "Finite Duration",
            "pattern": "^([0-9]+) *(ms|millisecond|milliseconds|s|second|seconds|m|minute|minutes|h|hour|hours|d|day|days)$",
            "example": "5 seconds"
          },
          "proxy": {
            "type": "string",
            "nullable": true
          },
          "queue": {
            "type": "string",
            "nullable": true
          }
        },
        "required": [
          "name",
          "type",
          "baseUrl",
          "apiCredentials",
          "organizationId"
        ]
      },
      "EJBCAConnector": {
        "title": "EJBCA",
        "properties": {
          "name": {
            "type": "string"
          },
          "type": {
            "type": "string",
            "enum": [
              "ejbca"
            ]
          },
          "endPoint": {
            "type": "string"
          },
          "profile": {
            "type": "string"
          },
          "caName": {
            "type": "string"
          },
          "eeProfile": {
            "type": "string",
            "nullable": true
          },
          "authenticationCredentials": {
            "example": "myCertificateCredentials",
            "description": "Name of the `certificate` [credentials](#tag/security.credentials) to use to authenticate on the PKI",
            "type": "string"
          },
          "timeout": {
            "nullable": true,
            "type": "string",
            "format": "Finite Duration",
            "pattern": "^([0-9]+) *(ms|millisecond|milliseconds|s|second|seconds|m|minute|minutes|h|hour|hours|d|day|days)$",
            "example": "5 seconds"
          },
          "proxy": {
            "type": "string",
            "nullable": true
          },
          "queue": {
            "type": "string",
            "nullable": true
          }
        },
        "required": [
          "name",
          "type",
          "endPoint",
          "profile",
          "caName",
          "authenticationCredentials"
        ]
      },
      "EntrustConnector": {
        "title": "Entrust Certificate Services",
        "properties": {
          "name": {
            "type": "string"
          },
          "type": {
            "type": "string",
            "enum": [
              "entrust"
            ]
          },
          "loginCredentials": {
            "example": "myPasswordCredentials",
            "description": "Name of the `password` [credentials](#tag/security.credentials) to use for technical account on the PKI",
            "type": "string"
          },
          "certType": {
            "type": "string"
          },
          "requesterDefaultMail": {
            "type": "string"
          },
          "requesterName": {
            "type": "string",
            "nullable": true
          },
          "requesterPhone": {
            "type": "string",
            "nullable": true
          },
          "certLifetime": {
            "nullable": true,
            "type": "string",
            "format": "Finite Duration",
            "pattern": "^([0-9]+) *(ms|millisecond|milliseconds|s|second|seconds|m|minute|minutes|h|hour|hours|d|day|days)$",
            "example": "5 seconds"
          },
          "clientId": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "authenticationCredentials": {
            "example": "myCertificateCredentials",
            "description": "Name of the `certificate` [credentials](#tag/security.credentials) to use to authenticate on the PKI",
            "type": "string"
          },
          "timeout": {
            "nullable": true,
            "type": "string",
            "format": "Finite Duration",
            "pattern": "^([0-9]+) *(ms|millisecond|milliseconds|s|second|seconds|m|minute|minutes|h|hour|hours|d|day|days)$",
            "example": "5 seconds"
          },
          "proxy": {
            "type": "string",
            "nullable": true
          },
          "queue": {
            "type": "string",
            "nullable": true
          }
        },
        "required": [
          "name",
          "type",
          "loginCredentials",
          "authenticationCredentials",
          "certType",
          "requesterDefaultMail"
        ]
      },
      "IDCAConnector": {
        "title": "IDCA",
        "properties": {
          "name": {
            "type": "string"
          },
          "type": {
            "type": "string",
            "enum": [
              "idca"
            ]
          },
          "endPoint": {
            "type": "string"
          },
          "profile": {
            "type": "string"
          },
          "authenticationCredentials": {
            "example": "myCertificateCredentials",
            "description": "Name of the `certificate` [credentials](#tag/security.credentials) to use to authenticate on the PKI",
            "type": "string",
            "nullable": true
          },
          "timeout": {
            "allOf": [
              {
                "$ref": "#/components/schemas/FiniteDuration"
              }
            ],
            "nullable": true
          },
          "proxy": {
            "type": "string",
            "nullable": true
          },
          "queue": {
            "type": "string",
            "nullable": true
          }
        },
        "required": [
          "name",
          "type",
          "endPoint",
          "profile",
          "authenticationCredentials"
        ]
      },
      "IntegratedCAConnector": {
        "title": "Integrated CA",
        "properties": {
          "name": {
            "type": "string"
          },
          "type": {
            "type": "string",
            "enum": [
              "integrated"
            ]
          },
          "caKey": {
            "nullable": true,
            "type": "object",
            "allOf": [
              {
                "$ref": "#/components/schemas/SecretString"
              }
            ]
          },
          "caCert": {
            "type": "string",
            "nullable": true
          },
          "crlPath": {
            "type": "string",
            "nullable": true
          },
          "crlLifetime": {
            "nullable": true,
            "type": "string",
            "format": "Finite Duration",
            "pattern": "^([0-9]+) *(ms|millisecond|milliseconds|s|second|seconds|m|minute|minutes|h|hour|hours|d|day|days)$",
            "example": "5 seconds"
          },
          "certType": {
            "type": "string",
            "nullable": true
          },
          "signAlg": {
            "type": "string",
            "nullable": true
          },
          "crtLifetime": {
            "nullable": true,
            "type": "string",
            "format": "Finite Duration",
            "pattern": "^([0-9]+) *(ms|millisecond|milliseconds|s|second|seconds|m|minute|minutes|h|hour|hours|d|day|days)$",
            "example": "5 seconds"
          },
          "crtBackDate": {
            "nullable": true,
            "type": "string",
            "format": "Finite Duration",
            "pattern": "^([0-9]+) *(ms|millisecond|milliseconds|s|second|seconds|m|minute|minutes|h|hour|hours|d|day|days)$",
            "example": "5 seconds"
          },
          "checkPop": {
            "type": "boolean",
            "nullable": true
          },
          "queue": {
            "type": "string",
            "nullable": true
          },
          "cryptoType": {
            "type": "string",
            "enum": [
              "legacy",
              "hybrid",
              "pqc"
            ]
          }
        },
        "required": [
          "name",
          "type",
          "cryptoType"
        ]
      },
      "FCMSConnector": {
        "title": "FISid",
        "properties": {
          "name": {
            "type": "string"
          },
          "type": {
            "type": "string",
            "enum": [
              "fcms"
            ]
          },
          "endPoint": {
            "type": "string"
          },
          "apiCredentials": {
            "example": "myRawCredentials",
            "type": "string",
            "description": "Name of the `raw` [credentials](#tag/security.credentials) containing the API key to authenticate on the PKI"
          },
          "templateId": {
            "type": "integer",
            "format": "int32"
          },
          "defaultOwner": {
            "type": "string"
          },
          "authenticationDomainId": {
            "type": "integer",
            "format": "int32"
          },
          "ownerGroups": {
            "type": "string",
            "nullable": true
          },
          "deleteOnRevoke": {
            "type": "boolean"
          },
          "timeout": {
            "nullable": true,
            "type": "string",
            "format": "Finite Duration",
            "pattern": "^([0-9]+) *(ms|millisecond|milliseconds|s|second|seconds|m|minute|minutes|h|hour|hours|d|day|days)$",
            "example": "5 seconds"
          },
          "proxy": {
            "type": "string",
            "nullable": true
          },
          "queue": {
            "type": "string",
            "nullable": true
          }
        },
        "required": [
          "name",
          "type",
          "endPoint",
          "apiCredentials",
          "templateId",
          "defaultOwner",
          "authenticationDomainId",
          "deleteOnRevoke"
        ]
      },
      "GSAtlasConnector": {
        "title": "GlobalSign Atlas",
        "properties": {
          "name": {
            "type": "string"
          },
          "type": {
            "type": "string",
            "enum": [
              "gsatlas"
            ]
          },
          "loginCredentials": {
            "example": "myPasswordCredentials",
            "description": "Name of the `password` [credentials](#tag/security.credentials) to use for technical account on the PKI",
            "type": "string"
          },
          "hashAlgorithm": {
            "type": "string",
            "nullable": true
          },
          "certificateUsage": {
            "type": "string",
            "nullable": true
          },
          "retryInterval": {
            "nullable": true,
            "type": "string",
            "format": "Finite Duration",
            "pattern": "^([0-9]+) *(ms|millisecond|milliseconds|s|second|seconds|m|minute|minutes|h|hour|hours|d|day|days)$",
            "example": "5 seconds"
          },
          "authenticationCredentials": {
            "example": "myCertificateCredentials",
            "description": "Name of the `certificate` [credentials](#tag/security.credentials) to use to authenticate on the PKI",
            "type": "string"
          },
          "timeout": {
            "nullable": true,
            "type": "string",
            "format": "Finite Duration",
            "pattern": "^([0-9]+) *(ms|millisecond|milliseconds|s|second|seconds|m|minute|minutes|h|hour|hours|d|day|days)$",
            "example": "5 seconds"
          },
          "proxy": {
            "type": "string",
            "nullable": true
          },
          "queue": {
            "type": "string",
            "nullable": true
          }
        },
        "required": [
          "name",
          "type",
          "loginCredentials",
          "authenticationCredentials"
        ]
      },
      "GSMSSLConnector": {
        "title": "GlobalSign MSSL",
        "properties": {
          "name": {
            "type": "string"
          },
          "type": {
            "type": "string",
            "enum": [
              "gsmssl"
            ]
          },
          "endpointType": {
            "type": "string"
          },
          "profile": {
            "type": "string"
          },
          "loginCredentials": {
            "example": "myPasswordCredentials",
            "description": "Name of the `password` [credentials](#tag/security.credentials) to use for technical account on the PKI",
            "type": "string"
          },
          "domainId": {
            "type": "string"
          },
          "certificateValidity": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "defaultEmail": {
            "type": "string",
            "nullable": true
          },
          "defaultPhone": {
            "type": "string",
            "nullable": true
          },
          "retryInterval": {
            "nullable": true,
            "type": "string",
            "format": "Finite Duration",
            "pattern": "^([0-9]+) *(ms|millisecond|milliseconds|s|second|seconds|m|minute|minutes|h|hour|hours|d|day|days)$",
            "example": "5 seconds"
          },
          "timeout": {
            "nullable": true,
            "type": "string",
            "format": "Finite Duration",
            "pattern": "^([0-9]+) *(ms|millisecond|milliseconds|s|second|seconds|m|minute|minutes|h|hour|hours|d|day|days)$",
            "example": "5 seconds"
          },
          "proxy": {
            "type": "string",
            "nullable": true
          },
          "queue": {
            "type": "string",
            "nullable": true
          }
        },
        "required": [
          "name",
          "type",
          "endpointType",
          "profile",
          "loginCredentials",
          "domainId"
        ]
      },
      "OTPKIConnector": {
        "title": "OpenTrust PKI",
        "properties": {
          "name": {
            "type": "string"
          },
          "type": {
            "type": "string",
            "enum": [
              "otpki"
            ]
          },
          "endPoint": {
            "type": "string"
          },
          "profile": {
            "type": "string"
          },
          "emailMap": {
            "type": "string",
            "nullable": true
          },
          "sanDnsMap": {
            "type": "string",
            "nullable": true
          },
          "sanEmailMap": {
            "type": "string",
            "nullable": true
          },
          "uidMap": {
            "type": "string",
            "nullable": true
          },
          "zone": {
            "type": "string",
            "nullable": true
          },
          "zoneLabel": {
            "type": "string",
            "nullable": true,
            "description": "The name of the label where the zone value is stored on an enrolled certificate"
          },
          "authenticationCredentials": {
            "example": "myCertificateCredentials",
            "description": "Name of the `certificate` [credentials](#tag/security.credentials) to use to authenticate on the PKI",
            "type": "string"
          },
          "timeout": {
            "nullable": true,
            "type": "string",
            "format": "Finite Duration",
            "pattern": "^([0-9]+) *(ms|millisecond|milliseconds|s|second|seconds|m|minute|minutes|h|hour|hours|d|day|days)$",
            "example": "5 seconds"
          },
          "proxy": {
            "type": "string",
            "nullable": true
          },
          "queue": {
            "type": "string",
            "nullable": true
          }
        },
        "required": [
          "name",
          "type",
          "endPoint",
          "profile",
          "authenticationCredentials"
        ]
      },
      "MetaPKIConnector": {
        "title": "MetaPKI",
        "properties": {
          "name": {
            "type": "string"
          },
          "type": {
            "type": "string",
            "enum": [
              "metapki"
            ]
          },
          "endPoint": {
            "type": "string",
            "description": "MetaPKI base endpoint"
          },
          "endPointIssuingCA": {
            "type": "string",
            "description": "Certificate authority of the endpoint"
          },
          "profile": {
            "type": "string"
          },
          "workflow": {
            "type": "string",
            "nullable": true
          },
          "profilCle": {
            "type": "string",
            "nullable": true
          },
          "validDays": {
            "allOf": [
              {
                "$ref": "#/components/schemas/FiniteDuration"
              }
            ]
          },
          "formPorteurName": {
            "type": "string",
            "nullable": true
          },
          "authenticationCredentials": {
            "example": "myCertificateCredentials",
            "description": "Name of the `certificate` [credentials](#tag/security.credentials) to use to authenticate on the PKI",
            "type": "string",
            "nullable": true
          },
          "timeout": {
            "allOf": [
              {
                "$ref": "#/components/schemas/FiniteDuration"
              }
            ]
          },
          "proxy": {
            "type": "string",
            "nullable": true
          },
          "queue": {
            "type": "string",
            "nullable": true
          }
        },
        "required": [
          "name",
          "type",
          "endPoint",
          "endPointIssuingCA",
          "profile",
          "workflow",
          "profilCle"
        ]
      },
      "Nameshield": {
        "title": "Nameshield",
        "properties": {
          "name": {
            "type": "string"
          },
          "type": {
            "type": "string",
            "enum": [
              "nameshield"
            ]
          },
          "apiCredentials": {
            "type": "string",
            "description": "Name of the `api-key` [credentials](#tag/security.credentials) to use to authenticate on the PKI"
          },
          "environment": {
            "type": "string",
            "enum": [
              "production",
              "testing"
            ],
            "description": "The testing environment will use https://ote-api.nameshield.net endpoint \nand the production will use https://api.nameshield.net\n"
          },
          "organizationId": {
            "type": "string"
          },
          "productId": {
            "type": "string"
          },
          "customerId": {
            "type": "string"
          },
          "timeout": {
            "nullable": true,
            "type": "string",
            "format": "Finite Duration",
            "pattern": "^([0-9]+) *(ms|millisecond|milliseconds|s|second|seconds|m|minute|minutes|h|hour|hours|d|day|days)$",
            "example": "5 seconds"
          },
          "proxy": {
            "type": "string",
            "nullable": true
          },
          "queue": {
            "type": "string",
            "nullable": true
          }
        },
        "required": [
          "name",
          "type",
          "apiCredentials",
          "environment",
          "organizationId",
          "productId",
          "customerId"
        ]
      },
      "NexusCMConnector": {
        "title": "Nexus Certificate Manager",
        "properties": {
          "name": {
            "type": "string"
          },
          "type": {
            "type": "string",
            "enum": [
              "nexuscm"
            ]
          },
          "endPoint": {
            "type": "string"
          },
          "endPointIssuingCA": {
            "type": "string"
          },
          "procedure": {
            "type": "string"
          },
          "authenticationCredentials": {
            "example": "myCertificateCredentials",
            "description": "Name of the `certificate` [credentials](#tag/security.credentials) to use to authenticate on the PKI",
            "type": "string"
          },
          "timeout": {
            "nullable": true,
            "type": "string",
            "format": "Finite Duration",
            "pattern": "^([0-9]+) *(ms|millisecond|milliseconds|s|second|seconds|m|minute|minutes|h|hour|hours|d|day|days)$",
            "example": "5 seconds"
          },
          "proxy": {
            "type": "string",
            "nullable": true
          },
          "queue": {
            "type": "string",
            "nullable": true
          }
        },
        "required": [
          "name",
          "type",
          "endPoint",
          "endPointIssuingCA",
          "procedure",
          "authenticationCredentials"
        ]
      },
      "SectigoCMSConnector": {
        "title": "Sectigo CMS",
        "properties": {
          "name": {
            "type": "string"
          },
          "type": {
            "type": "string",
            "enum": [
              "sectigo"
            ]
          },
          "loginCredentials": {
            "example": "myPasswordCredentials",
            "description": "Name of the `password` [credentials](#tag/security.credentials) to use to authenticate on the PKI",
            "type": "string"
          },
          "customerUri": {
            "type": "string"
          },
          "organizationId": {
            "type": "integer"
          },
          "profile": {
            "type": "string"
          },
          "retryInterval": {
            "allOf": [
              {
                "$ref": "#/components/schemas/FiniteDuration"
              }
            ]
          },
          "validDays": {
            "allOf": [
              {
                "$ref": "#/components/schemas/FiniteDuration"
              }
            ]
          },
          "endpointType": {
            "type": "string",
            "enum": [
              "eu",
              "hard",
              "default"
            ]
          },
          "timeout": {
            "allOf": [
              {
                "$ref": "#/components/schemas/FiniteDuration"
              }
            ],
            "nullable": true
          },
          "proxy": {
            "type": "string",
            "nullable": true
          },
          "queue": {
            "type": "string",
            "nullable": true
          }
        },
        "required": [
          "name",
          "type",
          "loginCredentials",
          "customerUri",
          "organizationId",
          "profile"
        ]
      },
      "SwissSignConnector": {
        "title": "Swiss Sign managed PKI",
        "properties": {
          "name": {
            "type": "string"
          },
          "proxy": {
            "type": "string",
            "nullable": true
          },
          "timeout": {
            "nullable": true,
            "type": "string",
            "format": "Finite Duration",
            "pattern": "^([0-9]+) *(ms|millisecond|milliseconds|s|second|seconds|m|minute|minutes|h|hour|hours|d|day|days)$",
            "example": "5 seconds"
          },
          "queue": {
            "type": "string",
            "nullable": true
          },
          "type": {
            "type": "string",
            "enum": [
              "swisssign"
            ]
          },
          "mpkiCredentials": {
            "example": "myPasswordCredentials",
            "description": "Name of the `password` [credentials](#tag/security.credentials) to use to authenticate on the PKI. \nIt should contains the mpkiId as the login and the apiKey as password.\n",
            "type": "string"
          },
          "endPoint": {
            "type": "string",
            "description": "Swiss base endpoint",
            "example": "https://api.ra.pre.swisssign.ch"
          },
          "productUuid": {
            "type": "string",
            "description": "The product Uuid that need to be retrieved from the swiss sign api's (<endpoints>/v2/clients)",
            "example": "pma-533143cc-5v11-4b0d-7634-c69g93c02e63"
          }
        },
        "required": [
          "name",
          "type",
          "mpkiCredentials",
          "endPoint",
          "productUuid"
        ]
      },
      "PKIConnectors": {
        "oneOf": [
          {
            "$ref": "#/components/schemas/StreamConnector"
          },
          {
            "$ref": "#/components/schemas/AcmeEnrollConnector"
          },
          {
            "$ref": "#/components/schemas/AcmeRevocationConnector"
          },
          {
            "$ref": "#/components/schemas/EverTrustADCSConnector"
          },
          {
            "$ref": "#/components/schemas/ADCSConnector"
          },
          {
            "$ref": "#/components/schemas/AWSACMPCAConnector"
          },
          {
            "$ref": "#/components/schemas/CertEuropeConnector"
          },
          {
            "$ref": "#/components/schemas/CMPConnector"
          },
          {
            "$ref": "#/components/schemas/DigiCertConnector"
          },
          {
            "$ref": "#/components/schemas/EJBCAConnector"
          },
          {
            "$ref": "#/components/schemas/EntrustConnector"
          },
          {
            "$ref": "#/components/schemas/IDCAConnector"
          },
          {
            "$ref": "#/components/schemas/IntegratedCAConnector"
          },
          {
            "$ref": "#/components/schemas/FCMSConnector"
          },
          {
            "$ref": "#/components/schemas/GSAtlasConnector"
          },
          {
            "$ref": "#/components/schemas/GSMSSLConnector"
          },
          {
            "$ref": "#/components/schemas/OTPKIConnector"
          },
          {
            "$ref": "#/components/schemas/MetaPKIConnector"
          },
          {
            "$ref": "#/components/schemas/Nameshield"
          },
          {
            "$ref": "#/components/schemas/NexusCMConnector"
          },
          {
            "$ref": "#/components/schemas/SectigoCMSConnector"
          },
          {
            "$ref": "#/components/schemas/SwissSignConnector"
          }
        ]
      },
      "PkiConnector002": {
        "allOf": [
          {
            "$ref": "#/components/schemas/BasicError"
          }
        ],
        "description": "Invalid PKI Connector",
        "properties": {
          "error": {
            "enum": [
              "PKI-CONNECTOR-002"
            ]
          },
          "message": {
            "enum": [
              "Invalid PKI Connector"
            ]
          },
          "title": {
            "enum": [
              "Invalid PKI Connector"
            ]
          }
        },
        "title": "PKI-CONNECTOR-002",
        "required": [
          "error",
          "message",
          "title"
        ]
      },
      "PkiConnector003": {
        "allOf": [
          {
            "$ref": "#/components/schemas/BasicError"
          }
        ],
        "description": "PKI Connector not found",
        "properties": {
          "error": {
            "enum": [
              "PKI-CONNECTOR-003"
            ]
          },
          "message": {
            "enum": [
              "PKI Connector not found"
            ]
          },
          "title": {
            "enum": [
              "PKI Connector not found"
            ]
          }
        },
        "title": "PKI-CONNECTOR-003",
        "required": [
          "error",
          "message",
          "title"
        ]
      },
      "PkiConnector004": {
        "allOf": [
          {
            "$ref": "#/components/schemas/BasicError"
          }
        ],
        "description": "PKI Connector already exists",
        "properties": {
          "error": {
            "enum": [
              "PKI-CONNECTOR-004"
            ]
          },
          "message": {
            "enum": [
              "PKI Connector already exists"
            ]
          },
          "title": {
            "enum": [
              "PKI Connector already exists"
            ]
          }
        },
        "title": "PKI-CONNECTOR-004",
        "required": [
          "error",
          "message",
          "title"
        ]
      },
      "PkiConnector005": {
        "allOf": [
          {
            "$ref": "#/components/schemas/BasicError"
          }
        ],
        "description": "Referenced PKI Connector",
        "properties": {
          "error": {
            "enum": [
              "PKI-CONNECTOR-005"
            ]
          },
          "message": {
            "enum": [
              "Referenced PKI Connector"
            ]
          },
          "title": {
            "enum": [
              "Referenced PKI Connector"
            ]
          }
        },
        "title": "PKI-CONNECTOR-005",
        "required": [
          "error",
          "message",
          "title"
        ]
      },
      "PKIQueueResponse": {
        "properties": {
          "_id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/Id"
              }
            ]
          },
          "name": {
            "type": "string"
          },
          "description": {
            "type": "string",
            "nullable": true
          },
          "throttleDuration": {
            "nullable": true,
            "type": "string",
            "format": "Finite Duration",
            "pattern": "^([0-9]+) *(ms|millisecond|milliseconds|s|second|seconds|m|minute|minutes|h|hour|hours|d|day|days)$",
            "example": "5 seconds"
          },
          "throttleParallelism": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "clusterWide": {
            "type": "boolean"
          },
          "size": {
            "type": "integer",
            "format": "int32"
          }
        },
        "required": [
          "_id",
          "name",
          "clusterWide",
          "size"
        ]
      },
      "PkiQueue001": {
        "allOf": [
          {
            "$ref": "#/components/schemas/BasicError"
          }
        ],
        "description": "Unexpected error",
        "properties": {
          "error": {
            "enum": [
              "PKI-QUEUE-001"
            ]
          },
          "message": {
            "enum": [
              "Unexpected error"
            ]
          },
          "title": {
            "enum": [
              "Unexpected error"
            ]
          }
        },
        "title": "PKI-QUEUE-001",
        "required": [
          "error",
          "message",
          "title"
        ]
      },
      "PKIQueue": {
        "properties": {
          "name": {
            "type": "string"
          },
          "description": {
            "type": "string",
            "nullable": true
          },
          "throttleDuration": {
            "nullable": true,
            "type": "string",
            "format": "Finite Duration",
            "pattern": "^([0-9]+) *(ms|millisecond|milliseconds|s|second|seconds|m|minute|minutes|h|hour|hours|d|day|days)$",
            "example": "5 seconds"
          },
          "throttleParallelism": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "clusterWide": {
            "type": "boolean"
          },
          "size": {
            "type": "integer",
            "format": "int32"
          }
        },
        "required": [
          "name",
          "clusterWide",
          "size"
        ]
      },
      "PkiQueue002": {
        "allOf": [
          {
            "$ref": "#/components/schemas/BasicError"
          }
        ],
        "description": "Invalid PKI Queue",
        "properties": {
          "error": {
            "enum": [
              "PKI-QUEUE-002"
            ]
          },
          "message": {
            "enum": [
              "Invalid PKI Queue"
            ]
          },
          "title": {
            "enum": [
              "Invalid PKI Queue"
            ]
          }
        },
        "title": "PKI-QUEUE-002",
        "required": [
          "error",
          "message",
          "title"
        ]
      },
      "PkiQueue003": {
        "allOf": [
          {
            "$ref": "#/components/schemas/BasicError"
          }
        ],
        "description": "PKI Queue not found",
        "properties": {
          "error": {
            "enum": [
              "PKI-QUEUE-003"
            ]
          },
          "message": {
            "enum": [
              "PKI Queue not found"
            ]
          },
          "title": {
            "enum": [
              "PKI Queue not found"
            ]
          }
        },
        "title": "PKI-QUEUE-003",
        "required": [
          "error",
          "message",
          "title"
        ]
      },
      "PkiQueue004": {
        "allOf": [
          {
            "$ref": "#/components/schemas/BasicError"
          }
        ],
        "description": "PKI Queue already exists",
        "properties": {
          "error": {
            "enum": [
              "PKI-QUEUE-004"
            ]
          },
          "message": {
            "enum": [
              "PKI Queue already exists"
            ]
          },
          "title": {
            "enum": [
              "PKI Queue already exists"
            ]
          }
        },
        "title": "PKI-QUEUE-004",
        "required": [
          "error",
          "message",
          "title"
        ]
      },
      "PkiQueue005": {
        "allOf": [
          {
            "$ref": "#/components/schemas/BasicError"
          }
        ],
        "description": "Referenced PKI Queue",
        "properties": {
          "error": {
            "enum": [
              "PKI-QUEUE-005"
            ]
          },
          "message": {
            "enum": [
              "Referenced PKI Queue"
            ]
          },
          "title": {
            "enum": [
              "Referenced PKI Queue"
            ]
          }
        },
        "title": "PKI-QUEUE-005",
        "required": [
          "error",
          "message",
          "title"
        ]
      },
      "HttpProxyResponse": {
        "title": "Proxy",
        "properties": {
          "_id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/Id"
              }
            ]
          },
          "name": {
            "example": "ExternalProxy",
            "description": "Name of the proxy",
            "type": "string"
          },
          "host": {
            "description": "Hostname of the proxy",
            "type": "string",
            "example": "36.52.145.12"
          },
          "port": {
            "description": "Port of the proxy",
            "example": 8888,
            "type": "integer",
            "format": "int32"
          },
          "credentials": {
            "nullable": true,
            "description": "Name of the `password` [credentials](#tag/security.credentials) to use for Proxy Basic Authentication",
            "example": "ProxyCredentials",
            "type": "string"
          }
        },
        "required": [
          "_id",
          "name",
          "host",
          "port"
        ]
      },
      "HttpProxy001": {
        "allOf": [
          {
            "$ref": "#/components/schemas/BasicError"
          }
        ],
        "description": "Unexpected error",
        "properties": {
          "error": {
            "enum": [
              "HTTP-PROXY-001"
            ]
          },
          "message": {
            "enum": [
              "Unexpected error"
            ]
          },
          "title": {
            "enum": [
              "Unexpected error"
            ]
          }
        },
        "title": "HTTP-PROXY-001",
        "required": [
          "error",
          "message",
          "title"
        ]
      },
      "HttpProxy": {
        "title": "Proxy",
        "properties": {
          "name": {
            "example": "ExternalProxy",
            "description": "Name of the proxy",
            "type": "string"
          },
          "host": {
            "description": "Hostname of the proxy",
            "type": "string",
            "example": "36.52.145.12"
          },
          "port": {
            "description": "Port of the proxy",
            "example": 8888,
            "type": "integer",
            "format": "int32"
          },
          "credentials": {
            "nullable": true,
            "description": "Name of the `password` [credentials](#tag/security.credentials) to use for Proxy Basic Authentication",
            "example": "ProxyCredentials",
            "type": "string"
          }
        },
        "required": [
          "name",
          "host",
          "port"
        ]
      },
      "HttpProxy002": {
        "allOf": [
          {
            "$ref": "#/components/schemas/BasicError"
          }
        ],
        "description": "Invalid Proxy",
        "properties": {
          "error": {
            "enum": [
              "HTTP-PROXY-002"
            ]
          },
          "message": {
            "enum": [
              "Invalid Proxy"
            ]
          },
          "title": {
            "enum": [
              "Invalid Proxy"
            ]
          }
        },
        "title": "HTTP-PROXY-002",
        "required": [
          "error",
          "message",
          "title"
        ]
      },
      "HttpProxy003": {
        "allOf": [
          {
            "$ref": "#/components/schemas/BasicError"
          }
        ],
        "description": "Proxy not found",
        "properties": {
          "error": {
            "enum": [
              "HTTP-PROXY-003"
            ]
          },
          "message": {
            "enum": [
              "Proxy not found"
            ]
          },
          "title": {
            "enum": [
              "Proxy not found"
            ]
          }
        },
        "title": "HTTP-PROXY-003",
        "required": [
          "error",
          "message",
          "title"
        ]
      },
      "HttpProxy004": {
        "allOf": [
          {
            "$ref": "#/components/schemas/BasicError"
          }
        ],
        "description": "Proxy already exists",
        "properties": {
          "error": {
            "enum": [
              "HTTP-PROXY-004"
            ]
          },
          "message": {
            "enum": [
              "Proxy already exists"
            ]
          },
          "title": {
            "enum": [
              "Proxy already exists"
            ]
          }
        },
        "title": "HTTP-PROXY-004",
        "required": [
          "error",
          "message",
          "title"
        ]
      },
      "HttpProxy005": {
        "allOf": [
          {
            "$ref": "#/components/schemas/BasicError"
          }
        ],
        "description": "Referenced Proxy",
        "properties": {
          "error": {
            "enum": [
              "HTTP-PROXY-005"
            ]
          },
          "message": {
            "enum": [
              "Referenced Proxy"
            ]
          },
          "title": {
            "enum": [
              "Referenced Proxy"
            ]
          }
        },
        "title": "HTTP-PROXY-005",
        "required": [
          "error",
          "message",
          "title"
        ]
      },
      "LicenseTriggers": {
        "title": "License Triggers",
        "properties": {
          "onLicenseExpiration": {
            "nullable": true,
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Names of the triggers to execute when the license expires",
            "example": [
              "expirationTrigger"
            ]
          },
          "onLicenseUsage": {
            "nullable": true,
            "type": "array",
            "example": [
              "licenseTrigger"
            ],
            "items": {
              "type": "string"
            },
            "description": "Names of the triggers to execute when the license usage exceeds threshold"
          }
        }
      },
      "LicenseConfigurationResponse": {
        "title": "License Configuration",
        "properties": {
          "_id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/Id"
              }
            ]
          },
          "type": {
            "type": "string",
            "enum": [
              "license"
            ],
            "description": "The type of the configuration entry"
          },
          "triggers": {
            "nullable": true,
            "type": "object",
            "description": "Triggers to execute on license events",
            "allOf": [
              {
                "$ref": "#/components/schemas/LicenseTriggers"
              }
            ]
          }
        },
        "required": [
          "_id",
          "type"
        ]
      },
      "InternalMonitorConfigurationResponse": {
        "title": "Internal Monitor Configuration",
        "properties": {
          "_id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/Id"
              }
            ]
          },
          "type": {
            "type": "string",
            "enum": [
              "internal_monitor"
            ],
            "description": "The type of the configuration entry"
          },
          "cron": {
            "type": "string",
            "format": "Quartz Cron",
            "example": "0 0 0 ? * * *",
            "description": "Cron defining when to run internal monitor checks"
          }
        },
        "required": [
          "_id",
          "type",
          "cron"
        ]
      },
      "InterfaceCustomizationConfigurationResponse": {
        "title": "Interface Customization Configuration",
        "properties": {
          "_id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/Id"
              }
            ]
          },
          "type": {
            "type": "string",
            "enum": [
              "interface_customization"
            ],
            "description": "The type of the configuration entry"
          },
          "logo": {
            "nullable": true,
            "example": "MIIZ....",
            "type": "string",
            "description": "A logo to display on the product, base64 encoded"
          },
          "headerStart": {
            "example": "abcdef",
            "nullable": true,
            "type": "string",
            "description": "The HTML color code for the left side of the banner gradient"
          },
          "headerEnd": {
            "example": "fedcba",
            "nullable": true,
            "type": "string",
            "description": "The HTML color code for the right side of the banner gradient"
          }
        },
        "required": [
          "_id",
          "type"
        ]
      },
      "SystemConfiguration001": {
        "title": "SYS-CONF-001",
        "description": "Unexpected error",
        "allOf": [
          {
            "$ref": "#/components/schemas/BasicError"
          }
        ],
        "properties": {
          "error": {
            "enum": [
              "SYS-CONF-001"
            ]
          },
          "message": {
            "enum": [
              "Unexpected error"
            ]
          },
          "title": {
            "enum": [
              "Unexpected error"
            ]
          }
        },
        "required": [
          "error",
          "message",
          "title"
        ]
      },
      "LicenseConfiguration": {
        "title": "License Configuration",
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "license"
            ],
            "description": "The type of the configuration entry"
          },
          "triggers": {
            "nullable": true,
            "type": "object",
            "description": "Triggers to execute on license events",
            "allOf": [
              {
                "$ref": "#/components/schemas/LicenseTriggers"
              }
            ]
          }
        },
        "required": [
          "type"
        ]
      },
      "InternalMonitorConfiguration": {
        "title": "Internal Monitor Configuration",
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "internal_monitor"
            ],
            "description": "The type of the configuration entry"
          },
          "cron": {
            "type": "string",
            "format": "Quartz Cron",
            "example": "0 0 0 ? * * *",
            "description": "Cron defining when to run internal monitor checks"
          }
        },
        "required": [
          "type",
          "cron"
        ]
      },
      "InterfaceCustomizationConfiguration": {
        "title": "Interface Customization Configuration",
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "interface_customization"
            ],
            "description": "The type of the configuration entry"
          },
          "logo": {
            "nullable": true,
            "example": "MIIZ....",
            "type": "string",
            "description": "A logo to display on the product, base64 encoded"
          },
          "headerStart": {
            "example": "abcdef",
            "nullable": true,
            "type": "string",
            "description": "The HTML color code for the left side of the banner gradient"
          },
          "headerEnd": {
            "example": "fedcba",
            "nullable": true,
            "type": "string",
            "description": "The HTML color code for the right side of the banner gradient"
          }
        },
        "required": [
          "type"
        ]
      },
      "SystemConfiguration002": {
        "title": "SYS-CONF-002",
        "description": "Invalid System Configuration Entry",
        "allOf": [
          {
            "$ref": "#/components/schemas/BasicError"
          }
        ],
        "properties": {
          "error": {
            "enum": [
              "SYS-CONF-002"
            ]
          },
          "message": {
            "enum": [
              "Invalid System Configuration Entry"
            ]
          },
          "title": {
            "enum": [
              "Invalid System Configuration Entry"
            ]
          }
        },
        "required": [
          "error",
          "message",
          "title"
        ]
      },
      "SystemConfiguration003": {
        "title": "SYS-CONF-003",
        "description": "System Configuration Entry not found",
        "allOf": [
          {
            "$ref": "#/components/schemas/BasicError"
          }
        ],
        "properties": {
          "error": {
            "enum": [
              "SYS-CONF-003"
            ]
          },
          "message": {
            "enum": [
              "System Configuration Entry not found"
            ]
          },
          "title": {
            "enum": [
              "System Configuration Entry not found"
            ]
          }
        },
        "required": [
          "error",
          "message",
          "title"
        ]
      },
      "Rfc5280BundleResponse": {
        "title": "Bundle response",
        "properties": {
          "type": {
            "enum": [
              "bundle"
            ],
            "type": "string"
          },
          "value": {
            "type": "array",
            "items": {
              "allOf": [
                {
                  "$ref": "#/components/schemas/CFCertificateResponse"
                }
              ]
            }
          }
        },
        "required": [
          "type",
          "value"
        ]
      },
      "Rfc5280CertificateResponse": {
        "title": "Certificate response",
        "properties": {
          "type": {
            "enum": [
              "certificate"
            ],
            "type": "string"
          },
          "value": {
            "allOf": [
              {
                "$ref": "#/components/schemas/CFCertificateResponse"
              }
            ]
          }
        },
        "required": [
          "type",
          "value"
        ]
      },
      "CFCrl": {
        "title": "CFCrl",
        "type": "object",
        "properties": {
          "number": {
            "type": "string"
          },
          "version": {
            "type": "integer",
            "enum": [
              1,
              2
            ]
          },
          "issuer": {
            "type": "string"
          },
          "thisUpdate": {
            "type": "integer",
            "format": "epoch"
          },
          "nextUpdate": {
            "type": "integer",
            "format": "epoch"
          }
        },
        "required": [
          "issuer",
          "thisUpdate",
          "nextUpdate"
        ]
      },
      "Rfc5280CRLResponse": {
        "title": "CRL response",
        "properties": {
          "type": {
            "enum": [
              "crl"
            ],
            "type": "string"
          },
          "value": {
            "allOf": [
              {
                "$ref": "#/components/schemas/CFCrl"
              }
            ]
          }
        },
        "required": [
          "type",
          "value"
        ]
      },
      "CFCertificationRequest": {
        "title": "CFCertificationRequest",
        "description": "Certification request",
        "type": "object",
        "properties": {
          "dn": {
            "description": "Distinguished name",
            "example": "CN=example.com,OU=IT,O=MyCompany,C=FR",
            "type": "string"
          },
          "sans": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/SubjectAlternateName"
            }
          },
          "dnElements": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CFDistinguishedName"
            }
          },
          "keyType": {
            "allOf": [
              {
                "$ref": "#/components/schemas/KeyType"
              }
            ]
          },
          "pem": {
            "type": "string"
          }
        },
        "required": [
          "dn",
          "dnElements",
          "keyType",
          "pem"
        ]
      },
      "Rfc5280CSRResponse": {
        "title": "CSR response",
        "properties": {
          "type": {
            "enum": [
              "csr"
            ],
            "type": "string"
          },
          "value": {
            "allOf": [
              {
                "$ref": "#/components/schemas/CFCertificationRequest"
              }
            ]
          }
        },
        "required": [
          "type",
          "value"
        ]
      },
      "Rfc5280005": {
        "allOf": [
          {
            "$ref": "#/components/schemas/BasicError"
          }
        ],
        "description": "Invalid RFC 5280 object",
        "properties": {
          "error": {
            "enum": [
              "RFC5280-005"
            ]
          },
          "message": {
            "enum": [
              "Invalid RFC 5280 object"
            ]
          },
          "title": {
            "enum": [
              "Invalid RFC 5280 object"
            ]
          }
        },
        "title": "RFC5280-005",
        "required": [
          "error",
          "message",
          "title"
        ]
      },
      "Rfc5280001": {
        "allOf": [
          {
            "$ref": "#/components/schemas/BasicError"
          }
        ],
        "description": "Unexpected Error",
        "properties": {
          "error": {
            "enum": [
              "RFC5280-001"
            ]
          },
          "message": {
            "enum": [
              "Unexpected Error"
            ]
          },
          "title": {
            "enum": [
              "Unexpected Error"
            ]
          }
        },
        "title": "RFC5280-001",
        "required": [
          "error",
          "message",
          "title"
        ]
      },
      "CFCertificationRequestResponse": {
        "title": "CFCertificationRequest",
        "description": "Certification request",
        "type": "object",
        "properties": {
          "dn": {
            "description": "Distinguished name",
            "example": "CN=example.com,OU=IT,O=MyCompany,C=FR",
            "type": "string"
          },
          "sans": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/SubjectAlternateName"
            }
          },
          "dnElements": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CFDistinguishedName"
            }
          },
          "keyType": {
            "allOf": [
              {
                "$ref": "#/components/schemas/KeyType"
              }
            ]
          },
          "pem": {
            "type": "string"
          }
        },
        "required": [
          "dn",
          "dnElements",
          "keyType",
          "pem"
        ]
      },
      "Rfc5280003": {
        "allOf": [
          {
            "$ref": "#/components/schemas/BasicError"
          }
        ],
        "description": "Invalid PKCS#10",
        "properties": {
          "error": {
            "enum": [
              "RFC5280-003"
            ]
          },
          "message": {
            "enum": [
              "Invalid PKCS#10"
            ]
          },
          "title": {
            "enum": [
              "Invalid PKCS#10"
            ]
          }
        },
        "title": "RFC5280-003",
        "required": [
          "error",
          "message",
          "title"
        ]
      },
      "Rfc5280Pkcs12ContentResponse": {
        "properties": {
          "certificate": {
            "allOf": [
              {
                "$ref": "#/components/schemas/CFCertificateResponse"
              }
            ]
          },
          "privateKey": {
            "type": "string",
            "format": "PKCS#8 PEM encoded"
          }
        },
        "required": [
          "certificate",
          "privateKey"
        ]
      },
      "Rfc5280004": {
        "allOf": [
          {
            "$ref": "#/components/schemas/BasicError"
          }
        ],
        "description": "Invalid PKCS#12 or PKCS#12 password",
        "properties": {
          "error": {
            "enum": [
              "RFC5280-004"
            ]
          },
          "message": {
            "enum": [
              "Invalid PKCS#12 or PKCS#12 password"
            ]
          },
          "title": {
            "enum": [
              "Invalid PKCS#12 or PKCS#12 password"
            ]
          }
        },
        "title": "RFC5280-004",
        "required": [
          "error",
          "message",
          "title"
        ]
      },
      "Rfc5280002": {
        "allOf": [
          {
            "$ref": "#/components/schemas/BasicError"
          }
        ],
        "description": "Invalid X509 Certificate",
        "properties": {
          "error": {
            "enum": [
              "RFC5280-002"
            ]
          },
          "message": {
            "enum": [
              "Invalid X509 Certificate"
            ]
          },
          "title": {
            "enum": [
              "Invalid X509 Certificate"
            ]
          }
        },
        "title": "RFC5280-002",
        "required": [
          "error",
          "message",
          "title"
        ]
      },
      "ScheduledTask": {
        "properties": {
          "cron": {
            "type": "string",
            "format": "Quartz Cron"
          },
          "type": {
            "type": "string"
          },
          "host": {
            "type": "string",
            "nullable": true
          },
          "status": {
            "type": "string",
            "nullable": true,
            "enum": [
              "warning",
              "failure",
              "success",
              "running"
            ]
          },
          "lastExecutionDate": {
            "type": "integer",
            "format": "epoch",
            "nullable": true
          },
          "lastCompletionDate": {
            "type": "integer",
            "format": "epoch",
            "nullable": true
          },
          "detail": {
            "type": "string",
            "nullable": true
          },
          "executionId": {
            "nullable": true,
            "type": "string"
          },
          "enabled": {
            "type": "boolean"
          }
        },
        "required": [
          "type",
          "cron",
          "enabled"
        ]
      },
      "ReportRecipient": {
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "static",
              "team_contact",
              "team_manager"
            ]
          },
          "email": {
            "type": "string",
            "nullable": true
          },
          "team": {
            "type": "string",
            "nullable": true
          }
        },
        "required": [
          "type"
        ]
      },
      "ReportScheduledTask": {
        "allOf": [
          {
            "$ref": "#/components/schemas/ScheduledTask"
          }
        ],
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "report"
            ]
          },
          "name": {
            "type": "string"
          },
          "fileName": {
            "type": "string",
            "nullable": true
          },
          "recipients": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ReportRecipient"
            }
          },
          "from": {
            "type": "string"
          },
          "title": {
            "type": "string"
          },
          "body": {
            "type": "string",
            "nullable": true
          },
          "isHtml": {
            "type": "boolean"
          },
          "reportType": {
            "type": "string",
            "enum": [
              "attachment_email",
              "link_email"
            ]
          },
          "hqlType": {
            "type": "string",
            "enum": [
              "heql",
              "hcql",
              "hrql",
              "hpql",
              "hdql"
            ]
          },
          "hqlQuery": {
            "type": "string",
            "nullable": true
          },
          "hqlFields": {
            "type": "array",
            "nullable": true,
            "items": {
              "type": "string"
            }
          },
          "hqlSortedBy": {
            "type": "array",
            "nullable": true,
            "items": {
              "$ref": "#/components/schemas/SortElement"
            }
          },
          "description": {
            "type": "string",
            "nullable": true
          }
        },
        "required": [
          "type",
          "name",
          "recipients",
          "from",
          "title",
          "isHtml",
          "hqlType",
          "reportType"
        ]
      },
      "LinkReportScheduledTask": {
        "title": "LinkReportScheduledTask",
        "allOf": [
          {
            "$ref": "#/components/schemas/ReportScheduledTask"
          }
        ],
        "properties": {
          "retentionPeriod": {
            "description": "Indicates the duration during which the report can be downloaded",
            "allOf": [
              {
                "$ref": "#/components/schemas/FiniteDuration"
              },
              {
                "type": "string",
                "nullable": false,
                "example": "10s"
              }
            ]
          },
          "reportType": {
            "type": "string",
            "enum": [
              "link_email"
            ],
            "description": "Instead of sending an email with the CSV as an attachment, an email containing a link is sent"
          }
        },
        "required": [
          "reportType",
          "retentionPeriod"
        ]
      },
      "LinkReportScheduledTaskResponse": {
        "title": "LinkReportScheduledTaskResponse",
        "allOf": [
          {
            "$ref": "#/components/schemas/LinkReportScheduledTask"
          }
        ],
        "properties": {
          "_id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/Id"
              }
            ]
          }
        },
        "required": [
          "_id"
        ]
      },
      "AttachmentReportScheduledTask": {
        "title": "AttachmentReportScheduledTask",
        "allOf": [
          {
            "$ref": "#/components/schemas/ReportScheduledTask"
          }
        ],
        "properties": {
          "compressCsv": {
            "type": "boolean",
            "description": "Should the report be compressed using GZ"
          },
          "reportType": {
            "type": "string",
            "enum": [
              "attachment_email"
            ],
            "description": "Send an email with the CSV as an attachment"
          }
        },
        "required": [
          "reportType"
        ]
      },
      "AttachmentReportScheduledTaskResponse": {
        "title": "AttachmentReportScheduledTaskResponse",
        "allOf": [
          {
            "$ref": "#/components/schemas/AttachmentReportScheduledTask"
          }
        ],
        "properties": {
          "_id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/Id"
              }
            ]
          }
        },
        "required": [
          "_id"
        ]
      },
      "ThirdPartyScheduledTask": {
        "allOf": [
          {
            "$ref": "#/components/schemas/ScheduledTask"
          }
        ],
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "thirdparty"
            ]
          },
          "module": {
            "type": "string"
          },
          "profile": {
            "type": "string"
          },
          "connector": {
            "type": "string"
          },
          "enroll": {
            "type": "boolean"
          },
          "revoke": {
            "type": "boolean"
          },
          "renew": {
            "type": "boolean"
          },
          "dryRun": {
            "type": "boolean"
          },
          "description": {
            "type": "string",
            "nullable": true
          }
        },
        "required": [
          "type",
          "module",
          "profile",
          "connector",
          "enroll",
          "revoke",
          "renew",
          "dryRun"
        ]
      },
      "ThirdPartyScheduledTaskResponse": {
        "title": "ThirdPartyScheduledTaskResponse",
        "allOf": [
          {
            "$ref": "#/components/schemas/ThirdPartyScheduledTask"
          }
        ],
        "properties": {
          "_id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/Id"
              }
            ]
          }
        },
        "required": [
          "_id"
        ]
      },
      "ScheduledTaskResponses": {
        "oneOf": [
          {
            "$ref": "#/components/schemas/LinkReportScheduledTaskResponse"
          },
          {
            "$ref": "#/components/schemas/AttachmentReportScheduledTaskResponse"
          },
          {
            "$ref": "#/components/schemas/ThirdPartyScheduledTaskResponse"
          }
        ]
      },
      "SchedTask002": {
        "allOf": [
          {
            "$ref": "#/components/schemas/BasicError"
          }
        ],
        "description": "Invalid Scheduled Task",
        "properties": {
          "error": {
            "enum": [
              "SCHED-TASK-002"
            ]
          },
          "message": {
            "enum": [
              "Invalid Scheduled Task"
            ]
          },
          "title": {
            "enum": [
              "Invalid Scheduled Task"
            ]
          }
        },
        "title": "SCHED-TASK-002",
        "required": [
          "error",
          "message",
          "title"
        ]
      },
      "SchedTask001": {
        "allOf": [
          {
            "$ref": "#/components/schemas/BasicError"
          }
        ],
        "description": "Unexpected Error",
        "properties": {
          "error": {
            "enum": [
              "SCHED-TASK-001"
            ]
          },
          "message": {
            "enum": [
              "Unexpected Error"
            ]
          },
          "title": {
            "enum": [
              "Unexpected Error"
            ]
          }
        },
        "title": "SCHED-TASK-001",
        "required": [
          "error",
          "message",
          "title"
        ]
      },
      "ScheduledTasks": {
        "oneOf": [
          {
            "$ref": "#/components/schemas/ThirdPartyScheduledTask"
          },
          {
            "$ref": "#/components/schemas/LinkReportScheduledTask"
          },
          {
            "$ref": "#/components/schemas/AttachmentReportScheduledTask"
          }
        ]
      },
      "SchedTask003": {
        "allOf": [
          {
            "$ref": "#/components/schemas/BasicError"
          }
        ],
        "description": "Scheduled Task not found",
        "properties": {
          "error": {
            "enum": [
              "SCHED-TASK-003"
            ]
          },
          "message": {
            "enum": [
              "Scheduled Task not found"
            ]
          },
          "title": {
            "enum": [
              "Scheduled Task not found"
            ]
          }
        },
        "title": "SCHED-TASK-003",
        "required": [
          "error",
          "message",
          "title"
        ]
      },
      "SchedTask004": {
        "allOf": [
          {
            "$ref": "#/components/schemas/BasicError"
          }
        ],
        "description": "Scheduled Task already exists",
        "properties": {
          "error": {
            "enum": [
              "SCHED-TASK-004"
            ]
          },
          "message": {
            "enum": [
              "Scheduled Task already exists"
            ]
          },
          "title": {
            "enum": [
              "Scheduled Task already exists"
            ]
          }
        },
        "title": "SCHED-TASK-004",
        "required": [
          "error",
          "message",
          "title"
        ]
      },
      "UUID": {
        "type": "string",
        "format": "UUID",
        "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$",
        "example": "113c114c-a278-4938-a72b-a29789e17816"
      },
      "ReportCSVMetadata": {
        "properties": {
          "uuid": {
            "allOf": [
              {
                "$ref": "#/components/schemas/UUID"
              }
            ],
            "description": "The unique identifier of the report CSV. With that UUID, it is possible to download the CSV"
          },
          "removeAt": {
            "format": "epoch",
            "type": "integer",
            "example": 1609459200000,
            "description": "Indicates when the report CSV will be deleted from database"
          },
          "reportId": {
            "allOf": [
              {
                "$ref": "#/components/schemas/Id"
              }
            ],
            "description": "Id of the report that generated this CSV"
          },
          "reportName": {
            "type": "string",
            "example": "random-report-number-1337",
            "description": "Name of the report that generated this CSV"
          }
        },
        "required": [
          "uuid",
          "removeAt",
          "reportId",
          "reportName"
        ]
      },
      "ReportCsvError001": {
        "allOf": [
          {
            "$ref": "#/components/schemas/BasicError"
          }
        ],
        "description": "Unexpected Error",
        "properties": {
          "error": {
            "enum": [
              "REPORT-CSV-001"
            ]
          },
          "message": {
            "enum": [
              "Unexpected Error"
            ]
          },
          "title": {
            "enum": [
              "Unexpected Error"
            ]
          }
        },
        "title": "REPORT-CSV-001",
        "required": [
          "error",
          "message",
          "title"
        ]
      },
      "ReportCsvError002": {
        "allOf": [
          {
            "$ref": "#/components/schemas/BasicError"
          }
        ],
        "description": "Report CSV not found",
        "properties": {
          "error": {
            "enum": [
              "REPORT-CSV-002"
            ]
          },
          "message": {
            "enum": [
              "Report CSV not found"
            ]
          },
          "title": {
            "enum": [
              "Report CSV not found"
            ]
          }
        },
        "title": "REPORT-CSV-002",
        "required": [
          "error",
          "message",
          "title"
        ]
      },
      "LocalIdentityResponse": {
        "properties": {
          "_id": {
            "description": "Internal ID",
            "example": "6424527e4701004c010b1509",
            "type": "string"
          },
          "identifier": {
            "description": "The identifier of the local identity (used by the identity to log in to the web UI)",
            "example": "administrator",
            "type": "string"
          },
          "email": {
            "description": "The email address of the local identity",
            "example": "administrator@evertrust.fr",
            "type": "string",
            "format": "email",
            "nullable": true
          },
          "name": {
            "description": "The display name of the local identity",
            "example": "Horizon Administrator",
            "type": "string",
            "nullable": true
          }
        },
        "required": [
          "_id",
          "identifier"
        ]
      },
      "LocalId009": {
        "title": "LOCAL-ID-009",
        "description": "Local Identity provider not found or disabled",
        "allOf": [
          {
            "$ref": "#/components/schemas/BasicError"
          }
        ],
        "properties": {
          "error": {
            "enum": [
              "LOCAL-ID-009"
            ]
          },
          "message": {
            "enum": [
              "Local Identity provider not found or disabled"
            ]
          },
          "title": {
            "enum": [
              "Local Identity provider not found or disabled"
            ]
          }
        },
        "required": [
          "error",
          "message",
          "title"
        ]
      },
      "LocalId010": {
        "title": "LOCAL-ID-010",
        "description": "Password does not match the Password policy",
        "allOf": [
          {
            "$ref": "#/components/schemas/BasicError"
          }
        ],
        "properties": {
          "error": {
            "enum": [
              "LOCAL-ID-010"
            ]
          },
          "message": {
            "enum": [
              "Password does not match the Password policy"
            ]
          },
          "title": {
            "enum": [
              "Password does not match the Password policy"
            ]
          }
        },
        "required": [
          "error",
          "message",
          "title"
        ]
      },
      "LocalId001": {
        "title": "LOCAL-ID-001",
        "description": "Unexpected error",
        "allOf": [
          {
            "$ref": "#/components/schemas/BasicError"
          }
        ],
        "properties": {
          "error": {
            "enum": [
              "LOCAL-ID-001"
            ]
          },
          "message": {
            "enum": [
              "Unexpected error"
            ]
          },
          "title": {
            "enum": [
              "Unexpected error"
            ]
          }
        },
        "required": [
          "error",
          "message",
          "title"
        ]
      },
      "LocalIdentity": {
        "properties": {
          "identifier": {
            "description": "The identifier of the local identity (used by the identity to log in to the web UI)",
            "example": "administrator",
            "type": "string"
          },
          "email": {
            "description": "The email address of the local identity",
            "example": "administrator@evertrust.fr",
            "type": "string",
            "format": "email",
            "nullable": true
          },
          "name": {
            "description": "The display name of the local identity",
            "example": "Horizon Administrator",
            "type": "string",
            "nullable": true
          }
        },
        "required": [
          "identifier"
        ]
      },
      "LocalId002": {
        "title": "LOCAL-ID-002",
        "description": "Invalid Local Identity",
        "allOf": [
          {
            "$ref": "#/components/schemas/BasicError"
          }
        ],
        "properties": {
          "error": {
            "enum": [
              "LOCAL-ID-002"
            ]
          },
          "message": {
            "enum": [
              "Invalid Local Identity"
            ]
          },
          "title": {
            "enum": [
              "Invalid Local Identity"
            ]
          }
        },
        "required": [
          "error",
          "message",
          "title"
        ]
      },
      "LocalId003": {
        "title": "LOCAL-ID-003",
        "description": "Local Identity not found",
        "allOf": [
          {
            "$ref": "#/components/schemas/BasicError"
          }
        ],
        "properties": {
          "error": {
            "enum": [
              "LOCAL-ID-003"
            ]
          },
          "message": {
            "enum": [
              "Local Identity not found"
            ]
          },
          "title": {
            "enum": [
              "Local Identity not found"
            ]
          }
        },
        "required": [
          "error",
          "message",
          "title"
        ]
      },
      "LocalIdentityOnAdd": {
        "properties": {
          "identifier": {
            "description": "The identifier of the local identity (used by the identity to log in to the web UI)",
            "example": "administrator",
            "type": "string"
          },
          "email": {
            "description": "The email address of the local identity",
            "example": "administrator@evertrust.fr",
            "type": "string",
            "format": "email",
            "nullable": true
          },
          "name": {
            "description": "The display name of the local identity",
            "example": "Horizon Administrator",
            "type": "string",
            "nullable": true
          },
          "password": {
            "type": "string",
            "example": "534169469812674870598506170552236971648310761036167896036064400452449656",
            "description": "The initial password for this local identity"
          }
        },
        "required": [
          "identifier"
        ]
      },
      "LocalId004": {
        "title": "LOCAL-ID-004",
        "description": "Local Identity already exists",
        "allOf": [
          {
            "$ref": "#/components/schemas/BasicError"
          }
        ],
        "properties": {
          "error": {
            "enum": [
              "LOCAL-ID-004"
            ]
          },
          "message": {
            "enum": [
              "Local Identity already exists"
            ]
          },
          "title": {
            "enum": [
              "Local Identity already exists"
            ]
          }
        },
        "required": [
          "error",
          "message",
          "title"
        ]
      },
      "SetPasswordRequest": {
        "properties": {
          "identifier": {
            "description": "The local identity identifier. If `null`, the password for the currently logged in user will be changed",
            "example": "administrator",
            "type": "string",
            "nullable": true
          },
          "password": {
            "description": "The new password in clear text",
            "example": "Sup3rSecurePassw0rd",
            "type": "string"
          },
          "previousPassword": {
            "description": "When changing your own password, this value is required and must contain the current password in clear text",
            "type": "string",
            "format": "password"
          }
        },
        "required": [
          "password"
        ]
      },
      "LocalId007": {
        "title": "LOCAL-ID-007",
        "description": "Invalid Set Password Request",
        "allOf": [
          {
            "$ref": "#/components/schemas/BasicError"
          }
        ],
        "properties": {
          "error": {
            "enum": [
              "LOCAL-ID-007"
            ]
          },
          "message": {
            "enum": [
              "Invalid Set Password Request"
            ]
          },
          "title": {
            "enum": [
              "Invalid Set Password Request"
            ]
          }
        },
        "required": [
          "error",
          "message",
          "title"
        ]
      },
      "LocalId005": {
        "title": "LOCAL-ID-005",
        "description": "Invalid Identity Provider Type",
        "allOf": [
          {
            "$ref": "#/components/schemas/BasicError"
          }
        ],
        "properties": {
          "error": {
            "enum": [
              "LOCAL-ID-005"
            ]
          },
          "message": {
            "enum": [
              "Invalid Identity Provider Type"
            ]
          },
          "title": {
            "enum": [
              "Invalid Identity Provider Type"
            ]
          }
        },
        "required": [
          "error",
          "message",
          "title"
        ]
      },
      "SecPerm008": {
        "title": "SEC-PERM-008",
        "description": "Self deletion is not authorized",
        "allOf": [
          {
            "$ref": "#/components/schemas/BasicError"
          }
        ],
        "properties": {
          "error": {
            "enum": [
              "SEC-PERM-008"
            ]
          },
          "message": {
            "enum": [
              "Self deletion is not authorized"
            ]
          },
          "title": {
            "enum": [
              "Self deletion is not authorized"
            ]
          }
        },
        "required": [
          "error",
          "message",
          "title"
        ]
      },
      "LocalId011": {
        "title": "LOCAL-ID-011",
        "description": "Invalid Reset Password Request",
        "allOf": [
          {
            "$ref": "#/components/schemas/BasicError"
          }
        ],
        "properties": {
          "error": {
            "enum": [
              "LOCAL-ID-011"
            ]
          },
          "message": {
            "enum": [
              "Invalid Reset Password Request"
            ]
          },
          "title": {
            "enum": [
              "Invalid Reset Password Request"
            ]
          }
        },
        "required": [
          "error",
          "message",
          "title"
        ]
      },
      "ResetPasswordRequest": {
        "properties": {
          "identifier": {
            "type": "string",
            "description": "Local identity identifier",
            "example": "administrator"
          },
          "uuid": {
            "description": "The reset UUID received by email by the user after a password reset request",
            "type": "string",
            "format": "uuid"
          },
          "password": {
            "description": "The new password to set. It must match the password policy if any has been defined",
            "type": "string",
            "format": "password"
          }
        },
        "required": [
          "identifier",
          "uuid",
          "password"
        ]
      },
      "EnabledIdentityProviderResponse": {
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "Local",
              "OpenId"
            ],
            "description": "The type of the identity provider"
          },
          "name": {
            "type": "string",
            "description": "The internal name of the identity provider",
            "example": "local"
          },
          "displayName": {
            "type": "array",
            "nullable": true,
            "description": "The display name of the identity provider",
            "items": {
              "$ref": "#/components/schemas/LocalizedString"
            }
          },
          "description": {
            "type": "array",
            "nullable": true,
            "description": "The description of the identity provider",
            "items": {
              "$ref": "#/components/schemas/LocalizedString"
            }
          },
          "reset": {
            "type": "boolean",
            "description": "Whether the password reset option is enabled on the identity provider (only for IdentityProvider of type `Local`)"
          }
        },
        "required": [
          "type",
          "name",
          "reset"
        ]
      },
      "SecIdProv001": {
        "title": "SEC-IDPROV-001",
        "description": "Unexpected error",
        "allOf": [
          {
            "$ref": "#/components/schemas/BasicError"
          }
        ],
        "properties": {
          "error": {
            "enum": [
              "SEC-IDPROV-001"
            ]
          },
          "message": {
            "enum": [
              "Unexpected error"
            ]
          },
          "title": {
            "enum": [
              "Unexpected error"
            ]
          }
        },
        "required": [
          "error",
          "message",
          "title"
        ]
      },
      "EmailRecipient": {
        "title": "Email recipient",
        "properties": {
          "type": {
            "description": "The type of email recipient. Apart from the `static` recipient, all are deduced from the request's context.",
            "type": "string",
            "enum": [
              "static",
              "team_contact",
              "label",
              "requester",
              "contact",
              "approver",
              "certificate_rfc822name",
              "team_manager",
              "certificate_owner",
              "lifecycle_operators"
            ]
          },
          "email": {
            "description": "Mandatory for `static` recipient and ignored otherwise. The address to send the email to.",
            "type": "string",
            "example": "some@adress.net",
            "nullable": true
          },
          "label": {
            "description": "Mandatory for `label` recipient and ignored otherwise. The label name to fetch the address from.",
            "type": "string",
            "example": "BU_ADDRESS",
            "nullable": true
          }
        },
        "required": [
          "type"
        ]
      },
      "EmailTemplate": {
        "title": "Email template",
        "description": "Where and what to send in the email",
        "properties": {
          "to": {
            "type": "array",
            "description": "The recipient(s) of the e-mail",
            "items": {
              "$ref": "#/components/schemas/EmailRecipient"
            }
          },
          "from": {
            "type": "string",
            "description": "The sender name of the e-mail",
            "example": "noreply@horizon.evertrust.fr"
          },
          "title": {
            "type": "string",
            "description": "The title of the e-mail",
            "example": "Password recovery"
          },
          "body": {
            "type": "string",
            "nullable": true,
            "description": "The body of the e-mail",
            "example": "You can reset your Horizon password at https://horizon.evertrust.fr/ui#/reset/{{reset.uuid}}. The link will expire on {{reset.expiration}}."
          },
          "isHtml": {
            "type": "boolean",
            "description": "Whether the e-mail contains HTML code",
            "example": false
          }
        },
        "required": [
          "from",
          "to",
          "title",
          "isHtml"
        ]
      },
      "LocalIdentityProviderResponse": {
        "title": "Local Identity Provider",
        "properties": {
          "_id": {
            "description": "The internal ID of the Identity Provider",
            "type": "string",
            "example": "643821173000003d0014cdaf"
          },
          "name": {
            "type": "string",
            "description": "The internal name of the local identity provider",
            "example": "local"
          },
          "displayName": {
            "type": "array",
            "nullable": true,
            "description": "The display name of the local identity provider",
            "items": {
              "$ref": "#/components/schemas/LocalizedString"
            }
          },
          "description": {
            "type": "array",
            "nullable": true,
            "description": "The description of the local identity provider",
            "items": {
              "$ref": "#/components/schemas/LocalizedString"
            }
          },
          "type": {
            "type": "string",
            "enum": [
              "Local"
            ],
            "description": "The type of identity provider",
            "example": "Local"
          },
          "enabled": {
            "type": "boolean",
            "description": "Whether the local identity provider can be used to identify against Horizon",
            "example": true
          },
          "enabledOnUI": {
            "type": "boolean",
            "description": "Whether the local identity provider can be selected on login to the Horizon UI",
            "example": true
          },
          "passwordPolicy": {
            "type": "string",
            "nullable": true,
            "description": "The password policy to enforce for user passwords on the local identity provider",
            "example": "Horizon-Default"
          },
          "emailTemplate": {
            "type": "object",
            "nullable": true,
            "description": "The e-mail template to use for password recovery",
            "allOf": [
              {
                "$ref": "#/components/schemas/EmailTemplate"
              }
            ]
          }
        },
        "required": [
          "_id",
          "name",
          "type",
          "enabled",
          "enabledOnUI"
        ]
      },
      "OidcIdentityProviderResponse": {
        "title": "OpenId Identity Provider",
        "properties": {
          "_id": {
            "description": "The internal ID of the Identity Provider",
            "type": "string",
            "example": "643821173000003d0014cdaf"
          },
          "name": {
            "type": "string",
            "description": "The internal name of the identity provider",
            "example": "Google"
          },
          "displayName": {
            "type": "array",
            "nullable": true,
            "description": "The display name of the identity provider",
            "items": {
              "$ref": "#/components/schemas/LocalizedString"
            }
          },
          "description": {
            "type": "array",
            "nullable": true,
            "description": "The description of the identity provider",
            "items": {
              "$ref": "#/components/schemas/LocalizedString"
            }
          },
          "type": {
            "type": "string",
            "description": "The type of Identity provider to register",
            "enum": [
              "OpenId"
            ]
          },
          "enabled": {
            "type": "boolean",
            "description": "Whether the identity provider can be used to identify against Horizon",
            "example": true
          },
          "enabledOnUI": {
            "type": "boolean",
            "description": "Whether the identity provider can be selected on login to the Horizon UI",
            "example": true
          },
          "proxy": {
            "type": "string",
            "nullable": true,
            "description": "The name of the proxy to use to reach the identity provider",
            "example": "googleProxy"
          },
          "timeout": {
            "nullable": true,
            "type": "string",
            "format": "Finite Duration",
            "description": "The timeout value to use when connecting to the identity provider (must be a valid finite duration)",
            "pattern": "^([0-9]+) *(ms|millisecond|milliseconds|s|second|seconds|m|minute|minutes|h|hour|hours|d|day|days)$",
            "example": "5 seconds"
          },
          "providerMetadataUrl": {
            "type": "string",
            "description": "The URL of the identity provider OpenID callback",
            "example": "https://accounts.google.com/.well-known/openid-configuration"
          },
          "clientCredentials": {
            "type": "string",
            "example": "OpenIdCredentials",
            "description": "Name of the `password` [credentials](#tag/security.credentials) containing the client ID  and secret to use to authenticate Horizon against the identity provider"
          },
          "scope": {
            "type": "string",
            "description": "The scope where to retrieve the user data from",
            "example": "openid profile email"
          },
          "trustSystemCAs": {
            "type": "boolean",
            "description": "Trust AC coming from the system trust store or only trust AC imported in Horizon",
            "example": true,
            "default": true
          },
          "identifierClaim": {
            "type": "string",
            "description": "The OpenID information that will be used as the user's identifier in Horizon",
            "example": "{{oid}}"
          },
          "emailClaim": {
            "type": "string",
            "description": "The OpenID information that will be used as the user's email in Horizon",
            "example": "{{email}}"
          },
          "nameClaim": {
            "type": "string",
            "description": "The OpenID information that will be used as the user's name in Horizon",
            "example": "{{name}}"
          }
        },
        "required": [
          "_id",
          "type",
          "name",
          "enabled",
          "enabledOnUI",
          "providerMetadataUrl",
          "clientCredentials",
          "scope",
          "trustSystemCAs",
          "identifierClaim",
          "emailClaim",
          "nameClaim"
        ]
      },
      "LocalIdentityProvider": {
        "title": "Local Identity Provider",
        "properties": {
          "name": {
            "type": "string",
            "description": "The internal name of the local identity provider",
            "example": "local"
          },
          "displayName": {
            "type": "array",
            "nullable": true,
            "description": "The display name of the local identity provider",
            "items": {
              "$ref": "#/components/schemas/LocalizedString"
            }
          },
          "description": {
            "type": "array",
            "nullable": true,
            "description": "The description of the local identity provider",
            "items": {
              "$ref": "#/components/schemas/LocalizedString"
            }
          },
          "type": {
            "type": "string",
            "enum": [
              "Local"
            ],
            "description": "The type of identity provider",
            "example": "Local"
          },
          "enabled": {
            "type": "boolean",
            "description": "Whether the local identity provider can be used to identify against Horizon",
            "example": true
          },
          "enabledOnUI": {
            "type": "boolean",
            "description": "Whether the local identity provider can be selected on login to the Horizon UI",
            "example": true
          },
          "passwordPolicy": {
            "type": "string",
            "nullable": true,
            "description": "The password policy to enforce for user passwords on the local identity provider",
            "example": "Horizon-Default"
          },
          "emailTemplate": {
            "type": "object",
            "nullable": true,
            "description": "The e-mail template to use for password recovery",
            "allOf": [
              {
                "$ref": "#/components/schemas/EmailTemplate"
              }
            ]
          }
        },
        "required": [
          "name",
          "type",
          "enabled",
          "enabledOnUI"
        ]
      },
      "OidcIdentityProvider": {
        "title": "OpenId Identity Provider",
        "properties": {
          "name": {
            "type": "string",
            "description": "The internal name of the identity provider",
            "example": "Google"
          },
          "displayName": {
            "type": "array",
            "nullable": true,
            "description": "The display name of the identity provider",
            "items": {
              "$ref": "#/components/schemas/LocalizedString"
            }
          },
          "description": {
            "type": "array",
            "nullable": true,
            "description": "The description of the identity provider",
            "items": {
              "$ref": "#/components/schemas/LocalizedString"
            }
          },
          "type": {
            "type": "string",
            "description": "The type of Identity provider to register",
            "enum": [
              "OpenId"
            ]
          },
          "enabled": {
            "type": "boolean",
            "description": "Whether the identity provider can be used to identify against Horizon",
            "example": true
          },
          "enabledOnUI": {
            "type": "boolean",
            "description": "Whether the identity provider can be selected on login to the Horizon UI",
            "example": true
          },
          "proxy": {
            "type": "string",
            "nullable": true,
            "description": "The name of the proxy to use to reach the identity provider",
            "example": "googleProxy"
          },
          "timeout": {
            "nullable": true,
            "type": "string",
            "format": "Finite Duration",
            "description": "The timeout value to use when connecting to the identity provider (must be a valid finite duration)",
            "pattern": "^([0-9]+) *(ms|millisecond|milliseconds|s|second|seconds|m|minute|minutes|h|hour|hours|d|day|days)$",
            "example": "5 seconds"
          },
          "providerMetadataUrl": {
            "type": "string",
            "description": "The URL of the identity provider OpenID callback",
            "example": "https://accounts.google.com/.well-known/openid-configuration"
          },
          "clientCredentials": {
            "type": "string",
            "example": "OpenIdCredentials",
            "description": "Name of the `password` [credentials](#tag/security.credentials) containing the client ID  and secret to use to authenticate Horizon against the identity provider"
          },
          "scope": {
            "type": "string",
            "description": "The scope where to retrieve the user data from",
            "example": "openid profile email"
          },
          "trustSystemCAs": {
            "type": "boolean",
            "description": "Trust AC coming from the system trust store or only trust AC imported in Horizon",
            "example": true,
            "default": true
          },
          "identifierClaim": {
            "type": "string",
            "description": "The OpenID information that will be used as the user's identifier in Horizon",
            "example": "{{oid}}",
            "default": "{{email}}"
          },
          "emailClaim": {
            "type": "string",
            "description": "The OpenID information that will be used as the user's email in Horizon",
            "example": "{{email}}",
            "default": "{{email}}"
          },
          "nameClaim": {
            "type": "string",
            "description": "The OpenID information that will be used as the user's name in Horizon",
            "example": "{{name}}",
            "default": "{{name}}"
          }
        },
        "required": [
          "type",
          "name",
          "enabled",
          "enabledOnUI",
          "providerMetadataUrl",
          "clientCredentials",
          "scope",
          "trustSystemCAs"
        ]
      },
      "SecIdProv002": {
        "title": "SEC-IDPROV-002",
        "description": "Invalid Identity Provider",
        "allOf": [
          {
            "$ref": "#/components/schemas/BasicError"
          }
        ],
        "properties": {
          "error": {
            "enum": [
              "SEC-IDPROV-002"
            ]
          },
          "message": {
            "enum": [
              "Invalid Identity Provider"
            ]
          },
          "title": {
            "enum": [
              "Invalid Identity Provider"
            ]
          }
        },
        "required": [
          "error",
          "message",
          "title"
        ]
      },
      "SecIdProv006": {
        "title": "SEC-IDPROV-006",
        "description": "Referenced identity provider",
        "allOf": [
          {
            "$ref": "#/components/schemas/BasicError"
          }
        ],
        "properties": {
          "error": {
            "enum": [
              "SEC-IDPROV-006"
            ]
          },
          "message": {
            "enum": [
              "Referenced identity provider"
            ]
          },
          "title": {
            "enum": [
              "Referenced identity provider"
            ]
          }
        },
        "required": [
          "error",
          "message",
          "title"
        ]
      },
      "SecIdProv003": {
        "title": "SEC-IDPROV-003",
        "description": "Identity Provider not found",
        "allOf": [
          {
            "$ref": "#/components/schemas/BasicError"
          }
        ],
        "properties": {
          "error": {
            "enum": [
              "SEC-IDPROV-003"
            ]
          },
          "message": {
            "enum": [
              "Identity Provider not found"
            ]
          },
          "title": {
            "enum": [
              "Identity Provider not found"
            ]
          }
        },
        "required": [
          "error",
          "message",
          "title"
        ]
      },
      "SecIdProv004": {
        "title": "SEC-IDPROV-004",
        "description": "Identity Provider already exists",
        "allOf": [
          {
            "$ref": "#/components/schemas/BasicError"
          }
        ],
        "properties": {
          "error": {
            "enum": [
              "SEC-IDPROV-004"
            ]
          },
          "message": {
            "enum": [
              "Identity Provider already exists"
            ]
          },
          "title": {
            "enum": [
              "Identity Provider already exists"
            ]
          }
        },
        "required": [
          "error",
          "message",
          "title"
        ]
      },
      "PrincipalInfoSearchRequest": {
        "properties": {
          "identifier": {
            "type": "string",
            "nullable": true,
            "example": "administrator",
            "description": "The identifier of the principal to search for"
          },
          "contact": {
            "type": "string",
            "nullable": true,
            "example": "admin-horizon@evertrust.fr",
            "description": "The contact e-mail of the principal to search for"
          }
        }
      },
      "PrincipalInfoSearchResultResponse": {
        "properties": {
          "identifier": {
            "description": "The identifier of the principal matching the search",
            "type": "string",
            "example": "administrator"
          },
          "contact": {
            "description": "The mail of the principal matching the search",
            "type": "string",
            "nullable": true,
            "example": "admin-horizon@evertrust.fr"
          },
          "providerType": {
            "description": "The type of the identity provider on which this user is registered",
            "type": "string",
            "enum": [
              "Local",
              "OpenId"
            ]
          },
          "providerName": {
            "description": "The name of the identity provider on which this user is registered",
            "type": "string",
            "example": "local"
          }
        },
        "required": [
          "identifier",
          "providerType",
          "providerName"
        ]
      },
      "SecIdProv005": {
        "title": "SEC-IDPROV-005",
        "description": "Invalid principal info search request",
        "allOf": [
          {
            "$ref": "#/components/schemas/BasicError"
          }
        ],
        "properties": {
          "error": {
            "enum": [
              "SEC-IDPROV-005"
            ]
          },
          "message": {
            "enum": [
              "Invalid principal info search request"
            ]
          },
          "title": {
            "enum": [
              "Invalid principal info search request"
            ]
          }
        },
        "required": [
          "error",
          "message",
          "title"
        ]
      },
      "PasswordPolicyResponse": {
        "title": "Password Policy",
        "properties": {
          "_id": {
            "description": "The internal ID of the password policy",
            "allOf": [
              {
                "$ref": "#/components/schemas/Id"
              }
            ]
          },
          "name": {
            "description": "The name of the password policy",
            "type": "string",
            "example": "Horizon-Default"
          },
          "minChar": {
            "description": "The minimum number of characters of the password",
            "example": 8,
            "type": "integer",
            "format": "int32"
          },
          "maxChar": {
            "description": "The maximum number of characters of the password",
            "example": 24,
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "minUpChar": {
            "description": "The minimum number of uppercase characters of the password",
            "example": 1,
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "minLoChar": {
            "description": "The minimum number of lowercase characters of the password",
            "example": 1,
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "minDiChar": {
            "description": "The minimum number of digits of the password",
            "example": 1,
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "spChar": {
            "description": "The special characters of the password accepted by the password policy",
            "example": "!@#$%^&*()_+",
            "type": "string",
            "nullable": true
          },
          "minSpChar": {
            "description": "The minimum number of special characters of the password",
            "example": 1,
            "type": "integer",
            "format": "int32",
            "nullable": true
          }
        },
        "required": [
          "_id",
          "name",
          "minChar"
        ]
      },
      "PasswordPolicy001": {
        "title": "PASSWORD-POLICY-001",
        "description": "Unexpected Error",
        "allOf": [
          {
            "$ref": "#/components/schemas/BasicError"
          }
        ],
        "properties": {
          "error": {
            "enum": [
              "PASSWORD-POLICY-001"
            ]
          },
          "message": {
            "enum": [
              "Unexpected Error"
            ]
          },
          "title": {
            "enum": [
              "Unexpected Error"
            ]
          }
        },
        "required": [
          "error",
          "message",
          "title"
        ]
      },
      "PasswordPolicy002": {
        "title": "PASSWORD-POLICY-002",
        "description": "Invalid password policy",
        "allOf": [
          {
            "$ref": "#/components/schemas/BasicError"
          }
        ],
        "properties": {
          "error": {
            "enum": [
              "PASSWORD-POLICY-002"
            ]
          },
          "message": {
            "enum": [
              "Invalid password policy"
            ]
          },
          "title": {
            "enum": [
              "Invalid password policy"
            ]
          }
        },
        "required": [
          "error",
          "message",
          "title"
        ]
      },
      "PasswordPolicy003": {
        "title": "PASSWORD-POLICY-003",
        "description": "Password policy not found",
        "allOf": [
          {
            "$ref": "#/components/schemas/BasicError"
          }
        ],
        "properties": {
          "error": {
            "enum": [
              "PASSWORD-POLICY-003"
            ]
          },
          "message": {
            "enum": [
              "Password policy not found"
            ]
          },
          "title": {
            "enum": [
              "Password policy not found"
            ]
          }
        },
        "required": [
          "error",
          "message",
          "title"
        ]
      },
      "PasswordPolicy004": {
        "title": "PASSWORD-POLICY-004",
        "description": "Password policy already exists",
        "allOf": [
          {
            "$ref": "#/components/schemas/BasicError"
          }
        ],
        "properties": {
          "error": {
            "enum": [
              "PASSWORD-POLICY-004"
            ]
          },
          "message": {
            "enum": [
              "Password policy already exists"
            ]
          },
          "title": {
            "enum": [
              "Password policy already exists"
            ]
          }
        },
        "required": [
          "error",
          "message",
          "title"
        ]
      },
      "PasswordPolicy005": {
        "title": "PASSWORD-POLICY-005",
        "description": "Referenced Password policy",
        "allOf": [
          {
            "$ref": "#/components/schemas/BasicError"
          }
        ],
        "properties": {
          "error": {
            "enum": [
              "PASSWORD-POLICY-005"
            ]
          },
          "message": {
            "enum": [
              "Referenced Password policy"
            ]
          },
          "title": {
            "enum": [
              "Referenced Password policy"
            ]
          }
        },
        "required": [
          "error",
          "message",
          "title"
        ]
      },
      "Permission": {
        "title": "Permission",
        "properties": {
          "value": {
            "type": "string",
            "description": "The permission string, in the Horizon format : `<group>:<resource>:<scope>:<action>`\n",
            "example": "lifecycle:*:*:enroll"
          },
          "filter": {
            "type": "string",
            "nullable": true,
            "description": "The filter to apply to the permission in the HPQL format",
            "example": "label.BusinessUnit equals \"BU1\""
          }
        },
        "required": [
          "value"
        ]
      },
      "PrincipalInfoSavedQuery": {
        "title": "Principal queries",
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "heql",
              "hcql",
              "hrql",
              "hpql",
              "hdql"
            ],
            "description": "The type of the query",
            "example": "hcql"
          },
          "query": {
            "type": "string",
            "description": "The saved HQL query",
            "example": "status is valid and valid.until before 7 days"
          },
          "name": {
            "type": "string",
            "description": "Internal name of the saved request",
            "example": "Certificates7Days"
          },
          "description": {
            "type": "string",
            "nullable": true,
            "description": "The saved request description",
            "example": "Valid certificates that will expire within 7 days"
          }
        },
        "required": [
          "type",
          "query",
          "name"
        ]
      },
      "Having": {
        "title": "Having",
        "properties": {
          "operator": {
            "description": "A mongoDB operator for comparison",
            "type": "string",
            "example": "gt",
            "enum": [
              "gte",
              "lte",
              "gt",
              "eq",
              "ne",
              "lt"
            ]
          },
          "value": {
            "description": "An integer for the right hand side of the condition",
            "type": "integer",
            "format": "int32",
            "example": 5
          }
        },
        "required": [
          "operator",
          "value"
        ]
      },
      "Chart": {
        "title": "Chart",
        "properties": {
          "title": {
            "type": "string",
            "description": "Title of the chart",
            "example": "Certificate status on the WebRA"
          },
          "description": {
            "type": "string",
            "nullable": true,
            "description": "The description of the chart",
            "example": "Certificates grouped by validity status (expired, revoked or valid) on the WebRA"
          },
          "type": {
            "type": "string",
            "enum": [
              "treemap",
              "bar-horizontal",
              "line",
              "pie",
              "heatmap",
              "bar-horizontal-stacked",
              "metric",
              "radar",
              "donut",
              "bar-vertical-stacked",
              "table",
              "area",
              "bar-vertical"
            ],
            "description": "The type of the chart",
            "example": "donut"
          },
          "fields": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "The field that will be used to group data",
            "example": [
              "status"
            ]
          },
          "limit": {
            "type": "integer",
            "format": "int32",
            "nullable": true,
            "description": "The maximum number of results to display",
            "example": 100
          },
          "having": {
            "description": "A condition to apply to the results of the aggregate. Only the aggregates results with more than 5 items in them can be kept for example",
            "nullable": true,
            "type": "object",
            "allOf": [
              {
                "$ref": "#/components/schemas/Having"
              }
            ]
          },
          "sortOrder": {
            "type": "string",
            "nullable": true,
            "enum": [
              "Asc",
              "Desc",
              "KeyAsc",
              "KeyDesc"
            ],
            "description": "How to sort the results in the chart (if applicable)",
            "example": "KeyAsc"
          },
          "localQuery": {
            "type": "string",
            "nullable": true,
            "description": "The HCQL/HRQL query to build the chart from",
            "example": "module in [\"webra\"]"
          },
          "direction": {
            "type": "string",
            "nullable": true,
            "enum": [
              "asc",
              "desc"
            ]
          },
          "colors": {
            "description": "The colors of the chart",
            "type": "array",
            "example": [
              "#54B399",
              "#6092C0"
            ],
            "items": {
              "type": "string"
            }
          },
          "i": {
            "description": "The index of the chart on the dashboard",
            "type": "string",
            "nullable": true,
            "example": "1"
          },
          "x": {
            "description": "The horizontal position of the chart on the grid",
            "type": "integer",
            "format": "int32",
            "nullable": true,
            "example": 1
          },
          "y": {
            "description": "The vertical position of the chart on the grid",
            "type": "integer",
            "format": "int32",
            "nullable": true,
            "example": 1
          },
          "w": {
            "description": "The width of the chart",
            "type": "integer",
            "format": "int32",
            "nullable": true,
            "example": 2
          },
          "h": {
            "description": "The height of the chart",
            "type": "integer",
            "format": "int32",
            "nullable": true,
            "example": 3
          },
          "log": {
            "description": "Whether the logarithm scale is enabled or not",
            "type": "boolean"
          }
        },
        "required": [
          "title",
          "type",
          "fields",
          "colors",
          "log"
        ]
      },
      "Dashboard": {
        "title": "Dashboard",
        "properties": {
          "name": {
            "description": "The dashboard's name",
            "type": "string",
            "example": "My Certificate Dashboard"
          },
          "description": {
            "description": "The dashboard's description",
            "type": "string",
            "nullable": true,
            "example": "Here I can see my certificates"
          },
          "charts": {
            "description": "The dashboard's list of charts",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Chart"
            }
          },
          "type": {
            "type": "string",
            "enum": [
              "certificate",
              "request"
            ],
            "description": "The type of objects the dashboard displays",
            "example": "certificate"
          }
        },
        "required": [
          "name",
          "charts",
          "type"
        ]
      },
      "PrincipalInfoPreferences": {
        "title": "Principal Preferences",
        "properties": {
          "darkMode": {
            "description": "Dark Mode is enabled on UI for this user",
            "type": "boolean",
            "default": false,
            "nullable": true
          },
          "expertMode": {
            "description": "Expert mode is enabled on UI for this user",
            "type": "boolean",
            "default": false
          },
          "lang": {
            "description": "The preferred language of the user",
            "type": "string",
            "nullable": true,
            "enum": [
              "en",
              "fr"
            ]
          },
          "certificateFields": {
            "description": "The user's preferred columns on certificate view",
            "type": "array",
            "example": [
              "profile",
              "module"
            ],
            "nullable": true,
            "items": {
              "type": "string"
            }
          },
          "requestFields": {
            "description": "The user's preferred columns on request view",
            "type": "array",
            "nullable": true,
            "items": {
              "type": "string"
            },
            "example": [
              "workflow",
              "module"
            ]
          }
        }
      },
      "PrincipalInfo": {
        "title": "Principal information",
        "properties": {
          "identifier": {
            "type": "string",
            "example": "administrator",
            "description": "The identifier of the principal"
          },
          "contact": {
            "type": "string",
            "nullable": true,
            "example": "administrator@horizon.evertrust.fr",
            "description": "The contact e-mail of the principal"
          },
          "permissions": {
            "type": "array",
            "nullable": true,
            "items": {
              "$ref": "#/components/schemas/Permission"
            },
            "description": "The permissions of the principal"
          },
          "roles": {
            "type": "array",
            "nullable": true,
            "items": {
              "type": "string"
            },
            "description": "The roles of the principal",
            "example": [
              "SuperAdmin",
              "webRA_Approver"
            ]
          },
          "teams": {
            "type": "array",
            "nullable": true,
            "items": {
              "type": "string"
            },
            "description": "The teams of the principal",
            "example": [
              "PKIOps",
              "CISO"
            ]
          },
          "savedQueries": {
            "type": "array",
            "nullable": true,
            "items": {
              "$ref": "#/components/schemas/PrincipalInfoSavedQuery"
            },
            "description": "The saved HQL queries of the principal. This is used by UI only. These values should not be manually set but should be copied on update"
          },
          "customDashboards": {
            "type": "array",
            "nullable": true,
            "items": {
              "$ref": "#/components/schemas/Dashboard"
            },
            "description": "The custom dashboards of the principal. This is used by UI only. These values should not be manually set but should be copied on update"
          },
          "preferences": {
            "type": "object",
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/PrincipalInfoPreferences"
              }
            ],
            "description": "The UI preferences of the principal. This is used by UI only. These values should not be manually set but should be copied on update"
          },
          "enabled": {
            "type": "boolean",
            "example": true,
            "description": "If the principal is allowed to login horizon"
          }
        },
        "required": [
          "identifier",
          "enabled"
        ]
      },
      "PrincipalInfoResponse": {
        "title": "Principal information",
        "properties": {
          "_id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/Id"
              }
            ]
          },
          "identifier": {
            "type": "string",
            "example": "administrator",
            "description": "The identifier of the principal"
          },
          "contact": {
            "type": "string",
            "nullable": true,
            "example": "administrator@horizon.evertrust.fr",
            "description": "The contact e-mail of the principal"
          },
          "permissions": {
            "type": "array",
            "nullable": true,
            "items": {
              "$ref": "#/components/schemas/Permission"
            },
            "description": "The permissions of the principal"
          },
          "roles": {
            "type": "array",
            "nullable": true,
            "items": {
              "type": "string"
            },
            "description": "The roles of the principal",
            "example": [
              "SuperAdmin",
              "webRA_Approver"
            ]
          },
          "teams": {
            "type": "array",
            "nullable": true,
            "items": {
              "type": "string"
            },
            "description": "The teams of the principal",
            "example": [
              "PKIOps",
              "CISO"
            ]
          },
          "savedQueries": {
            "type": "array",
            "nullable": true,
            "items": {
              "$ref": "#/components/schemas/PrincipalInfoSavedQuery"
            },
            "description": "The saved HQL queries of the principal. This is used by UI only. These values should not be manually set but should be copied on update"
          },
          "customDashboards": {
            "type": "array",
            "nullable": true,
            "items": {
              "$ref": "#/components/schemas/Dashboard"
            },
            "description": "The custom dashboards of the principal. This is used by UI only. These values should not be manually set but should be copied on update"
          },
          "preferences": {
            "type": "object",
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/PrincipalInfoPreferences"
              }
            ],
            "description": "The UI preferences of the principal. This is used by UI only. These values should not be manually set but should be copied on update"
          },
          "creationDate": {
            "type": "integer",
            "format": "epoch",
            "description": "The creation date of the principal (UNIX Timestamp in milliseconds)",
            "example": 1601900000000
          },
          "lastAuthentication": {
            "type": "integer",
            "format": "epoch",
            "nullable": true,
            "example": 1601900000000,
            "description": "The last authentication date of the principal (UNIX Timestamp in milliseconds)"
          },
          "lastModification": {
            "nullable": true,
            "example": 1601900000000,
            "type": "integer",
            "format": "epoch",
            "description": "The last modification date of the principal (UNIX Timestamp in milliseconds)"
          },
          "enabled": {
            "type": "boolean",
            "example": true,
            "description": "If the principal is allowed to login horizon"
          }
        },
        "required": [
          "_id",
          "identifier",
          "creationDate",
          "enabled"
        ]
      },
      "SecPI002": {
        "title": "SEC-PI-002",
        "description": "Invalid Principal Info",
        "allOf": [
          {
            "$ref": "#/components/schemas/BasicError"
          }
        ],
        "properties": {
          "error": {
            "enum": [
              "SEC-PI-002"
            ]
          },
          "message": {
            "enum": [
              "Invalid Principal Info"
            ]
          },
          "title": {
            "enum": [
              "Invalid Principal Info"
            ]
          }
        },
        "required": [
          "error",
          "message",
          "title"
        ]
      },
      "SecPI003": {
        "title": "SEC-PI-003",
        "description": "Principal Info not found",
        "allOf": [
          {
            "$ref": "#/components/schemas/BasicError"
          }
        ],
        "properties": {
          "error": {
            "enum": [
              "SEC-PI-003"
            ]
          },
          "message": {
            "enum": [
              "Principal Info not found"
            ]
          },
          "title": {
            "enum": [
              "Principal Info not found"
            ]
          }
        },
        "required": [
          "error",
          "message",
          "title"
        ]
      },
      "SecPI001": {
        "title": "SEC-PI-001",
        "description": "Unexpected Error",
        "allOf": [
          {
            "$ref": "#/components/schemas/BasicError"
          }
        ],
        "properties": {
          "error": {
            "enum": [
              "SEC-PI-001"
            ]
          },
          "message": {
            "enum": [
              "Unexpected Error"
            ]
          },
          "title": {
            "enum": [
              "Unexpected Error"
            ]
          }
        },
        "required": [
          "error",
          "message",
          "title"
        ]
      },
      "SecPI004": {
        "title": "SEC-PI-004",
        "description": "Principal info already exists",
        "allOf": [
          {
            "$ref": "#/components/schemas/BasicError"
          }
        ],
        "properties": {
          "error": {
            "enum": [
              "SEC-PI-004"
            ]
          },
          "message": {
            "enum": [
              "Principal info already exists"
            ]
          },
          "title": {
            "enum": [
              "Principal info already exists"
            ]
          }
        },
        "required": [
          "error",
          "message",
          "title"
        ]
      },
      "PrincipalInfoSearchQuery": {
        "properties": {
          "identifier": {
            "type": "string",
            "nullable": true,
            "description": "The identifier of the principal"
          },
          "contact": {
            "type": "string",
            "nullable": true,
            "description": "The contact e-mail of the principal"
          },
          "role": {
            "type": "string",
            "nullable": true,
            "description": "The role of the principal"
          },
          "team": {
            "type": "string",
            "nullable": true,
            "description": "The team of the principal"
          },
          "strictSearch": {
            "type": "boolean",
            "nullable": true,
            "default": false,
            "description": "If enabled, `role`, `identifier` and `team` fields will list exact matches only"
          },
          "sortedBy": {
            "type": "array",
            "nullable": true,
            "items": {
              "$ref": "#/components/schemas/SortElement"
            },
            "description": "How to sort the results of the search"
          },
          "pageIndex": {
            "type": "integer",
            "format": "int32",
            "nullable": true,
            "description": "Which page result to display"
          },
          "pageSize": {
            "type": "integer",
            "format": "int32",
            "nullable": true,
            "description": "How many results to display per page"
          },
          "withCount": {
            "type": "boolean",
            "nullable": true,
            "description": "Whether to include the total number of results in the response"
          }
        }
      },
      "PrincipalInfoSearchResultsResponse": {
        "properties": {
          "results": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PrincipalInfo"
            }
          },
          "pageIndex": {
            "type": "integer",
            "format": "int32",
            "description": "The current page index",
            "example": 1
          },
          "pageSize": {
            "type": "integer",
            "format": "int32",
            "description": "The current number of returned element per page",
            "example": 20
          },
          "count": {
            "type": "integer",
            "format": "int64",
            "nullable": true,
            "description": "The total number of results (if _withCount_ was set to true in the query)",
            "example": 15
          },
          "hasMore": {
            "type": "boolean",
            "description": "Whether there are more results to display (on another page)",
            "example": true
          }
        },
        "required": [
          "results",
          "pageIndex",
          "pageSize",
          "hasMore"
        ]
      },
      "SecPI005": {
        "title": "SEC-PI-005",
        "description": "Invalid Principal Info search query",
        "allOf": [
          {
            "$ref": "#/components/schemas/BasicError"
          }
        ],
        "properties": {
          "error": {
            "enum": [
              "SEC-PI-005"
            ]
          },
          "message": {
            "enum": [
              "Invalid Principal Info search query"
            ]
          },
          "title": {
            "enum": [
              "Invalid Principal Info search query"
            ]
          }
        },
        "required": [
          "error",
          "message",
          "title"
        ]
      },
      "RoleResponse": {
        "title": "Role",
        "properties": {
          "_id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/Id"
              }
            ]
          },
          "name": {
            "type": "string",
            "description": "The name of the role",
            "example": "CanEnroll"
          },
          "description": {
            "type": "string",
            "description": "The description of the role",
            "example": "Gives all enroll permissions to users",
            "nullable": true
          },
          "permissions": {
            "description": "The role's permissions",
            "type": "array",
            "nullable": true,
            "items": {
              "$ref": "#/components/schemas/Permission"
            }
          }
        },
        "required": [
          "_id",
          "name"
        ]
      },
      "Role001": {
        "title": "ROLE-001",
        "description": "Unexpected error",
        "allOf": [
          {
            "$ref": "#/components/schemas/BasicError"
          }
        ],
        "properties": {
          "error": {
            "enum": [
              "ROLE-001"
            ]
          },
          "message": {
            "enum": [
              "Unexpected error"
            ]
          },
          "title": {
            "enum": [
              "Unexpected error"
            ]
          }
        },
        "required": [
          "error",
          "message",
          "title"
        ]
      },
      "Role": {
        "title": "Role",
        "properties": {
          "name": {
            "type": "string",
            "description": "The name of the role",
            "example": "CanEnroll"
          },
          "description": {
            "type": "string",
            "description": "The description of the role",
            "example": "Gives all enroll permissions to users",
            "nullable": true
          },
          "permissions": {
            "description": "The role's permissions",
            "type": "array",
            "nullable": true,
            "items": {
              "$ref": "#/components/schemas/Permission"
            }
          }
        },
        "required": [
          "name"
        ]
      },
      "Role002": {
        "title": "ROLE-002",
        "description": "Invalid Role",
        "allOf": [
          {
            "$ref": "#/components/schemas/BasicError"
          }
        ],
        "properties": {
          "error": {
            "enum": [
              "ROLE-002"
            ]
          },
          "message": {
            "enum": [
              "Invalid Role"
            ]
          },
          "title": {
            "enum": [
              "Invalid Role"
            ]
          }
        },
        "required": [
          "error",
          "message",
          "title"
        ]
      },
      "Role003": {
        "title": "ROLE-003",
        "description": "Role not found",
        "allOf": [
          {
            "$ref": "#/components/schemas/BasicError"
          }
        ],
        "properties": {
          "error": {
            "enum": [
              "ROLE-003"
            ]
          },
          "message": {
            "enum": [
              "Role not found"
            ]
          },
          "title": {
            "enum": [
              "Role not found"
            ]
          }
        },
        "required": [
          "error",
          "message",
          "title"
        ]
      },
      "Role004": {
        "title": "ROLE-004",
        "description": "Role already exists",
        "allOf": [
          {
            "$ref": "#/components/schemas/BasicError"
          }
        ],
        "properties": {
          "error": {
            "enum": [
              "ROLE-004"
            ]
          },
          "message": {
            "enum": [
              "Role already exists"
            ]
          },
          "title": {
            "enum": [
              "Role already exists"
            ]
          }
        },
        "required": [
          "error",
          "message",
          "title"
        ]
      },
      "Team003": {
        "title": "TEAM-003",
        "description": "Team not found",
        "allOf": [
          {
            "$ref": "#/components/schemas/BasicError"
          }
        ],
        "properties": {
          "error": {
            "enum": [
              "TEAM-003"
            ]
          },
          "message": {
            "enum": [
              "Team not found"
            ]
          },
          "title": {
            "enum": [
              "Team not found"
            ]
          }
        },
        "required": [
          "error",
          "message",
          "title"
        ]
      },
      "Team001": {
        "title": "TEAM-001",
        "description": "Unexpected error",
        "allOf": [
          {
            "$ref": "#/components/schemas/BasicError"
          }
        ],
        "properties": {
          "error": {
            "enum": [
              "TEAM-001"
            ]
          },
          "message": {
            "enum": [
              "Unexpected error"
            ]
          },
          "title": {
            "enum": [
              "Unexpected error"
            ]
          }
        },
        "required": [
          "error",
          "message",
          "title"
        ]
      },
      "Webhook": {
        "title": "Webhook Definition",
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "slack",
              "teams"
            ],
            "description": "The type of the webhook (Teams or Slack/Mattermost)"
          },
          "url": {
            "example": "https://hooks.slack.com/services/T00000000/B00000000/XXXXXXXXXXXXXXXXXXXXXXXX",
            "type": "string",
            "description": "The URL of the webhook"
          }
        },
        "required": [
          "type",
          "url"
        ]
      },
      "TeamResponse": {
        "title": "Team",
        "properties": {
          "_id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/Id"
              }
            ]
          },
          "name": {
            "type": "string",
            "description": "The name of the team",
            "example": "PKIOps"
          },
          "description": {
            "type": "array",
            "nullable": true,
            "items": {
              "$ref": "#/components/schemas/LocalizedString"
            },
            "description": "The localized description of the team"
          },
          "contact": {
            "type": "string",
            "nullable": true,
            "description": "The generic contact e-mail of the Team",
            "example": "pkiops@evertrust.fr"
          },
          "webhook": {
            "type": "object",
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/Webhook"
              }
            ],
            "description": "The webhook of the team's corporate channel (Teams, Slack, Mattermost)"
          },
          "managers": {
            "type": "array",
            "description": "The identifiers of the team's managers",
            "items": {
              "type": "string",
              "description": "An existing principal identifier"
            },
            "example": [
              "manager.pkiops@evertrust.fr"
            ]
          },
          "displayName": {
            "type": "array",
            "nullable": true,
            "items": {
              "$ref": "#/components/schemas/LocalizedString"
            },
            "description": "The localized display name of the team"
          }
        },
        "required": [
          "_id",
          "name",
          "managers"
        ]
      },
      "Team": {
        "title": "Team",
        "properties": {
          "name": {
            "type": "string",
            "description": "The name of the team",
            "example": "PKIOps"
          },
          "description": {
            "type": "array",
            "nullable": true,
            "items": {
              "$ref": "#/components/schemas/LocalizedString"
            },
            "description": "The localized description of the team"
          },
          "contact": {
            "type": "string",
            "nullable": true,
            "description": "The generic contact e-mail of the Team",
            "example": "pkiops@evertrust.fr"
          },
          "webhook": {
            "type": "object",
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/Webhook"
              }
            ],
            "description": "The webhook of the team's corporate channel (Teams, Slack, Mattermost)"
          },
          "managers": {
            "type": "array",
            "nullable": true,
            "description": "The identifiers of the team's managers",
            "items": {
              "type": "string",
              "description": "An existing principal identifier"
            },
            "example": [
              "manager.pkiops@evertrust.fr"
            ]
          },
          "displayName": {
            "type": "array",
            "nullable": true,
            "items": {
              "$ref": "#/components/schemas/LocalizedString"
            },
            "description": "The localized display name of the team"
          }
        },
        "required": [
          "name"
        ]
      },
      "Team002": {
        "title": "TEAM-002",
        "description": "Invalid team",
        "allOf": [
          {
            "$ref": "#/components/schemas/BasicError"
          }
        ],
        "properties": {
          "error": {
            "enum": [
              "TEAM-002"
            ]
          },
          "message": {
            "enum": [
              "Invalid team"
            ]
          },
          "title": {
            "enum": [
              "Invalid team"
            ]
          }
        },
        "required": [
          "error",
          "message",
          "title"
        ]
      },
      "Team004": {
        "title": "TEAM-004",
        "description": "Team already exists",
        "allOf": [
          {
            "$ref": "#/components/schemas/BasicError"
          }
        ],
        "properties": {
          "error": {
            "enum": [
              "TEAM-004"
            ]
          },
          "message": {
            "enum": [
              "Team already exists"
            ]
          },
          "title": {
            "enum": [
              "Team already exists"
            ]
          }
        },
        "required": [
          "error",
          "message",
          "title"
        ]
      },
      "MappingRole": {
        "title": "Scim mapping",
        "properties": {
          "group": {
            "type": "string",
            "description": "The Scim group coming from the scim provider",
            "example": "Devs"
          },
          "role": {
            "type": "string",
            "description": "The mapped role on horizon",
            "example": "Okta-Dev-role"
          }
        },
        "required": [
          "group",
          "role"
        ]
      },
      "MappingTeam": {
        "title": "Scim mapping",
        "properties": {
          "group": {
            "type": "string",
            "description": "The Scim group coming from the scim provider",
            "example": "Devs"
          },
          "team": {
            "type": "string",
            "description": "The mapped team on horizon",
            "example": "Okta-Dev-team"
          }
        },
        "required": [
          "group",
          "team"
        ]
      },
      "ScimProfileResponse": {
        "title": "Scim profile",
        "properties": {
          "_id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/Id"
              }
            ]
          },
          "name": {
            "type": "string",
            "description": "The name of the Scim profile",
            "example": "OktaScim"
          },
          "description": {
            "type": "string",
            "description": "The description of the Scim profile",
            "example": "The Mapping for the Okta provisioning",
            "nullable": true
          },
          "mailType": {
            "type": "string",
            "description": "The mail type corresponds to the mail coming from the scim provider that must be synchronised in horizon. By default, the mail type is \"work\".",
            "default": "work",
            "example": "home",
            "nullable": true
          },
          "mappings": {
            "description": "The mapping used to synchronize user and group between the scim provider and Horizon.",
            "type": "array",
            "nullable": true,
            "items": {
              "oneOf": [
                {
                  "$ref": "#/components/schemas/MappingRole"
                },
                {
                  "$ref": "#/components/schemas/MappingTeam"
                }
              ]
            }
          }
        },
        "required": [
          "_id",
          "name"
        ]
      },
      "ScimProfile001": {
        "title": "SCIM-PI-001",
        "description": "Unexpected Error",
        "allOf": [
          {
            "$ref": "#/components/schemas/BasicError"
          }
        ],
        "properties": {
          "error": {
            "enum": [
              "SCIM-PI-001"
            ]
          },
          "message": {
            "enum": [
              "Unexpected Error"
            ]
          },
          "title": {
            "enum": [
              "Unexpected Error"
            ]
          }
        },
        "required": [
          "error",
          "message",
          "title"
        ]
      },
      "ScimProfile": {
        "title": "Scim profile",
        "properties": {
          "name": {
            "type": "string",
            "description": "The name of the Scim profile",
            "example": "OktaScim"
          },
          "description": {
            "type": "string",
            "description": "The description of the Scim profile",
            "example": "The Mapping for the Okta provisioning",
            "nullable": true
          },
          "mailType": {
            "type": "string",
            "description": "The mail type corresponds to the mail coming from the scim provider that must be synchronised in horizon. By default, the mail type is \"work\".",
            "default": "work",
            "example": "home",
            "nullable": true
          },
          "mappings": {
            "description": "The mapping used to synchronize user and group between the scim provider and Horizon.",
            "type": "array",
            "nullable": true,
            "items": {
              "oneOf": [
                {
                  "$ref": "#/components/schemas/MappingRole"
                },
                {
                  "$ref": "#/components/schemas/MappingTeam"
                }
              ]
            }
          }
        },
        "required": [
          "name"
        ]
      },
      "ScimProfile002": {
        "title": "SCIM-PI-002",
        "description": "Invalid Scim Profile",
        "allOf": [
          {
            "$ref": "#/components/schemas/BasicError"
          }
        ],
        "properties": {
          "error": {
            "enum": [
              "SCIM-PI-002"
            ]
          },
          "message": {
            "enum": [
              "Invalid Scim Profile"
            ]
          },
          "title": {
            "enum": [
              "Invalid Scim Profile"
            ]
          }
        },
        "required": [
          "error",
          "message",
          "title"
        ]
      },
      "ScimProfile005": {
        "title": "SCIM-PI-005",
        "description": "Teams or Roles are referenced",
        "allOf": [
          {
            "$ref": "#/components/schemas/BasicError"
          }
        ],
        "properties": {
          "error": {
            "enum": [
              "SCIM-PI-005"
            ]
          },
          "message": {
            "enum": [
              "Teams or Roles are referenced"
            ]
          },
          "title": {
            "enum": [
              "Teams or Roles are referenced"
            ]
          }
        },
        "required": [
          "error",
          "message",
          "title"
        ]
      },
      "ScimProfile003": {
        "title": "SCIM-PI-003",
        "description": "Scim Profile not found",
        "allOf": [
          {
            "$ref": "#/components/schemas/BasicError"
          }
        ],
        "properties": {
          "error": {
            "enum": [
              "SCIM-PI-003"
            ]
          },
          "message": {
            "enum": [
              "Scim Profile not found"
            ]
          },
          "title": {
            "enum": [
              "Scim Profile not found"
            ]
          }
        },
        "required": [
          "error",
          "message",
          "title"
        ]
      },
      "ScimProfile004": {
        "title": "SCIM-PI-004",
        "description": "Scim Profile already exists",
        "allOf": [
          {
            "$ref": "#/components/schemas/BasicError"
          }
        ],
        "properties": {
          "error": {
            "enum": [
              "SCIM-PI-004"
            ]
          },
          "message": {
            "enum": [
              "Scim Profile already exists"
            ]
          },
          "title": {
            "enum": [
              "Scim Profile already exists"
            ]
          }
        },
        "required": [
          "error",
          "message",
          "title"
        ]
      },
      "TenantResponse": {
        "title": "Tenant",
        "properties": {
          "_id": {
            "$ref": "#/components/schemas/Id"
          },
          "name": {
            "type": "string",
            "example": "tenant1",
            "description": "The tenant internal name"
          },
          "description": {
            "type": "string",
            "example": "Tenant for client 'Test'",
            "description": "A simple description for this tenant"
          },
          "licenseLimit": {
            "type": "integer",
            "example": 500,
            "description": "License limit for this tenant"
          },
          "licenseExpiration": {
            "type": "integer",
            "format": "epoch",
            "example": 1609459200000,
            "description": "Custom license expiration date for this tenant"
          },
          "deletableAt": {
            "type": "integer",
            "format": "epoch",
            "example": 1609459200000,
            "description": "Instant after which this tenant will be deletable"
          }
        },
        "required": [
          "name",
          "licenseLimit"
        ]
      },
      "Tenant005": {
        "allOf": [
          {
            "$ref": "#/components/schemas/BasicError"
          }
        ],
        "description": "Endpoint disabled",
        "properties": {
          "error": {
            "enum": [
              "TENANT-005"
            ]
          },
          "message": {
            "enum": [
              "Endpoint disabled"
            ]
          },
          "title": {
            "enum": [
              "Endpoint disabled"
            ]
          }
        },
        "required": [
          "error",
          "message",
          "title"
        ],
        "title": "TENANT-005"
      },
      "Tenant001": {
        "allOf": [
          {
            "$ref": "#/components/schemas/BasicError"
          }
        ],
        "description": "Unexpected error",
        "properties": {
          "error": {
            "enum": [
              "TENANT-001"
            ]
          },
          "message": {
            "enum": [
              "Unexpected error"
            ]
          },
          "title": {
            "enum": [
              "Unexpected error"
            ]
          }
        },
        "required": [
          "error",
          "message",
          "title"
        ],
        "title": "TENANT-001"
      },
      "TenantUpdateRequest": {
        "title": "Tenant",
        "properties": {
          "name": {
            "type": "string",
            "description": "The tenant internal name"
          },
          "description": {
            "type": "string",
            "description": "A simple description for this tenant"
          },
          "licenseLimit": {
            "type": "integer",
            "description": "License limit for this tenant"
          },
          "licenseExpiration": {
            "type": "integer",
            "description": "Custom license expiration date for this tenant"
          }
        },
        "required": [
          "name",
          "licenseLimit"
        ]
      },
      "Tenant002": {
        "allOf": [
          {
            "$ref": "#/components/schemas/BasicError"
          }
        ],
        "description": "Invalid tenant",
        "properties": {
          "error": {
            "enum": [
              "TENANT-002"
            ]
          },
          "message": {
            "enum": [
              "Invalid tenant"
            ]
          },
          "title": {
            "enum": [
              "Invalid tenant"
            ]
          }
        },
        "required": [
          "error",
          "message",
          "title"
        ],
        "title": "TENANT-002"
      },
      "Tenant003": {
        "allOf": [
          {
            "$ref": "#/components/schemas/BasicError"
          }
        ],
        "description": "Tenant not found",
        "properties": {
          "error": {
            "enum": [
              "TENANT-003"
            ]
          },
          "message": {
            "enum": [
              "Tenant not found"
            ]
          },
          "title": {
            "enum": [
              "Tenant not found"
            ]
          }
        },
        "required": [
          "error",
          "message",
          "title"
        ],
        "title": "TENANT-003"
      },
      "TenantCreationRequest": {
        "title": "Tenant",
        "properties": {
          "name": {
            "type": "string",
            "description": "The tenant internal name"
          },
          "description": {
            "type": "string",
            "description": "A simple description for this tenant"
          },
          "licenseLimit": {
            "type": "integer",
            "description": "License limit for this tenant"
          },
          "licenseExpiration": {
            "type": "integer",
            "description": "Custom license expiration date for this tenant"
          },
          "administratorPassword": {
            "type": "string",
            "description": "Password to use for the administrator account of this tenant"
          }
        },
        "required": [
          "name",
          "licenseLimit"
        ]
      },
      "BootstrapAccount": {
        "title": "Account information",
        "properties": {
          "identifier": {
            "type": "string",
            "example": "administrator",
            "description": "Identifier of the account"
          },
          "password": {
            "type": "string",
            "example": "SecurePassword123!",
            "description": "Password of the account. If it was given in the input, it is not provided here"
          }
        },
        "required": [
          "identifier"
        ]
      },
      "TenantWithAccountResponse": {
        "title": "Tenant and associated administrator account",
        "properties": {
          "tenant": {
            "$ref": "#/components/schemas/TenantResponse"
          },
          "account": {
            "$ref": "#/components/schemas/BootstrapAccount"
          }
        },
        "required": [
          "tenant",
          "account"
        ]
      },
      "Tenant004": {
        "allOf": [
          {
            "$ref": "#/components/schemas/BasicError"
          }
        ],
        "description": "Tenant already exists",
        "properties": {
          "error": {
            "enum": [
              "TENANT-004"
            ]
          },
          "message": {
            "enum": [
              "Tenant already exists"
            ]
          },
          "title": {
            "enum": [
              "Tenant already exists"
            ]
          }
        },
        "required": [
          "error",
          "message",
          "title"
        ],
        "title": "TENANT-004"
      },
      "Tenant006": {
        "allOf": [
          {
            "$ref": "#/components/schemas/BasicError"
          }
        ],
        "description": "Cannot delete tenant",
        "properties": {
          "error": {
            "enum": [
              "TENANT-006"
            ]
          },
          "message": {
            "enum": [
              "Cannot delete tenant"
            ]
          },
          "title": {
            "enum": [
              "Cannot delete tenant"
            ]
          }
        },
        "required": [
          "error",
          "message",
          "title"
        ],
        "title": "TENANT-006"
      },
      "Tenant007": {
        "allOf": [
          {
            "$ref": "#/components/schemas/BasicError"
          }
        ],
        "description": "Cannot restore tenant",
        "properties": {
          "error": {
            "enum": [
              "TENANT-007"
            ]
          },
          "message": {
            "enum": [
              "Cannot restore tenant"
            ]
          },
          "title": {
            "enum": [
              "Cannot restore tenant"
            ]
          }
        },
        "required": [
          "error",
          "message",
          "title"
        ],
        "title": "TENANT-007"
      },
      "Credentials": {
        "properties": {
          "name": {
            "description": "These credentials identifying name",
            "type": "string",
            "example": "My credentials"
          },
          "type": {
            "description": "These credentials type",
            "type": "string",
            "example": "certificate"
          },
          "description": {
            "description": "These credentials description",
            "type": "string",
            "example": "To authenticate on Stream",
            "nullable": true
          },
          "expires": {
            "type": "integer",
            "format": "epoch",
            "nullable": true,
            "example": 1683021380000,
            "description": "The expiration date of these credentials"
          },
          "triggers": {
            "description": "Triggers to run for these credentials",
            "type": "object",
            "properties": {
              "onCredentialsExpiration": {
                "description": "The notifications to be sent when the credentials expire",
                "type": "array",
                "items": {
                  "type": "string"
                }
              }
            }
          },
          "targets": {
            "description": "On which configuration the credentials are usable",
            "type": "array",
            "items": {
              "type": "string",
              "enum": [
                "pkiconnector",
                "scepra",
                "oidc",
                "thirdparty",
                "mdm",
                "exchange",
                "rest",
                "datasource",
                "proxy"
              ]
            }
          }
        }
      },
      "CredentialsResponse": {
        "allOf": [
          {
            "$ref": "#/components/schemas/Credentials"
          }
        ],
        "properties": {
          "_id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/Id"
              }
            ]
          }
        }
      },
      "SecretStoreResponse": {
        "title": "Certificate And Key Storage",
        "properties": {
          "certificate": {
            "allOf": [
              {
                "$ref": "#/components/schemas/CFCertificateResponse"
              }
            ]
          }
        },
        "required": [
          "certificate"
        ]
      },
      "CertificateCredentialsResponse": {
        "title": "Certificate credentials",
        "allOf": [
          {
            "$ref": "#/components/schemas/CredentialsResponse"
          }
        ],
        "properties": {
          "expires": {
            "description": "The expiration date of these credentials. Automatically set to the expiration date of the certificate"
          },
          "type": {
            "enum": [
              "x509"
            ]
          },
          "store": {
            "description": "These credentials certificate",
            "allOf": [
              {
                "$ref": "#/components/schemas/SecretStoreResponse"
              }
            ]
          }
        },
        "required": [
          "_id",
          "name",
          "type",
          "store",
          "expires"
        ]
      },
      "PasswordCredentialsResponse": {
        "title": "Password credentials",
        "allOf": [
          {
            "$ref": "#/components/schemas/CredentialsResponse"
          }
        ],
        "properties": {
          "type": {
            "enum": [
              "password"
            ]
          },
          "login": {
            "type": "string",
            "example": "john@doe.com",
            "description": "These credentials login"
          },
          "password": {
            "description": "These credentials password",
            "allOf": [
              {
                "$ref": "#/components/schemas/SecretString"
              }
            ]
          }
        },
        "required": [
          "_id",
          "name",
          "type",
          "login",
          "password"
        ]
      },
      "RawCredentialsResponse": {
        "title": "Raw credentials",
        "allOf": [
          {
            "$ref": "#/components/schemas/CredentialsResponse"
          }
        ],
        "properties": {
          "_id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/Id"
              }
            ]
          },
          "type": {
            "enum": [
              "raw"
            ]
          },
          "secret": {
            "description": "These credentials secret",
            "allOf": [
              {
                "$ref": "#/components/schemas/SecretString"
              }
            ]
          }
        },
        "required": [
          "_id",
          "name",
          "type",
          "secret"
        ]
      },
      "Credentials001": {
        "title": "CREDENTIALS-001",
        "description": "Unexpected Error",
        "allOf": [
          {
            "$ref": "#/components/schemas/BasicError"
          }
        ],
        "properties": {
          "error": {
            "enum": [
              "CREDENTIALS-001"
            ]
          },
          "message": {
            "enum": [
              "Unexpected Error"
            ]
          },
          "title": {
            "enum": [
              "Unexpected Error"
            ]
          }
        },
        "required": [
          "error",
          "message",
          "title"
        ]
      },
      "SecretStoreRequest": {
        "title": "Certificate And Key Storage",
        "properties": {
          "certificate": {
            "type": "string",
            "format": "PEM encoded",
            "description": "The PEM-encoded certificate",
            "example": "-----BEGIN CERTIFICATE-----..."
          },
          "value": {
            "type": "string",
            "format": "PKCS#8 PEM encoded",
            "description": "The PEM-encoded private key of the certificate to store",
            "example": "-----BEGIN PRIVATE KEY-----..."
          }
        },
        "required": [
          "certificate",
          "value"
        ]
      },
      "CertificateCredentials": {
        "title": "Certificate credentials",
        "allOf": [
          {
            "$ref": "#/components/schemas/Credentials"
          }
        ],
        "properties": {
          "type": {
            "enum": [
              "x509"
            ]
          },
          "store": {
            "description": "These credentials certificate",
            "allOf": [
              {
                "$ref": "#/components/schemas/SecretStoreRequest"
              }
            ]
          }
        },
        "required": [
          "name",
          "type",
          "store"
        ]
      },
      "PasswordCredentials": {
        "title": "Password credentials",
        "allOf": [
          {
            "$ref": "#/components/schemas/Credentials"
          }
        ],
        "properties": {
          "type": {
            "enum": [
              "password"
            ]
          },
          "login": {
            "type": "string",
            "example": "john@doe.com",
            "description": "These credentials login"
          },
          "password": {
            "description": "These credentials password",
            "allOf": [
              {
                "$ref": "#/components/schemas/SecretString"
              }
            ]
          }
        },
        "required": [
          "name",
          "type",
          "login",
          "password"
        ]
      },
      "RawCredentials": {
        "title": "Raw credentials",
        "allOf": [
          {
            "$ref": "#/components/schemas/Credentials"
          }
        ],
        "properties": {
          "type": {
            "enum": [
              "raw"
            ]
          },
          "secret": {
            "description": "These credentials secret",
            "allOf": [
              {
                "$ref": "#/components/schemas/SecretString"
              }
            ]
          }
        },
        "required": [
          "name",
          "type",
          "secret"
        ]
      },
      "Credentials002": {
        "title": "CREDENTIALS-002",
        "description": "Invalid Credentials",
        "allOf": [
          {
            "$ref": "#/components/schemas/BasicError"
          }
        ],
        "properties": {
          "error": {
            "enum": [
              "CREDENTIALS-002"
            ]
          },
          "message": {
            "enum": [
              "Invalid Credentials"
            ]
          },
          "title": {
            "enum": [
              "Invalid Credentials"
            ]
          }
        },
        "required": [
          "error",
          "message",
          "title"
        ]
      },
      "Credentials003": {
        "title": "CREDENTIALS-003",
        "description": "Credentials not found",
        "allOf": [
          {
            "$ref": "#/components/schemas/BasicError"
          }
        ],
        "properties": {
          "error": {
            "enum": [
              "CREDENTIALS-003"
            ]
          },
          "message": {
            "enum": [
              "Credentials not found"
            ]
          },
          "title": {
            "enum": [
              "Credentials not found"
            ]
          }
        },
        "required": [
          "error",
          "message",
          "title"
        ]
      },
      "Credentials004": {
        "title": "CREDENTIALS-004",
        "description": "Credentials already exists",
        "allOf": [
          {
            "$ref": "#/components/schemas/BasicError"
          }
        ],
        "properties": {
          "error": {
            "enum": [
              "CREDENTIALS-004"
            ]
          },
          "message": {
            "enum": [
              "Credentials already exists"
            ]
          },
          "title": {
            "enum": [
              "Credentials already exists"
            ]
          }
        },
        "required": [
          "error",
          "message",
          "title"
        ]
      },
      "Credentials005": {
        "title": "CREDENTIALS-005",
        "description": "Referenced Credentials",
        "allOf": [
          {
            "$ref": "#/components/schemas/BasicError"
          }
        ],
        "properties": {
          "error": {
            "enum": [
              "CREDENTIALS-005"
            ]
          },
          "message": {
            "enum": [
              "Referenced Credentials"
            ]
          },
          "title": {
            "enum": [
              "Referenced Credentials"
            ]
          }
        },
        "required": [
          "error",
          "message",
          "title"
        ]
      },
      "TemplateStringPlaygroundRequest": {
        "properties": {
          "dictionary": {
            "nullable": true,
            "type": "object",
            "additionalProperties": {
              "type": "string"
            }
          },
          "computationRule": {
            "allOf": [
              {
                "$ref": "#/components/schemas/ComputationRule"
              }
            ],
            "nullable": true
          },
          "csr": {
            "type": "string",
            "nullable": true
          }
        }
      },
      "TemplateStringPlaygroundResponseResponse": {
        "properties": {
          "dictionary": {
            "nullable": true,
            "type": "object",
            "additionalProperties": {
              "type": "string"
            }
          },
          "computedValueSingle": {
            "type": "string",
            "nullable": true
          },
          "computedValueMulti": {
            "type": "array",
            "nullable": true,
            "items": {
              "type": "string"
            }
          }
        }
      },
      "Ts002": {
        "allOf": [
          {
            "$ref": "#/components/schemas/BasicError"
          }
        ],
        "description": "Malformed computation rule expression",
        "properties": {
          "error": {
            "enum": [
              "TS-002"
            ]
          },
          "message": {
            "enum": [
              "Malformed computation rule expression"
            ]
          },
          "title": {
            "enum": [
              "Malformed computation rule expression"
            ]
          }
        },
        "title": "TS-002",
        "required": [
          "error",
          "message",
          "title"
        ]
      },
      "Ts003": {
        "allOf": [
          {
            "$ref": "#/components/schemas/BasicError"
          }
        ],
        "description": "Invalid PKCS#10",
        "properties": {
          "error": {
            "enum": [
              "TS-003"
            ]
          },
          "message": {
            "enum": [
              "Invalid PKCS#10"
            ]
          },
          "title": {
            "enum": [
              "Invalid PKCS#10"
            ]
          }
        },
        "title": "TS-003",
        "required": [
          "error",
          "message",
          "title"
        ]
      },
      "Ts004": {
        "allOf": [
          {
            "$ref": "#/components/schemas/BasicError"
          }
        ],
        "description": "Invalid playground request",
        "properties": {
          "error": {
            "enum": [
              "TS-004"
            ]
          },
          "message": {
            "enum": [
              "Invalid playground request"
            ]
          },
          "title": {
            "enum": [
              "Invalid playground request"
            ]
          }
        },
        "title": "TS-004",
        "required": [
          "error",
          "message",
          "title"
        ]
      },
      "Ts001": {
        "allOf": [
          {
            "$ref": "#/components/schemas/BasicError"
          }
        ],
        "description": "Unexpected Error",
        "properties": {
          "error": {
            "enum": [
              "TS-001"
            ]
          },
          "message": {
            "enum": [
              "Unexpected Error"
            ]
          },
          "title": {
            "enum": [
              "Unexpected Error"
            ]
          }
        },
        "title": "TS-001",
        "required": [
          "error",
          "message",
          "title"
        ]
      },
      "AWSConnectorResponse": {
        "title": "AWS",
        "properties": {
          "_id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/Id"
              }
            ]
          },
          "type": {
            "type": "string",
            "enum": [
              "aws"
            ]
          },
          "name": {
            "type": "string"
          },
          "throttleDuration": {
            "type": "string",
            "format": "Finite Duration",
            "pattern": "^([0-9]+) *(ms|millisecond|milliseconds|s|second|seconds|m|minute|minutes|h|hour|hours|d|day|days)$",
            "example": "5 seconds"
          },
          "renewalPeriod": {
            "nullable": true,
            "type": "string",
            "format": "Finite Duration",
            "pattern": "^([0-9]+) *(ms|millisecond|milliseconds|s|second|seconds|m|minute|minutes|h|hour|hours|d|day|days)$",
            "example": "5 seconds"
          },
          "timeout": {
            "nullable": true,
            "type": "string",
            "format": "Finite Duration",
            "pattern": "^([0-9]+) *(ms|millisecond|milliseconds|s|second|seconds|m|minute|minutes|h|hour|hours|d|day|days)$",
            "example": "5 seconds"
          },
          "proxy": {
            "type": "string",
            "nullable": true
          },
          "region": {
            "type": "string"
          },
          "credentials": {
            "type": "string",
            "nullable": true,
            "example": "myPasswordCredentials",
            "description": "Name of the `password` [credentials](#tag/security.credentials) containing Access Key Id and Secret Access Key. If not defined, an account present in environment variables can be used."
          },
          "resourceGroupName": {
            "type": "string",
            "nullable": true
          },
          "roleArn": {
            "type": "string",
            "nullable": true
          },
          "tagKey": {
            "type": "string",
            "nullable": true
          },
          "tagValue": {
            "type": "string",
            "nullable": true
          }
        },
        "required": [
          "_id",
          "type",
          "name",
          "throttleDuration",
          "region"
        ]
      },
      "F5ClientConnectorResponse": {
        "title": "F5",
        "properties": {
          "_id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/Id"
              }
            ]
          },
          "type": {
            "type": "string",
            "enum": [
              "f5client"
            ]
          },
          "name": {
            "type": "string"
          },
          "throttleDuration": {
            "type": "string",
            "format": "Finite Duration",
            "pattern": "^([0-9]+) *(ms|millisecond|milliseconds|s|second|seconds|m|minute|minutes|h|hour|hours|d|day|days)$",
            "example": "5 seconds"
          },
          "throttleParallelism": {
            "type": "integer",
            "format": "int32"
          },
          "renewalPeriod": {
            "nullable": true,
            "type": "string",
            "format": "Finite Duration",
            "pattern": "^([0-9]+) *(ms|millisecond|milliseconds|s|second|seconds|m|minute|minutes|h|hour|hours|d|day|days)$",
            "example": "5 seconds"
          },
          "timeout": {
            "nullable": true,
            "type": "string",
            "format": "Finite Duration",
            "pattern": "^([0-9]+) *(ms|millisecond|milliseconds|s|second|seconds|m|minute|minutes|h|hour|hours|d|day|days)$",
            "example": "5 seconds"
          },
          "proxy": {
            "type": "string",
            "nullable": true
          },
          "maxStoredCertificatePerHolder": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "bigIPHostname": {
            "type": "string"
          },
          "credentials": {
            "example": "myF5Credentials",
            "description": "Name of the `password` [credentials](#tag/security.credentials) containing the account to authenticate on F5",
            "type": "string"
          },
          "partition": {
            "type": "string",
            "nullable": true
          },
          "sslParent": {
            "type": "string",
            "nullable": true
          },
          "prefix": {
            "type": "string",
            "nullable": true
          },
          "cipherGroup": {
            "type": "string",
            "nullable": true
          },
          "version": {
            "type": "string",
            "nullable": true
          },
          "tlsInsecure": {
            "type": "boolean",
            "nullable": true,
            "default": false,
            "description": "Allow invalid server certificates when establishing the TLS connection. Use in production is *not* recommended."
          }
        },
        "required": [
          "_id",
          "type",
          "name",
          "throttleDuration",
          "throttleParallelism",
          "bigIPHostname",
          "credentials"
        ]
      },
      "F5AS3ConnectorResponse": {
        "title": "F5 AS3",
        "properties": {
          "_id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/Id"
              }
            ]
          },
          "type": {
            "type": "string",
            "enum": [
              "f5as3"
            ]
          },
          "name": {
            "type": "string"
          },
          "throttleDuration": {
            "type": "string",
            "format": "Finite Duration",
            "pattern": "^([0-9]+) *(ms|millisecond|milliseconds|s|second|seconds|m|minute|minutes|h|hour|hours|d|day|days)$",
            "example": "5 seconds"
          },
          "throttleParallelism": {
            "type": "integer",
            "format": "int32"
          },
          "keyType": {
            "allOf": [
              {
                "$ref": "#/components/schemas/KeyType"
              }
            ],
            "nullable": true
          },
          "renewalPeriod": {
            "nullable": true,
            "type": "string",
            "format": "Finite Duration",
            "pattern": "^([0-9]+) *(ms|millisecond|milliseconds|s|second|seconds|m|minute|minutes|h|hour|hours|d|day|days)$",
            "example": "5 seconds"
          },
          "timeout": {
            "nullable": true,
            "type": "string",
            "format": "Finite Duration",
            "pattern": "^([0-9]+) *(ms|millisecond|milliseconds|s|second|seconds|m|minute|minutes|h|hour|hours|d|day|days)$",
            "example": "5 seconds"
          },
          "proxy": {
            "type": "string",
            "nullable": true
          },
          "hostname": {
            "type": "string"
          },
          "credentials": {
            "example": "myF5Credentials",
            "description": "Name of the `password` [credentials](#tag/security.credentials) containing the account to authenticate on F5",
            "type": "string"
          },
          "loginProvider": {
            "type": "string",
            "nullable": true
          },
          "tlsInsecure": {
            "type": "boolean",
            "nullable": true,
            "default": false,
            "description": "Allow invalid server certificates when establishing the TLS connection. Use in production is *not* recommended."
          },
          "withChain": {
            "type": "boolean",
            "nullable": true,
            "default": true,
            "description": "Enable the certificate trust chain to be pushed."
          }
        },
        "required": [
          "_id",
          "type",
          "name",
          "throttleDuration",
          "throttleParallelism",
          "hostname",
          "credentials"
        ]
      },
      "IntuneConnectorResponse": {
        "title": "Intune",
        "properties": {
          "_id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/Id"
              }
            ]
          },
          "type": {
            "type": "string",
            "enum": [
              "intune"
            ]
          },
          "name": {
            "type": "string"
          },
          "throttleDuration": {
            "type": "string",
            "format": "Finite Duration",
            "pattern": "^([0-9]+) *(ms|millisecond|milliseconds|s|second|seconds|m|minute|minutes|h|hour|hours|d|day|days)$",
            "example": "5 seconds"
          },
          "throttleParallelism": {
            "type": "integer",
            "format": "int32"
          },
          "timeout": {
            "nullable": true,
            "type": "string",
            "format": "Finite Duration",
            "pattern": "^([0-9]+) *(ms|millisecond|milliseconds|s|second|seconds|m|minute|minutes|h|hour|hours|d|day|days)$",
            "example": "5 seconds"
          },
          "proxy": {
            "type": "string",
            "nullable": true
          },
          "azureTenant": {
            "type": "string"
          },
          "credentials": {
            "example": "myIntuneCredentials",
            "description": "Name of the `password` [credentials](#tag/security.credentials) containing the App ID and Key to authenticate on Intune",
            "type": "string"
          },
          "intuneResourceUrl": {
            "type": "string",
            "nullable": true
          },
          "osQueryString": {
            "type": "string",
            "nullable": true
          },
          "legacyRevocationMode": {
            "type": "boolean"
          }
        },
        "required": [
          "_id",
          "type",
          "name",
          "throttleDuration",
          "throttleParallelism",
          "tenant",
          "credentials",
          "legacyRevocationMode"
        ]
      },
      "JamfConnectorResponse": {
        "title": "JAMF",
        "properties": {
          "_id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/Id"
              }
            ]
          },
          "type": {
            "type": "string",
            "enum": [
              "jamf"
            ]
          },
          "name": {
            "type": "string"
          },
          "throttleDuration": {
            "type": "string",
            "format": "Finite Duration",
            "pattern": "^([0-9]+) *(ms|millisecond|milliseconds|s|second|seconds|m|minute|minutes|h|hour|hours|d|day|days)$",
            "example": "5 seconds"
          },
          "throttleParallelism": {
            "type": "integer",
            "format": "int32"
          },
          "timeout": {
            "nullable": true,
            "type": "string",
            "format": "Finite Duration",
            "pattern": "^([0-9]+) *(ms|millisecond|milliseconds|s|second|seconds|m|minute|minutes|h|hour|hours|d|day|days)$",
            "example": "5 seconds"
          },
          "proxy": {
            "type": "string",
            "nullable": true
          },
          "endpoint": {
            "type": "string"
          },
          "credentials": {
            "example": "myJAMFCredentials",
            "description": "Name of the `password` [credentials](#tag/security.credentials) containing the account to authenticate on JAMF",
            "type": "string"
          }
        },
        "required": [
          "_id",
          "type",
          "name",
          "throttleDuration",
          "throttleParallelism",
          "endpoint",
          "credentials"
        ]
      },
      "MSADConnectorResponse": {
        "title": "Microsoft Active Directory",
        "properties": {
          "_id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/Id"
              }
            ]
          },
          "type": {
            "type": "string",
            "enum": [
              "msad"
            ]
          },
          "name": {
            "type": "string"
          },
          "throttleDuration": {
            "type": "string",
            "format": "Finite Duration",
            "pattern": "^([0-9]+) *(ms|millisecond|milliseconds|s|second|seconds|m|minute|minutes|h|hour|hours|d|day|days)$",
            "example": "5 seconds"
          },
          "throttleParallelism": {
            "type": "integer",
            "format": "int32"
          },
          "timeout": {
            "nullable": true,
            "type": "string",
            "format": "Finite Duration",
            "pattern": "^([0-9]+) *(ms|millisecond|milliseconds|s|second|seconds|m|minute|minutes|h|hour|hours|d|day|days)$",
            "example": "5 seconds"
          },
          "maxStoredCertificatePerHolder": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "proxy": {
            "type": "string",
            "nullable": true
          },
          "hostname": {
            "type": "string"
          },
          "port": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "credentials": {
            "example": "myMSADCredentials",
            "description": "Name of the `password` [credentials](#tag/security.credentials) containing the DN and password to authenticate on Active Directory",
            "type": "string"
          },
          "baseDn": {
            "type": "string"
          },
          "filter": {
            "type": "string",
            "nullable": true
          },
          "tlsInsecure": {
            "type": "boolean",
            "nullable": true,
            "default": false,
            "description": "Allow invalid server certificates when establishing the TLS connection. Use in production is *not* recommended."
          }
        },
        "required": [
          "_id",
          "type",
          "name",
          "throttleDuration",
          "throttleParallelism",
          "hostname",
          "credentials",
          "baseDn"
        ]
      },
      "IntunePKCSConnectorResponse": {
        "title": "Intune PKCS",
        "properties": {
          "_id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/Id"
              }
            ]
          },
          "type": {
            "type": "string",
            "enum": [
              "intunepkcs"
            ]
          },
          "name": {
            "type": "string"
          },
          "throttleDuration": {
            "type": "string",
            "format": "Finite Duration",
            "pattern": "^([0-9]+) *(ms|millisecond|milliseconds|s|second|seconds|m|minute|minutes|h|hour|hours|d|day|days)$",
            "example": "5 seconds"
          },
          "throttleParallelism": {
            "type": "integer",
            "format": "int32"
          },
          "renewalPeriod": {
            "nullable": true,
            "type": "string",
            "format": "Finite Duration",
            "pattern": "^([0-9]+) *(ms|millisecond|milliseconds|s|second|seconds|m|minute|minutes|h|hour|hours|d|day|days)$",
            "example": "5 seconds"
          },
          "timeout": {
            "nullable": true,
            "type": "string",
            "format": "Finite Duration",
            "pattern": "^([0-9]+) *(ms|millisecond|milliseconds|s|second|seconds|m|minute|minutes|h|hour|hours|d|day|days)$",
            "example": "5 seconds"
          },
          "maxStoredCertificatePerHolder": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "proxy": {
            "type": "string",
            "nullable": true
          },
          "azureTenant": {
            "type": "string"
          },
          "credentials": {
            "example": "myIntunePKCSCredentials",
            "description": "Name of the `password` [credentials](#tag/security.credentials) containing the App ID and Key to authenticate on Intune PKCS",
            "type": "string"
          },
          "pubKey": {
            "type": "string"
          },
          "keyName": {
            "type": "string"
          },
          "providerName": {
            "type": "string",
            "nullable": true
          },
          "intendedPurpose": {
            "type": "string",
            "nullable": true
          },
          "searchFilter": {
            "type": "string",
            "nullable": true
          }
        },
        "required": [
          "_id",
          "type",
          "name",
          "throttleDuration",
          "throttleParallelism",
          "tenant",
          "credentials",
          "pubKey",
          "keyName"
        ]
      },
      "AzureKeyVaultConnectorResponse": {
        "title": "Azure Key Vault",
        "properties": {
          "_id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/Id"
              }
            ]
          },
          "type": {
            "type": "string",
            "enum": [
              "akv"
            ]
          },
          "name": {
            "type": "string"
          },
          "throttleDuration": {
            "type": "string",
            "format": "Finite Duration",
            "pattern": "^([0-9]+) *(ms|millisecond|milliseconds|s|second|seconds|m|minute|minutes|h|hour|hours|d|day|days)$",
            "example": "5 seconds"
          },
          "throttleParallelism": {
            "type": "integer",
            "format": "int32"
          },
          "renewalPeriod": {
            "nullable": true,
            "type": "string",
            "format": "Finite Duration",
            "pattern": "^([0-9]+) *(ms|millisecond|milliseconds|s|second|seconds|m|minute|minutes|h|hour|hours|d|day|days)$",
            "example": "5 seconds"
          },
          "timeout": {
            "nullable": true,
            "type": "string",
            "format": "Finite Duration",
            "pattern": "^([0-9]+) *(ms|millisecond|milliseconds|s|second|seconds|m|minute|minutes|h|hour|hours|d|day|days)$",
            "example": "5 seconds"
          },
          "proxy": {
            "type": "string",
            "nullable": true
          },
          "azureTenant": {
            "type": "string"
          },
          "credentials": {
            "example": "myAKVCredentials",
            "description": "Name of the `password` [credentials](#tag/security.credentials) containing the App ID and Key to authenticate on AKV",
            "type": "string"
          },
          "vaultBaseUrl": {
            "type": "string"
          },
          "prefix": {
            "type": "string",
            "nullable": true
          }
        },
        "required": [
          "_id",
          "type",
          "name",
          "throttleDuration",
          "throttleParallelism",
          "tenant",
          "credentials",
          "vaultBaseUrl"
        ]
      },
      "GCMConnectorResponse": {
        "title": "GCM",
        "properties": {
          "_id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/Id"
              }
            ]
          },
          "type": {
            "type": "string",
            "enum": [
              "gcm"
            ]
          },
          "name": {
            "type": "string"
          },
          "throttleDuration": {
            "type": "string",
            "format": "Finite Duration",
            "pattern": "^([0-9]+) *(ms|millisecond|milliseconds|s|second|seconds|m|minute|minutes|h|hour|hours|d|day|days)$",
            "example": "5 seconds"
          },
          "renewalPeriod": {
            "nullable": true,
            "type": "string",
            "format": "Finite Duration",
            "pattern": "^([0-9]+) *(ms|millisecond|milliseconds|s|second|seconds|m|minute|minutes|h|hour|hours|d|day|days)$",
            "example": "5 seconds"
          },
          "timeout": {
            "nullable": true,
            "type": "string",
            "format": "Finite Duration",
            "pattern": "^([0-9]+) *(ms|millisecond|milliseconds|s|second|seconds|m|minute|minutes|h|hour|hours|d|day|days)$",
            "example": "5 seconds"
          },
          "proxy": {
            "type": "string",
            "nullable": true
          },
          "project": {
            "type": "string"
          },
          "location": {
            "type": "string"
          },
          "credentials": {
            "type": "string",
            "example": "myRawCredentials",
            "description": "Name of the `raw` [credentials](#tag/security.credentials) containing User Account credentials."
          },
          "tagKey": {
            "type": "string",
            "nullable": true
          },
          "tagValue": {
            "type": "string",
            "nullable": true
          }
        },
        "required": [
          "_id",
          "type",
          "name",
          "throttleDuration",
          "project",
          "location",
          "credentials"
        ]
      },
      "LDAPConnectorResponse": {
        "title": "LDAP",
        "properties": {
          "_id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/Id"
              }
            ]
          },
          "type": {
            "type": "string",
            "enum": [
              "ldappub"
            ]
          },
          "name": {
            "type": "string"
          },
          "hostname": {
            "type": "string"
          },
          "port": {
            "type": "integer",
            "nullable": true
          },
          "baseDn": {
            "type": "string"
          },
          "filter": {
            "type": "string",
            "nullable": true
          },
          "certAttr": {
            "type": "string",
            "nullable": true
          },
          "followReferrals": {
            "type": "boolean",
            "nullable": true
          },
          "userIdentifierAttribute": {
            "type": "string",
            "enum": [
              "CN",
              "MAIL",
              "UID"
            ]
          },
          "certificateAttribute": {
            "type": "string",
            "enum": [
              "CN",
              "UID",
              "SERIALNUMBER",
              "SURNAME",
              "GIVENNAME",
              "T",
              "UNSTRUCTUREDADDRESS",
              "UNSTRUCTUREDNAME",
              "E",
              "OU",
              "ORGANIZATIONIDENTIFIER",
              "PSEUDONYM",
              "UNIQUEIDENTIFIER",
              "STREET",
              "ST",
              "L",
              "O",
              "C",
              "DESCRIPTION",
              "DC",
              "RFC822NAME",
              "DNSNAME",
              "URI",
              "IPADDRESS",
              "OTHERNAME_UPN",
              "OTHERNAME_GUID",
              "REGISTERED_ID"
            ]
          },
          "throttleDuration": {
            "type": "string",
            "format": "Finite Duration",
            "pattern": "^([0-9]+) *(ms|millisecond|milliseconds|s|second|seconds|m|minute|minutes|h|hour|hours|d|day|days)$",
            "example": "5 seconds"
          },
          "throttleParallelism": {
            "type": "integer",
            "format": "int32"
          },
          "timeout": {
            "nullable": true,
            "type": "string",
            "format": "Finite Duration",
            "pattern": "^([0-9]+) *(ms|millisecond|milliseconds|s|second|seconds|m|minute|minutes|h|hour|hours|d|day|days)$",
            "example": "5 seconds"
          },
          "proxy": {
            "type": "string",
            "nullable": true
          },
          "credentials": {
            "type": "string",
            "example": "myPasswordCredentials",
            "description": "Name of the `password` [credentials](#tag/security.credentials) containing login DN and password."
          },
          "maxStoredCertificatePerHolder": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "tlsInsecure": {
            "type": "boolean",
            "nullable": true,
            "default": false,
            "description": "Allow invalid server certificates when establishing the TLS connection. Use in production is *not* recommended."
          }
        },
        "required": [
          "_id",
          "type",
          "name",
          "throttleDuration",
          "hostname",
          "baseDn",
          "credentials",
          "userIdentifierAttribute",
          "certificateAttribute"
        ]
      },
      "ThirdpartyConnector001": {
        "allOf": [
          {
            "$ref": "#/components/schemas/BasicError"
          }
        ],
        "description": "Unexpected Error",
        "properties": {
          "error": {
            "enum": [
              "THIRDPARTY-CONNECTOR-001"
            ]
          },
          "message": {
            "enum": [
              "Unexpected Error"
            ]
          },
          "title": {
            "enum": [
              "Unexpected Error"
            ]
          }
        },
        "title": "THIRDPARTY-CONNECTOR-001",
        "required": [
          "error",
          "message",
          "title"
        ]
      },
      "AWSConnector": {
        "title": "AWS",
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "aws"
            ]
          },
          "name": {
            "type": "string"
          },
          "throttleDuration": {
            "type": "string",
            "format": "Finite Duration",
            "pattern": "^([0-9]+) *(ms|millisecond|milliseconds|s|second|seconds|m|minute|minutes|h|hour|hours|d|day|days)$",
            "example": "5 seconds"
          },
          "renewalPeriod": {
            "nullable": true,
            "type": "string",
            "format": "Finite Duration",
            "pattern": "^([0-9]+) *(ms|millisecond|milliseconds|s|second|seconds|m|minute|minutes|h|hour|hours|d|day|days)$",
            "example": "5 seconds"
          },
          "timeout": {
            "nullable": true,
            "type": "string",
            "format": "Finite Duration",
            "pattern": "^([0-9]+) *(ms|millisecond|milliseconds|s|second|seconds|m|minute|minutes|h|hour|hours|d|day|days)$",
            "example": "5 seconds"
          },
          "proxy": {
            "type": "string",
            "nullable": true
          },
          "region": {
            "type": "string"
          },
          "credentials": {
            "type": "string",
            "nullable": true,
            "example": "myPasswordCredentials",
            "description": "Name of the `password` [credentials](#tag/security.credentials) containing Access Key Id and Secret Access Key. If not defined, an account present in environment variables can be used."
          },
          "resourceGroupName": {
            "type": "string",
            "nullable": true
          },
          "roleArn": {
            "type": "string",
            "nullable": true
          },
          "tagKey": {
            "type": "string",
            "nullable": true
          },
          "tagValue": {
            "type": "string",
            "nullable": true
          }
        },
        "required": [
          "type",
          "name",
          "throttleDuration",
          "region"
        ]
      },
      "AzureKeyVaultConnector": {
        "title": "Azure Key Vault",
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "akv"
            ]
          },
          "name": {
            "type": "string"
          },
          "throttleDuration": {
            "type": "string",
            "format": "Finite Duration",
            "pattern": "^([0-9]+) *(ms|millisecond|milliseconds|s|second|seconds|m|minute|minutes|h|hour|hours|d|day|days)$",
            "example": "5 seconds"
          },
          "throttleParallelism": {
            "type": "integer",
            "format": "int32"
          },
          "renewalPeriod": {
            "nullable": true,
            "type": "string",
            "format": "Finite Duration",
            "pattern": "^([0-9]+) *(ms|millisecond|milliseconds|s|second|seconds|m|minute|minutes|h|hour|hours|d|day|days)$",
            "example": "5 seconds"
          },
          "timeout": {
            "nullable": true,
            "type": "string",
            "format": "Finite Duration",
            "pattern": "^([0-9]+) *(ms|millisecond|milliseconds|s|second|seconds|m|minute|minutes|h|hour|hours|d|day|days)$",
            "example": "5 seconds"
          },
          "proxy": {
            "type": "string",
            "nullable": true
          },
          "azureTenant": {
            "type": "string"
          },
          "credentials": {
            "example": "myAKVCredentials",
            "description": "Name of the `password` [credentials](#tag/security.credentials) containing the App ID and Key to authenticate on AKV",
            "type": "string"
          },
          "vaultBaseUrl": {
            "type": "string"
          },
          "prefix": {
            "type": "string",
            "nullable": true
          }
        },
        "required": [
          "type",
          "name",
          "throttleDuration",
          "throttleParallelism",
          "tenant",
          "credentials",
          "vaultBaseUrl"
        ]
      },
      "F5AS3Connector": {
        "title": "F5 AS3",
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "f5as3"
            ]
          },
          "name": {
            "type": "string"
          },
          "throttleDuration": {
            "type": "string",
            "format": "Finite Duration",
            "pattern": "^([0-9]+) *(ms|millisecond|milliseconds|s|second|seconds|m|minute|minutes|h|hour|hours|d|day|days)$",
            "example": "5 seconds"
          },
          "throttleParallelism": {
            "type": "integer",
            "format": "int32"
          },
          "keyType": {
            "allOf": [
              {
                "$ref": "#/components/schemas/KeyType"
              }
            ],
            "nullable": true
          },
          "renewalPeriod": {
            "nullable": true,
            "type": "string",
            "format": "Finite Duration",
            "pattern": "^([0-9]+) *(ms|millisecond|milliseconds|s|second|seconds|m|minute|minutes|h|hour|hours|d|day|days)$",
            "example": "5 seconds"
          },
          "timeout": {
            "nullable": true,
            "type": "string",
            "format": "Finite Duration",
            "pattern": "^([0-9]+) *(ms|millisecond|milliseconds|s|second|seconds|m|minute|minutes|h|hour|hours|d|day|days)$",
            "example": "5 seconds"
          },
          "proxy": {
            "type": "string",
            "nullable": true
          },
          "hostname": {
            "type": "string"
          },
          "credentials": {
            "example": "myF5Credentials",
            "description": "Name of the `password` [credentials](#tag/security.credentials) containing the account to authenticate on F5",
            "type": "string"
          },
          "loginProvider": {
            "type": "string",
            "nullable": true
          },
          "tlsInsecure": {
            "type": "boolean",
            "nullable": true,
            "default": false,
            "description": "Allow invalid server certificates when establishing the TLS connection. Use in production is *not* recommended."
          },
          "withChain": {
            "type": "boolean",
            "nullable": true,
            "default": true,
            "description": "Enable the certificate trust chain to be pushed."
          }
        },
        "required": [
          "type",
          "name",
          "throttleDuration",
          "throttleParallelism",
          "hostname",
          "credentials"
        ]
      },
      "F5ClientConnector": {
        "title": "F5",
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "f5client"
            ]
          },
          "name": {
            "type": "string"
          },
          "throttleDuration": {
            "type": "string",
            "format": "Finite Duration",
            "pattern": "^([0-9]+) *(ms|millisecond|milliseconds|s|second|seconds|m|minute|minutes|h|hour|hours|d|day|days)$",
            "example": "5 seconds"
          },
          "throttleParallelism": {
            "type": "integer",
            "format": "int32"
          },
          "renewalPeriod": {
            "nullable": true,
            "type": "string",
            "format": "Finite Duration",
            "pattern": "^([0-9]+) *(ms|millisecond|milliseconds|s|second|seconds|m|minute|minutes|h|hour|hours|d|day|days)$",
            "example": "5 seconds"
          },
          "timeout": {
            "nullable": true,
            "type": "string",
            "format": "Finite Duration",
            "pattern": "^([0-9]+) *(ms|millisecond|milliseconds|s|second|seconds|m|minute|minutes|h|hour|hours|d|day|days)$",
            "example": "5 seconds"
          },
          "proxy": {
            "type": "string",
            "nullable": true
          },
          "maxStoredCertificatePerHolder": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "bigIPHostname": {
            "type": "string"
          },
          "credentials": {
            "example": "myF5Credentials",
            "description": "Name of the `password` [credentials](#tag/security.credentials) containing the account to authenticate on F5",
            "type": "string"
          },
          "partition": {
            "type": "string",
            "nullable": true
          },
          "sslParent": {
            "type": "string",
            "nullable": true
          },
          "prefix": {
            "type": "string",
            "nullable": true
          },
          "cipherGroup": {
            "type": "string",
            "nullable": true
          },
          "version": {
            "type": "string",
            "nullable": true
          },
          "tlsInsecure": {
            "type": "boolean",
            "nullable": true,
            "default": false,
            "description": "Allow invalid server certificates when establishing the TLS connection. Use in production is *not* recommended."
          }
        },
        "required": [
          "type",
          "name",
          "throttleDuration",
          "throttleParallelism",
          "bigIPHostname",
          "credentials"
        ]
      },
      "GCMConnector": {
        "title": "GCM",
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "gcm"
            ]
          },
          "name": {
            "type": "string"
          },
          "throttleDuration": {
            "type": "string",
            "format": "Finite Duration",
            "pattern": "^([0-9]+) *(ms|millisecond|milliseconds|s|second|seconds|m|minute|minutes|h|hour|hours|d|day|days)$",
            "example": "5 seconds"
          },
          "renewalPeriod": {
            "nullable": true,
            "type": "string",
            "format": "Finite Duration",
            "pattern": "^([0-9]+) *(ms|millisecond|milliseconds|s|second|seconds|m|minute|minutes|h|hour|hours|d|day|days)$",
            "example": "5 seconds"
          },
          "timeout": {
            "nullable": true,
            "type": "string",
            "format": "Finite Duration",
            "pattern": "^([0-9]+) *(ms|millisecond|milliseconds|s|second|seconds|m|minute|minutes|h|hour|hours|d|day|days)$",
            "example": "5 seconds"
          },
          "proxy": {
            "type": "string",
            "nullable": true
          },
          "project": {
            "type": "string"
          },
          "location": {
            "type": "string"
          },
          "credentials": {
            "type": "string",
            "example": "myRawCredentials",
            "description": "Name of the `raw` [credentials](#tag/security.credentials) containing User Account credentials."
          },
          "tagKey": {
            "type": "string",
            "nullable": true
          },
          "tagValue": {
            "type": "string",
            "nullable": true
          }
        },
        "required": [
          "type",
          "name",
          "throttleDuration",
          "project",
          "location",
          "credentials"
        ]
      },
      "IntuneConnector": {
        "title": "Intune",
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "intune"
            ]
          },
          "name": {
            "type": "string"
          },
          "throttleDuration": {
            "type": "string",
            "format": "Finite Duration",
            "pattern": "^([0-9]+) *(ms|millisecond|milliseconds|s|second|seconds|m|minute|minutes|h|hour|hours|d|day|days)$",
            "example": "5 seconds"
          },
          "throttleParallelism": {
            "type": "integer",
            "format": "int32"
          },
          "timeout": {
            "nullable": true,
            "type": "string",
            "format": "Finite Duration",
            "pattern": "^([0-9]+) *(ms|millisecond|milliseconds|s|second|seconds|m|minute|minutes|h|hour|hours|d|day|days)$",
            "example": "5 seconds"
          },
          "proxy": {
            "type": "string",
            "nullable": true
          },
          "azureTenant": {
            "type": "string"
          },
          "credentials": {
            "example": "myIntuneCredentials",
            "description": "Name of the `password` [credentials](#tag/security.credentials) containing the App ID and Key to authenticate on Intune",
            "type": "string"
          },
          "intuneResourceUrl": {
            "type": "string",
            "nullable": true
          },
          "osQueryString": {
            "type": "string",
            "nullable": true
          },
          "legacyRevocationMode": {
            "type": "boolean"
          }
        },
        "required": [
          "type",
          "name",
          "throttleDuration",
          "throttleParallelism",
          "tenant",
          "credentials",
          "legacyRevocationMode"
        ]
      },
      "IntunePKCSConnector": {
        "title": "Intune PKCS",
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "intunepkcs"
            ]
          },
          "name": {
            "type": "string"
          },
          "throttleDuration": {
            "type": "string",
            "format": "Finite Duration",
            "pattern": "^([0-9]+) *(ms|millisecond|milliseconds|s|second|seconds|m|minute|minutes|h|hour|hours|d|day|days)$",
            "example": "5 seconds"
          },
          "throttleParallelism": {
            "type": "integer",
            "format": "int32"
          },
          "renewalPeriod": {
            "nullable": true,
            "type": "string",
            "format": "Finite Duration",
            "pattern": "^([0-9]+) *(ms|millisecond|milliseconds|s|second|seconds|m|minute|minutes|h|hour|hours|d|day|days)$",
            "example": "5 seconds"
          },
          "timeout": {
            "nullable": true,
            "type": "string",
            "format": "Finite Duration",
            "pattern": "^([0-9]+) *(ms|millisecond|milliseconds|s|second|seconds|m|minute|minutes|h|hour|hours|d|day|days)$",
            "example": "5 seconds"
          },
          "maxStoredCertificatePerHolder": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "proxy": {
            "type": "string",
            "nullable": true
          },
          "azureTenant": {
            "type": "string"
          },
          "credentials": {
            "example": "myIntunePKCSCredentials",
            "description": "Name of the `password` [credentials](#tag/security.credentials) containing the App ID and Key to authenticate on Intune PKCS",
            "type": "string"
          },
          "pubKey": {
            "type": "string"
          },
          "keyName": {
            "type": "string"
          },
          "providerName": {
            "type": "string",
            "nullable": true
          },
          "intendedPurpose": {
            "type": "string",
            "nullable": true
          },
          "searchFilter": {
            "type": "string",
            "nullable": true
          }
        },
        "required": [
          "type",
          "name",
          "throttleDuration",
          "throttleParallelism",
          "tenant",
          "credentials",
          "pubKey",
          "keyName"
        ]
      },
      "JamfConnector": {
        "title": "JAMF",
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "jamf"
            ]
          },
          "name": {
            "type": "string"
          },
          "throttleDuration": {
            "type": "string",
            "format": "Finite Duration",
            "pattern": "^([0-9]+) *(ms|millisecond|milliseconds|s|second|seconds|m|minute|minutes|h|hour|hours|d|day|days)$",
            "example": "5 seconds"
          },
          "throttleParallelism": {
            "type": "integer",
            "format": "int32"
          },
          "timeout": {
            "nullable": true,
            "type": "string",
            "format": "Finite Duration",
            "pattern": "^([0-9]+) *(ms|millisecond|milliseconds|s|second|seconds|m|minute|minutes|h|hour|hours|d|day|days)$",
            "example": "5 seconds"
          },
          "proxy": {
            "type": "string",
            "nullable": true
          },
          "endpoint": {
            "type": "string"
          },
          "credentials": {
            "example": "myJAMFCredentials",
            "description": "Name of the `password` [credentials](#tag/security.credentials) containing the account to authenticate on JAMF",
            "type": "string"
          }
        },
        "required": [
          "type",
          "name",
          "throttleDuration",
          "throttleParallelism",
          "endpoint",
          "credentials"
        ]
      },
      "LDAPConnector": {
        "title": "LDAP",
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "ldappub"
            ]
          },
          "name": {
            "type": "string"
          },
          "hostname": {
            "type": "string"
          },
          "port": {
            "type": "integer",
            "nullable": true
          },
          "baseDn": {
            "type": "string"
          },
          "filter": {
            "type": "string",
            "nullable": true
          },
          "certAttr": {
            "type": "string",
            "nullable": true
          },
          "followReferrals": {
            "type": "boolean",
            "nullable": true
          },
          "userIdentifierAttribute": {
            "type": "string",
            "enum": [
              "CN",
              "MAIL",
              "UID"
            ]
          },
          "certificateAttribute": {
            "type": "string",
            "enum": [
              "CN",
              "UID",
              "SERIALNUMBER",
              "SURNAME",
              "GIVENNAME",
              "T",
              "UNSTRUCTUREDADDRESS",
              "UNSTRUCTUREDNAME",
              "E",
              "OU",
              "ORGANIZATIONIDENTIFIER",
              "PSEUDONYM",
              "UNIQUEIDENTIFIER",
              "STREET",
              "ST",
              "L",
              "O",
              "C",
              "DESCRIPTION",
              "DC",
              "RFC822NAME",
              "DNSNAME",
              "URI",
              "IPADDRESS",
              "OTHERNAME_UPN",
              "OTHERNAME_GUID",
              "REGISTERED_ID"
            ]
          },
          "throttleDuration": {
            "type": "string",
            "format": "Finite Duration",
            "pattern": "^([0-9]+) *(ms|millisecond|milliseconds|s|second|seconds|m|minute|minutes|h|hour|hours|d|day|days)$",
            "example": "5 seconds"
          },
          "throttleParallelism": {
            "type": "integer",
            "format": "int32"
          },
          "timeout": {
            "nullable": true,
            "type": "string",
            "format": "Finite Duration",
            "pattern": "^([0-9]+) *(ms|millisecond|milliseconds|s|second|seconds|m|minute|minutes|h|hour|hours|d|day|days)$",
            "example": "5 seconds"
          },
          "proxy": {
            "type": "string",
            "nullable": true
          },
          "credentials": {
            "type": "string",
            "example": "myPasswordCredentials",
            "description": "Name of the `password` [credentials](#tag/security.credentials) containing login DN and password."
          },
          "maxStoredCertificatePerHolder": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "tlsInsecure": {
            "type": "boolean",
            "nullable": true,
            "default": false,
            "description": "Allow invalid server certificates when establishing the TLS connection. Use in production is *not* recommended."
          }
        },
        "required": [
          "type",
          "name",
          "throttleDuration",
          "hostname",
          "baseDn",
          "credentials",
          "userIdentifierAttribute",
          "certificateAttribute"
        ]
      },
      "MSADConnector": {
        "title": "Microsoft Active Directory",
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "msad"
            ]
          },
          "name": {
            "type": "string"
          },
          "throttleDuration": {
            "type": "string",
            "format": "Finite Duration",
            "pattern": "^([0-9]+) *(ms|millisecond|milliseconds|s|second|seconds|m|minute|minutes|h|hour|hours|d|day|days)$",
            "example": "5 seconds"
          },
          "throttleParallelism": {
            "type": "integer",
            "format": "int32"
          },
          "timeout": {
            "nullable": true,
            "type": "string",
            "format": "Finite Duration",
            "pattern": "^([0-9]+) *(ms|millisecond|milliseconds|s|second|seconds|m|minute|minutes|h|hour|hours|d|day|days)$",
            "example": "5 seconds"
          },
          "maxStoredCertificatePerHolder": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "proxy": {
            "type": "string",
            "nullable": true
          },
          "hostname": {
            "type": "string"
          },
          "port": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "credentials": {
            "example": "myMSADCredentials",
            "description": "Name of the `password` [credentials](#tag/security.credentials) containing the DN and password to authenticate on Active Directory",
            "type": "string"
          },
          "baseDn": {
            "type": "string"
          },
          "filter": {
            "type": "string",
            "nullable": true
          },
          "tlsInsecure": {
            "type": "boolean",
            "nullable": true,
            "default": false,
            "description": "Allow invalid server certificates when establishing the TLS connection. Use in production is *not* recommended."
          }
        },
        "required": [
          "type",
          "name",
          "throttleDuration",
          "throttleParallelism",
          "hostname",
          "credentials",
          "baseDn"
        ]
      },
      "NetscalerConnector": {
        "title": "Netscaler",
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "netscaler"
            ]
          },
          "name": {
            "type": "string"
          },
          "throttleDuration": {
            "type": "string",
            "format": "Finite Duration",
            "pattern": "^([0-9]+) *(ms|millisecond|milliseconds|s|second|seconds|m|minute|minutes|h|hour|hours|d|day|days)$",
            "example": "5 seconds"
          },
          "throttleParallelism": {
            "type": "integer",
            "format": "int32"
          },
          "renewalPeriod": {
            "nullable": true,
            "type": "string",
            "format": "Finite Duration",
            "pattern": "^([0-9]+) *(ms|millisecond|milliseconds|s|second|seconds|m|minute|minutes|h|hour|hours|d|day|days)$",
            "example": "5 seconds"
          },
          "timeout": {
            "nullable": true,
            "type": "string",
            "format": "Finite Duration",
            "pattern": "^([0-9]+) *(ms|millisecond|milliseconds|s|second|seconds|m|minute|minutes|h|hour|hours|d|day|days)$",
            "example": "5 seconds"
          },
          "proxy": {
            "type": "string",
            "nullable": true
          },
          "maxStoredCertificatePerHolder": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "hostname": {
            "type": "string"
          },
          "credentials": {
            "example": "myNetscalerCredentials",
            "description": "Name of the `password` [credentials](#tag/security.credentials) containing the account to authenticate on Netscaler",
            "type": "string"
          },
          "prefix": {
            "type": "string",
            "nullable": true
          },
          "certificateStorePath": {
            "type": "string"
          },
          "tlsInsecure": {
            "type": "boolean",
            "nullable": true,
            "default": false,
            "description": "Allow invalid server certificates when establishing the TLS connection. Use in production is *not* recommended."
          }
        },
        "required": [
          "type",
          "name",
          "throttleDuration",
          "throttleParallelism",
          "hostname",
          "credentials",
          "certificateStorePath"
        ]
      },
      "ThirdPartyConnectors": {
        "oneOf": [
          {
            "$ref": "#/components/schemas/AWSConnector"
          },
          {
            "$ref": "#/components/schemas/AzureKeyVaultConnector"
          },
          {
            "$ref": "#/components/schemas/F5AS3Connector"
          },
          {
            "$ref": "#/components/schemas/F5ClientConnector"
          },
          {
            "$ref": "#/components/schemas/GCMConnector"
          },
          {
            "$ref": "#/components/schemas/IntuneConnector"
          },
          {
            "$ref": "#/components/schemas/IntunePKCSConnector"
          },
          {
            "$ref": "#/components/schemas/JamfConnector"
          },
          {
            "$ref": "#/components/schemas/LDAPConnector"
          },
          {
            "$ref": "#/components/schemas/MSADConnector"
          },
          {
            "$ref": "#/components/schemas/NetscalerConnector"
          }
        ]
      },
      "NetscalerConnectorResponse": {
        "title": "Netscaler",
        "properties": {
          "_id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/Id"
              }
            ]
          },
          "type": {
            "type": "string",
            "enum": [
              "netscaler"
            ]
          },
          "name": {
            "type": "string"
          },
          "throttleDuration": {
            "type": "string",
            "format": "Finite Duration",
            "pattern": "^([0-9]+) *(ms|millisecond|milliseconds|s|second|seconds|m|minute|minutes|h|hour|hours|d|day|days)$",
            "example": "5 seconds"
          },
          "throttleParallelism": {
            "type": "integer",
            "format": "int32"
          },
          "renewalPeriod": {
            "nullable": true,
            "type": "string",
            "format": "Finite Duration",
            "pattern": "^([0-9]+) *(ms|millisecond|milliseconds|s|second|seconds|m|minute|minutes|h|hour|hours|d|day|days)$",
            "example": "5 seconds"
          },
          "timeout": {
            "nullable": true,
            "type": "string",
            "format": "Finite Duration",
            "pattern": "^([0-9]+) *(ms|millisecond|milliseconds|s|second|seconds|m|minute|minutes|h|hour|hours|d|day|days)$",
            "example": "5 seconds"
          },
          "proxy": {
            "type": "string",
            "nullable": true
          },
          "maxStoredCertificatePerHolder": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "hostname": {
            "type": "string"
          },
          "credentials": {
            "example": "myNetscalerCredentials",
            "description": "Name of the `password` [credentials](#tag/security.credentials) containing the account to authenticate on Netscaler",
            "type": "string"
          },
          "prefix": {
            "type": "string",
            "nullable": true
          },
          "certificateStorePath": {
            "type": "string"
          },
          "tlsInsecure": {
            "type": "boolean",
            "nullable": true,
            "default": false,
            "description": "Allow invalid server certificates when establishing the TLS connection. Use in production is *not* recommended."
          }
        },
        "required": [
          "_id",
          "type",
          "name",
          "throttleDuration",
          "throttleParallelism",
          "hostname",
          "credentials",
          "certificateStorePath"
        ]
      },
      "ThirdPartyConnectorResponses": {
        "oneOf": [
          {
            "$ref": "#/components/schemas/AWSConnectorResponse"
          },
          {
            "$ref": "#/components/schemas/AzureKeyVaultConnectorResponse"
          },
          {
            "$ref": "#/components/schemas/F5AS3ConnectorResponse"
          },
          {
            "$ref": "#/components/schemas/F5ClientConnectorResponse"
          },
          {
            "$ref": "#/components/schemas/GCMConnectorResponse"
          },
          {
            "$ref": "#/components/schemas/IntuneConnectorResponse"
          },
          {
            "$ref": "#/components/schemas/IntunePKCSConnectorResponse"
          },
          {
            "$ref": "#/components/schemas/JamfConnectorResponse"
          },
          {
            "$ref": "#/components/schemas/LDAPConnectorResponse"
          },
          {
            "$ref": "#/components/schemas/MSADConnectorResponse"
          },
          {
            "$ref": "#/components/schemas/NetscalerConnectorResponse"
          }
        ]
      },
      "ThirdpartyConnector002": {
        "allOf": [
          {
            "$ref": "#/components/schemas/BasicError"
          }
        ],
        "description": "Invalid third party Connector",
        "properties": {
          "error": {
            "enum": [
              "THIRDPARTY-CONNECTOR-002"
            ]
          },
          "message": {
            "enum": [
              "Invalid third party Connector"
            ]
          },
          "title": {
            "enum": [
              "Invalid third party Connector"
            ]
          }
        },
        "title": "THIRDPARTY-CONNECTOR-002",
        "required": [
          "error",
          "message",
          "title"
        ]
      },
      "ThirdpartyConnector003": {
        "allOf": [
          {
            "$ref": "#/components/schemas/BasicError"
          }
        ],
        "description": "Third party Connector not found",
        "properties": {
          "error": {
            "enum": [
              "THIRDPARTY-CONNECTOR-003"
            ]
          },
          "message": {
            "enum": [
              "Third party Connector not found"
            ]
          },
          "title": {
            "enum": [
              "Third party Connector not found"
            ]
          }
        },
        "title": "THIRDPARTY-CONNECTOR-003",
        "required": [
          "error",
          "message",
          "title"
        ]
      },
      "ThirdpartyConnector004": {
        "allOf": [
          {
            "$ref": "#/components/schemas/BasicError"
          }
        ],
        "description": "Third party Connector already exists",
        "properties": {
          "error": {
            "enum": [
              "THIRDPARTY-CONNECTOR-004"
            ]
          },
          "message": {
            "enum": [
              "Third party Connector already exists"
            ]
          },
          "title": {
            "enum": [
              "Third party Connector already exists"
            ]
          }
        },
        "title": "THIRDPARTY-CONNECTOR-004",
        "required": [
          "error",
          "message",
          "title"
        ]
      },
      "ThirdpartyConnector005": {
        "allOf": [
          {
            "$ref": "#/components/schemas/BasicError"
          }
        ],
        "description": "Referenced third party Connector",
        "properties": {
          "error": {
            "enum": [
              "THIRDPARTY-CONNECTOR-005"
            ]
          },
          "message": {
            "enum": [
              "Referenced third party Connector"
            ]
          },
          "title": {
            "enum": [
              "Referenced third party Connector"
            ]
          }
        },
        "title": "THIRDPARTY-CONNECTOR-005",
        "required": [
          "error",
          "message",
          "title"
        ]
      },
      "Base": {
        "properties": {
          "name": {
            "type": "string",
            "example": "NOTIFICATION_ENROLL",
            "description": "Name of the notification"
          },
          "type": {
            "type": "string",
            "description": "The type of notification"
          },
          "retries": {
            "nullable": true,
            "type": "integer",
            "example": 10,
            "description": "Number of retries when the notification fails"
          },
          "runPeriod": {
            "nullable": true,
            "type": "string",
            "format": "Finite Duration",
            "pattern": "^([0-9]+) *(ms|millisecond|milliseconds|s|second|seconds|m|minute|minutes|h|hour|hours|d|day|days)$",
            "example": "5 days",
            "description": "Time period at which the notification needs to run. Can only be defined on expiration and pending events."
          },
          "licenseUsagePercent": {
            "nullable": true,
            "type": "integer",
            "example": 50,
            "description": "License usage at which the notification needs to run (between 0 and 100). Must be defined on `on_license_usage` event and must NOT be defined otherwise."
          },
          "events": {
            "description": "Event on which the notification runs. This MUST contain only one value.",
            "type": "array",
            "items": {
              "type": "string",
              "enum": [
                "on_enroll",
                "on_submit_enroll",
                "on_approve_enroll",
                "on_deny_enroll",
                "on_cancel_enroll",
                "on_pending_enroll",
                "on_renew",
                "on_submit_renew",
                "on_approve_renew",
                "on_deny_renew",
                "on_cancel_renew",
                "on_pending_renew",
                "on_update",
                "on_submit_update",
                "on_approve_update",
                "on_deny_update",
                "on_cancel_update",
                "on_pending_update",
                "on_migrate",
                "on_submit_migrate",
                "on_approve_migrate",
                "on_deny_migrate",
                "on_cancel_migrate",
                "on_pending_migrate",
                "on_recover",
                "on_submit_recover",
                "on_approve_recover",
                "on_deny_recover",
                "on_cancel_recover",
                "on_pending_recover",
                "on_revoke",
                "on_submit_revoke",
                "on_approve_revoke",
                "on_deny_revoke",
                "on_cancel_revoke",
                "on_pending_revoke",
                "on_import",
                "on_submit_import",
                "on_approve_import",
                "on_deny_import",
                "on_cancel_import",
                "on_pending_import",
                "on_expire",
                "on_credentials_expiration",
                "on_license_expiration",
                "on_license_usage",
                "on_test",
                "on_trigger_error"
              ]
            }
          },
          "runOnRenewed": {
            "nullable": true,
            "type": "boolean",
            "example": null,
            "description": "Must be defined on `on_expire` event and must NOT be defined otherwise. If true, the notification runs even if the certificate was renewed."
          }
        }
      },
      "EmailNotificationResponse": {
        "title": "Email Notification",
        "allOf": [
          {
            "$ref": "#/components/schemas/Base"
          }
        ],
        "properties": {
          "_id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/Id"
              }
            ]
          },
          "type": {
            "enum": [
              "email"
            ]
          },
          "emailTemplate": {
            "allOf": [
              {
                "$ref": "#/components/schemas/EmailTemplate"
              }
            ]
          },
          "ifPkcs12": {
            "description": "On events triggering an enrollment, select if mail is sent:\n- **Always**: set the value to `null` \n- **Only when a PKCS#12 is available in the request**: set the value to `true` \n- **Only when a PKCS#12 is not in the request**: set the value to `false`\n",
            "type": "boolean",
            "nullable": true
          },
          "attachPemCertificate": {
            "description": "Attach the certificate in PEM format if available",
            "type": "boolean",
            "nullable": true
          },
          "attachPemBundle": {
            "description": "Attach the certificate and its trust chain (bundle) in PEM format if available",
            "type": "boolean",
            "nullable": true
          },
          "attachDerCertificate": {
            "description": "Attach the certificate in DER format if available",
            "type": "boolean",
            "nullable": true
          },
          "attachPkcs7": {
            "description": "Attach the certificate in PKCS7 format if available",
            "type": "boolean",
            "nullable": true
          },
          "attachPkcs7Bundle": {
            "description": "Attach the certificate and its trust chain (bundle) in PKCS7 format if available",
            "type": "boolean",
            "nullable": true
          },
          "attachPkcs12": {
            "description": "Attach the certificate in PKCS#12 format if available",
            "type": "boolean",
            "nullable": true
          }
        },
        "required": [
          "_id",
          "name",
          "type",
          "events",
          "emailTemplate"
        ]
      },
      "WebhookRecipient": {
        "title": "Webhook Recipient",
        "description": "Where to send the webhook",
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "static",
              "team"
            ],
            "description": "Define if the webhook url and type is defined here or will be dynamically taken from the certificate's team"
          },
          "webhook": {
            "type": "object",
            "allOf": [
              {
                "$ref": "#/components/schemas/Webhook"
              }
            ],
            "description": "The definition of the webhook. Mandatory in `static` mode."
          }
        },
        "required": [
          "type"
        ]
      },
      "WebhookTemplate": {
        "title": "Webhook template",
        "description": "Where and what to send in the webhook",
        "properties": {
          "to": {
            "description": "The target of the webhook",
            "allOf": [
              {
                "$ref": "#/components/schemas/WebhookRecipient"
              }
            ]
          },
          "title": {
            "type": "string",
            "description": "The title of the webhook notification (special formatting)",
            "example": "Certificate enrollment"
          },
          "body": {
            "type": "string",
            "nullable": true,
            "description": "The body of the notification. Can contain dynamic attributes.",
            "example": "Your certificate {{certificate.dn}} was successfully enrolled."
          }
        },
        "required": [
          "to",
          "title"
        ]
      },
      "WebhookNotificationResponse": {
        "title": "Webhook Notification (Groupware)",
        "allOf": [
          {
            "$ref": "#/components/schemas/Base"
          }
        ],
        "properties": {
          "_id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/Id"
              }
            ]
          },
          "type": {
            "enum": [
              "webhook"
            ]
          },
          "retries": {
            "description": "Number of retries when the notification fails (non 200 return code)"
          },
          "webhookTemplate": {
            "allOf": [
              {
                "$ref": "#/components/schemas/WebhookTemplate"
              }
            ]
          },
          "proxy": {
            "nullable": true,
            "type": "string",
            "example": "ProxyForInternet",
            "description": "Name of a Proxy to use while sending the webhook"
          },
          "timeout": {
            "type": "string",
            "format": "Finite Duration",
            "pattern": "^([0-9]+) *(ms|millisecond|milliseconds|s|second|seconds|m|minute|minutes|h|hour|hours|d|day|days)$",
            "example": "30 s",
            "description": "Timeout for the webhook request"
          }
        },
        "required": [
          "_id",
          "name",
          "type",
          "events",
          "webhookTemplate"
        ]
      },
      "RESTResponse": {
        "title": "REST notification",
        "allOf": [
          {
            "$ref": "#/components/schemas/Base"
          }
        ],
        "properties": {
          "_id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/Id"
              }
            ]
          },
          "type": {
            "enum": [
              "rest"
            ]
          },
          "retries": {
            "description": "Number of retries when the notification fails (depends on `expectedHttpCodes`)"
          },
          "sequence": {
            "type": "array",
            "description": "The REST requests to execute, in execution order. Each request enriches the dictionary with its response for the next one",
            "items": {
              "properties": {
                "method": {
                  "type": "string",
                  "description": "The HTTP method to use for the request",
                  "example": "GET"
                },
                "url": {
                  "type": "string",
                  "format": "url",
                  "description": "The URL to request",
                  "example": "https://horizon.evertrust.fr/api/v1/test"
                },
                "authenticationType": {
                  "type": "string",
                  "description": "The authentication type to use while making the REST call. Is linked to `credentials`.",
                  "example": "bearer",
                  "enum": [
                    "noauth",
                    "basic",
                    "x509",
                    "bearer",
                    "custom"
                  ]
                },
                "credentials": {
                  "nullable": true,
                  "type": "string",
                  "description": "Name of the credentials to use for authentication",
                  "example": "myRawCredentials"
                },
                "headers": {
                  "description": "The headers of the request",
                  "nullable": true,
                  "type": "array",
                  "items": {
                    "allOf": [
                      {
                        "$ref": "#/components/schemas/RESTHeader"
                      }
                    ]
                  }
                },
                "payloadType": {
                  "nullable": true,
                  "type": "string",
                  "example": "json",
                  "description": "For UI purposes in order to format the body correctly"
                },
                "payload": {
                  "nullable": true,
                  "type": "string",
                  "example": "Hello {{certificate.dn.cn.1}}.",
                  "description": "The body of the request. Can contain dynamic attributes."
                },
                "expectedHttpCodes": {
                  "type": "array",
                  "description": "The success HTTP codes for the request. If the return code is not in this list, the notification will be considered failed.",
                  "example": [
                    200,
                    204
                  ],
                  "items": {
                    "type": "integer"
                  }
                },
                "proxy": {
                  "nullable": true,
                  "type": "string",
                  "example": "ProxyForInternet",
                  "description": "Name of a Proxy to use while making the request"
                },
                "timeout": {
                  "type": "string",
                  "format": "Finite Duration",
                  "pattern": "^([0-9]+) *(ms|millisecond|milliseconds|s|second|seconds|m|minute|minutes|h|hour|hours|d|day|days)$",
                  "example": "30 s",
                  "description": "Timeout for the HTTP request."
                }
              }
            }
          }
        },
        "required": [
          "_id",
          "name",
          "type",
          "events",
          "sequence"
        ]
      },
      "AzureKeyVaultTriggerResponse": {
        "title": "Third-Party AKV",
        "properties": {
          "_id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/Id"
              }
            ]
          },
          "name": {
            "type": "string"
          },
          "type": {
            "type": "string",
            "enum": [
              "akv"
            ]
          },
          "retries": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "connector": {
            "type": "string"
          }
        },
        "required": [
          "_id",
          "name",
          "type",
          "connector"
        ]
      },
      "F5ClientTriggerResponse": {
        "title": "Third-Party F5",
        "properties": {
          "_id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/Id"
              }
            ]
          },
          "name": {
            "type": "string"
          },
          "type": {
            "type": "string",
            "enum": [
              "f5client"
            ]
          },
          "retries": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "connector": {
            "type": "string"
          }
        },
        "required": [
          "_id",
          "name",
          "type",
          "connector"
        ]
      },
      "F5AS3TriggerResponse": {
        "title": "Third-Party F5 AS3",
        "properties": {
          "_id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/Id"
              }
            ]
          },
          "name": {
            "type": "string"
          },
          "type": {
            "type": "string",
            "enum": [
              "f5as3"
            ]
          },
          "retries": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "connector": {
            "type": "string"
          }
        },
        "required": [
          "_id",
          "name",
          "type",
          "connector"
        ]
      },
      "AWSTriggerResponse": {
        "title": "Third-Party AWS",
        "properties": {
          "_id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/Id"
              }
            ]
          },
          "name": {
            "type": "string"
          },
          "type": {
            "type": "string",
            "enum": [
              "aws"
            ]
          },
          "retries": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "connector": {
            "type": "string"
          }
        },
        "required": [
          "_id",
          "name",
          "type",
          "connector"
        ]
      },
      "GCMTriggerResponse": {
        "title": "Third-Party GCM",
        "properties": {
          "_id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/Id"
              }
            ]
          },
          "name": {
            "type": "string"
          },
          "type": {
            "type": "string",
            "enum": [
              "gcm"
            ]
          },
          "retries": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "connector": {
            "type": "string"
          }
        },
        "required": [
          "_id",
          "name",
          "type",
          "connector"
        ]
      },
      "LDAPTriggerResponse": {
        "title": "Third-Party LDAP",
        "properties": {
          "_id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/Id"
              }
            ]
          },
          "name": {
            "type": "string"
          },
          "type": {
            "type": "string",
            "enum": [
              "ldappub"
            ]
          },
          "retries": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "connector": {
            "type": "string"
          }
        },
        "required": [
          "_id",
          "name",
          "type",
          "connector"
        ]
      },
      "NetscalerTriggerResponse": {
        "title": "Third-Party Netscaler",
        "properties": {
          "_id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/Id"
              }
            ]
          },
          "name": {
            "type": "string"
          },
          "type": {
            "type": "string",
            "enum": [
              "netscaler"
            ]
          },
          "retries": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "connector": {
            "type": "string"
          }
        },
        "required": [
          "_id",
          "name",
          "type",
          "connector"
        ]
      },
      "IntunePKCSTriggerResponse": {
        "title": "Third-Party Intune PKCS",
        "properties": {
          "_id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/Id"
              }
            ]
          },
          "name": {
            "type": "string"
          },
          "type": {
            "type": "string",
            "enum": [
              "intunepkcs"
            ]
          },
          "retries": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "connector": {
            "type": "string"
          }
        },
        "required": [
          "_id",
          "name",
          "type",
          "connector"
        ]
      },
      "Trig001": {
        "title": "TRIG-001",
        "description": "Unexpected Error",
        "allOf": [
          {
            "$ref": "#/components/schemas/BasicError"
          }
        ],
        "properties": {
          "error": {
            "enum": [
              "TRIG-001"
            ]
          },
          "message": {
            "enum": [
              "Unexpected Error"
            ]
          },
          "title": {
            "enum": [
              "Unexpected Error"
            ]
          }
        },
        "required": [
          "error",
          "message",
          "title"
        ]
      },
      "EmailNotification": {
        "title": "Email Notification",
        "allOf": [
          {
            "$ref": "#/components/schemas/Base"
          }
        ],
        "properties": {
          "type": {
            "enum": [
              "email"
            ]
          },
          "emailTemplate": {
            "allOf": [
              {
                "$ref": "#/components/schemas/EmailTemplate"
              }
            ]
          },
          "ifPkcs12": {
            "description": "On events triggering an enrollment, select if mail is sent:\n- **Always**: set the value to `null` \n- **Only when a PKCS#12 is available in the request**: set the value to `true` \n- **Only when a PKCS#12 is not in the request**: set the value to `false`\n",
            "type": "boolean",
            "nullable": true
          },
          "attachPemCertificate": {
            "description": "Attach the certificate in PEM format if available",
            "type": "boolean",
            "nullable": true
          },
          "attachPemBundle": {
            "description": "Attach the certificate and its trust chain (bundle) in PEM format if available",
            "type": "boolean",
            "nullable": true
          },
          "attachDerCertificate": {
            "description": "Attach the certificate in DER format if available",
            "type": "boolean",
            "nullable": true
          },
          "attachPkcs7": {
            "description": "Attach the certificate in PKCS7 format if available",
            "type": "boolean",
            "nullable": true
          },
          "attachPkcs7Bundle": {
            "description": "Attach the certificate and its trust chain (bundle) in PKCS7 format if available",
            "type": "boolean",
            "nullable": true
          },
          "attachPkcs12": {
            "description": "Attach the certificate in PKCS#12 format if available",
            "type": "boolean",
            "nullable": true
          }
        },
        "required": [
          "name",
          "type",
          "events",
          "emailTemplate"
        ]
      },
      "WebhookNotification": {
        "title": "Webhook Notification (Groupware)",
        "allOf": [
          {
            "$ref": "#/components/schemas/Base"
          }
        ],
        "properties": {
          "type": {
            "enum": [
              "webhook"
            ]
          },
          "retries": {
            "description": "Number of retries when the notification fails (non 200 return code)"
          },
          "webhookTemplate": {
            "allOf": [
              {
                "$ref": "#/components/schemas/WebhookTemplate"
              }
            ]
          },
          "proxy": {
            "nullable": true,
            "type": "string",
            "example": "ProxyForInternet",
            "description": "Name of a Proxy to use while sending the webhook"
          },
          "timeout": {
            "type": "string",
            "format": "Finite Duration",
            "pattern": "^([0-9]+) *(ms|millisecond|milliseconds|s|second|seconds|m|minute|minutes|h|hour|hours|d|day|days)$",
            "example": "30 s",
            "description": "Timeout for the webhook request"
          }
        },
        "required": [
          "name",
          "type",
          "events",
          "webhookTemplate"
        ]
      },
      "REST": {
        "title": "REST notification",
        "allOf": [
          {
            "$ref": "#/components/schemas/Base"
          }
        ],
        "properties": {
          "type": {
            "enum": [
              "rest"
            ]
          },
          "retries": {
            "description": "Number of retries when the notification fails (depends on `expectedHttpCodes`)"
          },
          "sequence": {
            "type": "array",
            "description": "The REST requests to execute, in execution order. Each request enriches the dictionary with its response for the next one",
            "items": {
              "properties": {
                "method": {
                  "type": "string",
                  "description": "The HTTP method to use for the request",
                  "example": "GET"
                },
                "url": {
                  "type": "string",
                  "format": "url",
                  "description": "The URL to request",
                  "example": "https://horizon.evertrust.fr/api/v1/test"
                },
                "authenticationType": {
                  "type": "string",
                  "description": "The authentication type to use while making the REST call. Is linked to `credentials`.",
                  "example": "bearer",
                  "enum": [
                    "noauth",
                    "basic",
                    "x509",
                    "bearer",
                    "custom"
                  ]
                },
                "credentials": {
                  "nullable": true,
                  "type": "string",
                  "description": "Name of the credentials to use for authentication",
                  "example": "myRawCredentials"
                },
                "headers": {
                  "description": "The headers of the request",
                  "nullable": true,
                  "type": "array",
                  "items": {
                    "allOf": [
                      {
                        "$ref": "#/components/schemas/RESTHeader"
                      }
                    ]
                  }
                },
                "payloadType": {
                  "nullable": true,
                  "type": "string",
                  "example": "json",
                  "description": "For UI purposes in order to format the body correctly"
                },
                "payload": {
                  "nullable": true,
                  "type": "string",
                  "example": "Hello {{certificate.dn.cn.1}}.",
                  "description": "The body of the request. Can contain dynamic attributes."
                },
                "expectedHttpCodes": {
                  "type": "array",
                  "description": "The success HTTP codes for the request. If the return code is not in this list, the notification will be considered failed.",
                  "example": [
                    200,
                    204
                  ],
                  "items": {
                    "type": "integer"
                  }
                },
                "proxy": {
                  "nullable": true,
                  "type": "string",
                  "example": "ProxyForInternet",
                  "description": "Name of a Proxy to use while making the request"
                },
                "timeout": {
                  "type": "string",
                  "format": "Finite Duration",
                  "pattern": "^([0-9]+) *(ms|millisecond|milliseconds|s|second|seconds|m|minute|minutes|h|hour|hours|d|day|days)$",
                  "example": "30 s",
                  "description": "Timeout for the HTTP request."
                }
              }
            }
          }
        },
        "required": [
          "name",
          "type",
          "events",
          "sequence"
        ]
      },
      "AzureKeyVaultTrigger": {
        "title": "Third-Party AKV",
        "properties": {
          "name": {
            "type": "string"
          },
          "type": {
            "type": "string",
            "enum": [
              "akv"
            ]
          },
          "retries": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "connector": {
            "type": "string"
          }
        },
        "required": [
          "name",
          "type",
          "connector"
        ]
      },
      "F5ClientTrigger": {
        "title": "Third-Party F5",
        "properties": {
          "name": {
            "type": "string"
          },
          "type": {
            "type": "string",
            "enum": [
              "f5client"
            ]
          },
          "retries": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "connector": {
            "type": "string"
          }
        },
        "required": [
          "name",
          "type",
          "connector"
        ]
      },
      "F5AS3Trigger": {
        "title": "Third-Party F5 AS3",
        "properties": {
          "name": {
            "type": "string"
          },
          "type": {
            "type": "string",
            "enum": [
              "f5as3"
            ]
          },
          "retries": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "connector": {
            "type": "string"
          }
        },
        "required": [
          "name",
          "type",
          "connector"
        ]
      },
      "AWSTrigger": {
        "title": "Third-Party AWS",
        "properties": {
          "name": {
            "type": "string"
          },
          "type": {
            "type": "string",
            "enum": [
              "aws"
            ]
          },
          "retries": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "connector": {
            "type": "string"
          }
        },
        "required": [
          "name",
          "type",
          "connector"
        ]
      },
      "IntunePKCSTrigger": {
        "title": "Third-Party Intune PKCS",
        "properties": {
          "name": {
            "type": "string"
          },
          "type": {
            "type": "string",
            "enum": [
              "intunepkcs"
            ]
          },
          "retries": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "connector": {
            "type": "string"
          }
        },
        "required": [
          "name",
          "type",
          "connector"
        ]
      },
      "GCMTrigger": {
        "title": "Third-Party GCM",
        "properties": {
          "name": {
            "type": "string"
          },
          "type": {
            "type": "string",
            "enum": [
              "gcm"
            ]
          },
          "retries": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "connector": {
            "type": "string"
          }
        },
        "required": [
          "name",
          "type",
          "connector"
        ]
      },
      "LDAPTrigger": {
        "title": "Third-Party LDAP",
        "properties": {
          "name": {
            "type": "string"
          },
          "type": {
            "type": "string",
            "enum": [
              "ldappub"
            ]
          },
          "retries": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "connector": {
            "type": "string"
          }
        },
        "required": [
          "name",
          "type",
          "connector"
        ]
      },
      "NetscalerTrigger": {
        "title": "Third-Party Netscaler",
        "properties": {
          "name": {
            "type": "string"
          },
          "type": {
            "type": "string",
            "enum": [
              "netscaler"
            ]
          },
          "retries": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "connector": {
            "type": "string"
          }
        },
        "required": [
          "name",
          "type",
          "connector"
        ]
      },
      "Trig002": {
        "allOf": [
          {
            "$ref": "#/components/schemas/BasicError"
          }
        ],
        "description": "Invalid Trigger",
        "properties": {
          "error": {
            "enum": [
              "TRIG-002"
            ]
          },
          "message": {
            "enum": [
              "Invalid Trigger"
            ]
          },
          "title": {
            "enum": [
              "Invalid Trigger"
            ]
          }
        },
        "title": "TRIG-002",
        "required": [
          "error",
          "message",
          "title"
        ]
      },
      "Trig003": {
        "title": "TRIG-003",
        "description": "Trigger not found",
        "allOf": [
          {
            "$ref": "#/components/schemas/BasicError"
          }
        ],
        "properties": {
          "error": {
            "enum": [
              "TRIG-003"
            ]
          },
          "message": {
            "enum": [
              "Trigger not found"
            ]
          },
          "title": {
            "enum": [
              "Trigger not found"
            ]
          }
        },
        "required": [
          "error",
          "message",
          "title"
        ]
      },
      "Trig004": {
        "allOf": [
          {
            "$ref": "#/components/schemas/BasicError"
          }
        ],
        "description": "Trigger already exists",
        "properties": {
          "error": {
            "enum": [
              "TRIG-004"
            ]
          },
          "message": {
            "enum": [
              "Trigger already exists"
            ]
          },
          "title": {
            "enum": [
              "Trigger already exists"
            ]
          }
        },
        "title": "TRIG-004",
        "required": [
          "error",
          "message",
          "title"
        ]
      },
      "TriggerTestRequest": {
        "title": "Trigger Test Request",
        "properties": {
          "trigger": {
            "description": "The trigger to test",
            "oneOf": [
              {
                "$ref": "#/components/schemas/EmailNotification"
              },
              {
                "$ref": "#/components/schemas/WebhookNotification"
              },
              {
                "$ref": "#/components/schemas/REST"
              }
            ]
          },
          "dictionary": {
            "description": "Dictionary that will be interpreted by the trigger",
            "nullable": true,
            "type": "array",
            "items": {
              "allOf": [
                {
                  "$ref": "#/components/schemas/MapEntry"
                }
              ]
            }
          }
        },
        "required": [
          "trigger"
        ]
      },
      "EmailTriggerTestResponse": {
        "title": "Email Trigger Test Response",
        "type": "object",
        "properties": {
          "status": {
            "type": "string",
            "description": "Status of the test",
            "enum": [
              "success",
              "failure",
              "warning"
            ]
          },
          "message": {
            "type": "string",
            "description": "A message describing the test",
            "example": "Email successfully sent to test@evertrust.io"
          }
        },
        "required": [
          "status",
          "message"
        ]
      },
      "RestTriggerTestResponse": {
        "title": "REST Trigger Test Response",
        "type": "object",
        "properties": {
          "status": {
            "type": "string",
            "description": "Status of the test",
            "enum": [
              "success",
              "failure",
              "warning"
            ]
          },
          "message": {
            "type": "string",
            "description": "A message describing the test",
            "example": "Rest notification successfully sent"
          },
          "responseCode": {
            "nullable": true,
            "type": "integer",
            "example": 201,
            "description": "The response code to this request"
          },
          "responseHeaders": {
            "nullable": true,
            "type": "array",
            "description": "The headers from the response to this request",
            "items": {
              "allOf": [
                {
                  "$ref": "#/components/schemas/RESTHeader"
                }
              ]
            }
          },
          "responseBody": {
            "nullable": true,
            "description": "The body from the response to this request",
            "type": "string"
          },
          "requestURL": {
            "type": "string",
            "description": "The URL requested",
            "example": "https://horizon/api/v1"
          },
          "requestHeaders": {
            "nullable": true,
            "type": "array",
            "description": "The headers from this request",
            "items": {
              "allOf": [
                {
                  "$ref": "#/components/schemas/RESTHeader"
                }
              ]
            }
          },
          "requestBody": {
            "nullable": true,
            "description": "The body from this request",
            "type": "string"
          },
          "type": {
            "description": "The trigger type that was executed",
            "type": "string",
            "enum": [
              "webhook",
              "rest"
            ]
          }
        },
        "required": [
          "status",
          "message",
          "requestURL",
          "type"
        ]
      },
      "Trig005": {
        "allOf": [
          {
            "$ref": "#/components/schemas/BasicError"
          }
        ],
        "description": "Referenced Trigger",
        "properties": {
          "error": {
            "enum": [
              "TRIG-005"
            ]
          },
          "message": {
            "enum": [
              "Referenced Trigger"
            ]
          },
          "title": {
            "enum": [
              "Referenced Trigger"
            ]
          }
        },
        "title": "TRIG-005",
        "required": [
          "error",
          "message",
          "title"
        ]
      },
      "TrustChainAnchorResponse": {
        "type": "object",
        "title": "TrustChainAnchor",
        "properties": {
          "name": {
            "type": "string"
          },
          "certificate": {
            "allOf": [
              {
                "$ref": "#/components/schemas/CFCertificateResponse"
              }
            ]
          },
          "subordinates": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/TrustChainAnchorResponse"
            }
          }
        },
        "required": [
          "name",
          "certificate"
        ]
      },
      "Tc001": {
        "allOf": [
          {
            "$ref": "#/components/schemas/BasicError"
          }
        ],
        "description": "Unexpected error",
        "properties": {
          "error": {
            "enum": [
              "TC-001"
            ]
          },
          "message": {
            "enum": [
              "Unexpected error"
            ]
          },
          "title": {
            "enum": [
              "Unexpected error"
            ]
          }
        },
        "title": "TC-001",
        "required": [
          "error",
          "message",
          "title"
        ]
      },
      "WcceTemplateMapping": {
        "properties": {
          "template": {
            "type": "string"
          },
          "profile": {
            "type": "string"
          },
          "enrollmentMode": {
            "type": "string",
            "enum": [
              "entity",
              "eobo",
              "trust_request"
            ]
          },
          "eoboTrustedCas": {
            "type": "array",
            "nullable": true,
            "items": {
              "type": "string"
            }
          },
          "templateVersion": {
            "default": "v1",
            "type": "string",
            "description": "The version of the Microsoft template. Available from `2.8.1`",
            "enum": [
              "v1",
              "v2"
            ]
          }
        },
        "required": [
          "template",
          "profile",
          "enrollmentMode"
        ]
      },
      "WcceForestMappingResponse": {
        "properties": {
          "_id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/Id"
              }
            ]
          },
          "forest": {
            "type": "string"
          },
          "templateMappings": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/WcceTemplateMapping"
            }
          }
        },
        "required": [
          "_id",
          "forest",
          "templateMappings"
        ]
      },
      "WcceForest001": {
        "allOf": [
          {
            "$ref": "#/components/schemas/BasicError"
          }
        ],
        "description": "Unexpected Error",
        "properties": {
          "error": {
            "enum": [
              "WCCE-FOREST-001"
            ]
          },
          "message": {
            "enum": [
              "Unexpected Error"
            ]
          },
          "title": {
            "enum": [
              "Unexpected Error"
            ]
          }
        },
        "title": "WCCE-FOREST-001",
        "required": [
          "error",
          "message",
          "title"
        ]
      },
      "WcceForestMapping": {
        "properties": {
          "forest": {
            "type": "string"
          },
          "templateMappings": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/WcceTemplateMapping"
            }
          }
        },
        "required": [
          "forest",
          "templateMappings"
        ]
      },
      "WcceForest002": {
        "allOf": [
          {
            "$ref": "#/components/schemas/BasicError"
          }
        ],
        "description": "Invalid WCCE Forest Mapping",
        "properties": {
          "error": {
            "enum": [
              "WCCE-FOREST-002"
            ]
          },
          "message": {
            "enum": [
              "Invalid WCCE Forest Mapping"
            ]
          },
          "title": {
            "enum": [
              "Invalid WCCE Forest Mapping"
            ]
          }
        },
        "title": "WCCE-FOREST-002",
        "required": [
          "error",
          "message",
          "title"
        ]
      },
      "WcceForest005": {
        "allOf": [
          {
            "$ref": "#/components/schemas/BasicError"
          }
        ],
        "description": "WCCE Forest Mapping contains MS template duplicate(s)",
        "properties": {
          "error": {
            "enum": [
              "WCCE-FOREST-005"
            ]
          },
          "message": {
            "enum": [
              "WCCE Forest Mapping contains MS template duplicate(s)"
            ]
          },
          "title": {
            "enum": [
              "WCCE Forest Mapping contains MS template duplicate(s)"
            ]
          }
        },
        "title": "WCCE-FOREST-005",
        "required": [
          "error",
          "message",
          "title"
        ]
      },
      "WcceForest003": {
        "allOf": [
          {
            "$ref": "#/components/schemas/BasicError"
          }
        ],
        "description": "WCCE Forest Mapping not found",
        "properties": {
          "error": {
            "enum": [
              "WCCE-FOREST-003"
            ]
          },
          "message": {
            "enum": [
              "WCCE Forest Mapping not found"
            ]
          },
          "title": {
            "enum": [
              "WCCE Forest Mapping not found"
            ]
          }
        },
        "title": "WCCE-FOREST-003",
        "required": [
          "error",
          "message",
          "title"
        ]
      },
      "WcceForest004": {
        "allOf": [
          {
            "$ref": "#/components/schemas/BasicError"
          }
        ],
        "description": "WCCE Forest Mapping already exists",
        "properties": {
          "error": {
            "enum": [
              "WCCE-FOREST-004"
            ]
          },
          "message": {
            "enum": [
              "WCCE Forest Mapping already exists"
            ]
          },
          "title": {
            "enum": [
              "WCCE Forest Mapping already exists"
            ]
          }
        },
        "title": "WCCE-FOREST-004",
        "required": [
          "error",
          "message",
          "title"
        ]
      },
      "CertificateMetadata": {
        "title": "Certificate Metadata",
        "properties": {
          "key": {
            "type": "string",
            "description": "The metadata name",
            "example": "pki_connector",
            "enum": [
              "pki_connector",
              "previous_certificate_id",
              "renewed_certificate_id",
              "automation_policy",
              "gs_order_id",
              "metapki_id",
              "digicert_id",
              "entrust_id",
              "scep_transid",
              "fcms_id",
              "gsatlas_id",
              "certeurope_id",
              "digicert_order_id"
            ]
          },
          "value": {
            "description": "The metadata value",
            "type": "string",
            "example": "stream_connector"
          }
        },
        "required": [
          "key",
          "value"
        ]
      },
      "GradingPolicyResult": {
        "properties": {
          "name": {
            "type": "string",
            "description": "The name of the grading policy",
            "example": "Horizon-Grading-Policy"
          },
          "grade": {
            "description": "The grade awarded by the grading policy",
            "type": "string",
            "example": "A"
          }
        },
        "required": [
          "name",
          "grade"
        ]
      },
      "ThirdPartyItem": {
        "properties": {
          "connector": {
            "description": "The third party connector name on which this certificate is synchronized",
            "type": "string",
            "example": "F5_connector"
          },
          "id": {
            "description": "The Id of this certificate on the third party",
            "type": "string",
            "example": "hrz-hrz-1099-2dc61ac089ddeaab6efab34"
          },
          "fingerprint": {
            "description": "The fingerprint of this certificate on the third party",
            "type": "string",
            "nullable": true,
            "example": "hrz-hrz-1099-2dc61ac089ddeaab6efab34.1681397142139.crt"
          },
          "pushDate": {
            "description": "The date when the certificate was pushed to this third party",
            "type": "integer",
            "format": "epoch",
            "nullable": true,
            "example": 1681397145000
          },
          "removeDate": {
            "description": "The date when the certificate was removed from this third party (in case of revocation)",
            "type": "integer",
            "format": "epoch",
            "nullable": true,
            "example": 1681497145000
          }
        },
        "required": [
          "connector",
          "id"
        ]
      },
      "LabelData": {
        "properties": {
          "key": {
            "type": "string",
            "description": "The label's name",
            "example": "business_unit"
          },
          "value": {
            "type": "string",
            "description": "The label's value",
            "example": "BU1"
          }
        },
        "required": [
          "key",
          "value"
        ]
      },
      "DiscoveryInfo": {
        "properties": {
          "campaign": {
            "type": "string",
            "description": "The discovery campaign's name",
            "example": "zone_1_discovery"
          },
          "lastDiscoveryDate": {
            "description": "When this certificate was discovered for the last time",
            "type": "integer",
            "format": "epoch",
            "example": 1683988841000
          },
          "identifier": {
            "description": "Identifier of the user that discovered this certificate",
            "example": "CN=horizon-cli",
            "type": "string",
            "nullable": true
          }
        },
        "required": [
          "campaign",
          "lastDiscoveryDate"
        ]
      },
      "TriggerResult": {
        "properties": {
          "name": {
            "description": "The name of the trigger that was executed",
            "type": "string",
            "example": "push_to_f5_on_enroll"
          },
          "event": {
            "description": "The event that triggered the trigger",
            "type": "string",
            "example": "on_enroll",
            "enum": [
              "on_deny_update",
              "on_cancel_migrate",
              "on_pending_renew",
              "on_submit_migrate",
              "on_cancel_update",
              "on_approve_migrate",
              "on_pending_recover",
              "on_pending_enroll",
              "on_deny_revoke",
              "on_cancel_renew",
              "on_submit_recover",
              "on_submit_enroll",
              "on_cancel_recover",
              "on_approve_revoke",
              "on_pending_update",
              "on_deny_recover",
              "on_approve_renew",
              "on_deny_migrate",
              "on_revoke",
              "on_approve_recover",
              "on_expire",
              "on_enroll",
              "on_deny_renew",
              "on_approve_update",
              "on_recover",
              "on_deny_enroll",
              "on_submit_renew",
              "on_update",
              "on_approve_enroll",
              "on_cancel_enroll",
              "on_pending_migrate",
              "on_pending_revoke",
              "on_submit_update",
              "on_submit_revoke",
              "on_migrate",
              "on_cancel_revoke",
              "on_renew"
            ]
          },
          "triggerType": {
            "description": "The type of the trigger",
            "type": "string",
            "example": "f5client",
            "enum": [
              "aws",
              "email",
              "f5client",
              "ldappub",
              "intunepkcs",
              "akv",
              "webhook"
            ]
          },
          "lastExecutionDate": {
            "description": "The last time this trigger was executed for this certificate and this event",
            "example": 1609459200000,
            "type": "integer",
            "format": "epoch"
          },
          "status": {
            "description": "The status of the trigger after its execution",
            "example": "failure",
            "type": "string",
            "enum": [
              "success",
              "failure"
            ]
          },
          "retries": {
            "description": "The number of remaining tries before the trigger is abandoned",
            "example": 4,
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "nextExecutionDate": {
            "description": "The next scheduled execution time for this trigger",
            "example": 1609469200000,
            "type": "integer",
            "format": "epoch",
            "nullable": true
          },
          "nextDelay": {
            "description": "Time that will be waited between the next and the next+1 execution of this trigger",
            "nullable": true,
            "type": "string",
            "format": "Finite Duration",
            "pattern": "^([0-9]+) *(ms|millisecond|milliseconds|s|second|seconds|m|minute|minutes|h|hour|hours|d|day|days)$",
            "example": "5 seconds"
          },
          "detail": {
            "description": "Contains details on this trigger's execution",
            "example": "Failure while uploading file to F5: F5_connector: No address associated with hostname",
            "type": "string",
            "nullable": true
          },
          "retryable": {
            "description": "Is this trigger manually retryable (can be [run](#tag/certificate/operation/certificate.run))",
            "example": true,
            "type": "boolean"
          }
        },
        "required": [
          "name",
          "triggerType",
          "event",
          "lastExecutionDate",
          "status",
          "retryable"
        ]
      },
      "TlsPort": {
        "properties": {
          "port": {
            "description": "The number of the port",
            "type": "integer",
            "format": "int32",
            "example": 443
          },
          "version": {
            "description": "Protocol version used",
            "example": "TLSv1.2",
            "type": "string"
          }
        },
        "required": [
          "port",
          "version"
        ]
      },
      "HostDiscoveryData": {
        "properties": {
          "ip": {
            "description": "The certificate's host ip",
            "example": "192.168.1.66",
            "type": "string",
            "nullable": true
          },
          "sources": {
            "description": "Information on the type of discovery that discovered this certificate",
            "example": [
              "netscan"
            ],
            "type": "array",
            "nullable": true,
            "items": {
              "type": "string"
            }
          },
          "hostnames": {
            "description": "The certificate's host hostnames (netscan only)",
            "example": [
              "docs.evertrust.fr"
            ],
            "type": "array",
            "nullable": true,
            "items": {
              "type": "string"
            }
          },
          "operatingSystems": {
            "description": "The certificate's host operating system (localscan only)",
            "example": [
              "windows"
            ],
            "type": "array",
            "nullable": true,
            "items": {
              "type": "string"
            }
          },
          "paths": {
            "description": "The path to the certificate on the host machine (localscan only)",
            "example": [
              "/etc/ssl/cert.crt"
            ],
            "type": "array",
            "nullable": true,
            "items": {
              "type": "string"
            }
          },
          "usages": {
            "description": "The path of the configuration files that were used to find the certificates",
            "example": [
              "/usr/local/nginx/conf/nginx.conf"
            ],
            "type": "array",
            "nullable": true,
            "items": {
              "type": "string"
            }
          },
          "tlsPorts": {
            "description": "The ports on which the certificate is exposed for https connexion",
            "type": "array",
            "nullable": true,
            "items": {
              "$ref": "#/components/schemas/TlsPort"
            }
          }
        }
      },
      "CertificateResponse": {
        "type": "object",
        "title": "Certificate",
        "properties": {
          "metadata": {
            "description": "The certificate's technical metadata used internally",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CertificateMetadata"
            }
          },
          "notAfter": {
            "description": "The certificate's expiration date in milliseconds since the epoch",
            "format": "epoch",
            "type": "integer",
            "example": 1609459200000
          },
          "thumbprint": {
            "description": "The certificate's thumbprint",
            "type": "string",
            "example": "30f727ea932acc3e7ec4716a7c1d1d571a0b9124afbe1d1d81a205562164c69c"
          },
          "revocationDate": {
            "description": "The certificate's revocation date in milliseconds since the epoch. This field is only present if the certificate is revoked",
            "nullable": true,
            "format": "epoch",
            "type": "integer"
          },
          "certificate": {
            "description": "The certificate's PEM-encoded content",
            "type": "string",
            "example": "-----BEGIN CERTIFICATE-----\nMI....\n-----END CERTIFICATE-----"
          },
          "dn": {
            "description": "The certificate's Distinguished Name",
            "type": "string",
            "example": "CN=Test Certificate,OU=Test,O=Test,L=Test,ST=Test,C=US"
          },
          "grades": {
            "description": "The certificate's grades for the enabled grading policies",
            "nullable": true,
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/GradingPolicyResult"
            }
          },
          "revoked": {
            "description": "Whether the certificate is revoked",
            "type": "boolean"
          },
          "escrowed": {
            "description": "Whether the certificate is escrowed",
            "type": "boolean"
          },
          "issuer": {
            "description": "The certificate's issuer Distinguished Name",
            "example": "CN=Test CA,OU=Test,O=Test,L=Test,ST=Test,C=US",
            "type": "string"
          },
          "notBefore": {
            "description": "The certificate's start date in milliseconds since the epoch",
            "example": 1609459200000,
            "format": "epoch",
            "type": "integer"
          },
          "crlSynchronized": {
            "description": "Whether the certificate's revocation status is synchronized with a CRL",
            "nullable": true,
            "type": "boolean"
          },
          "selfSigned": {
            "description": "Whether the certificate is self-signed",
            "type": "boolean",
            "example": false
          },
          "discoveredTrusted": {
            "description": "If the certificate was discovered and is found to be issued by an existing trusted CA, this field will be set to true. If the certificate was discovered and is not found to be issued by an existing trusted CA, this field will be set to false. If the certificate was not discovered, this field will be null",
            "nullable": true,
            "type": "boolean"
          },
          "keyType": {
            "description": "The certificate's key type",
            "allOf": [
              {
                "$ref": "#/components/schemas/KeyType"
              }
            ]
          },
          "thirdPartyData": {
            "description": "The certificate's information about synchronization with Horizon supported third parties",
            "nullable": true,
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ThirdPartyItem"
            }
          },
          "owner": {
            "description": "The certificate's owner. This is a reference to a local identity identifier",
            "nullable": true,
            "type": "string"
          },
          "publicKeyThumbprint": {
            "description": "The certificate's public key thumbprint",
            "example": "4d0faebaeaa595aba5fafe6040fa8a2143b019b59a2b25ced3b2fb7393ee10e2",
            "type": "string"
          },
          "contactEmail": {
            "description": "The certificate's contact email. It will be used to send notifications about the certificate's expiration and revocation",
            "nullable": true,
            "type": "string",
            "format": "email"
          },
          "module": {
            "description": "The certificate's module",
            "example": "webra",
            "type": "string"
          },
          "profile": {
            "description": "The certificate's profile",
            "example": "DefaultProfile",
            "nullable": true,
            "type": "string"
          },
          "team": {
            "description": "The certificate's team. This is a reference to a team identifier. It will be used to determine the certificate's permissions and send notifications",
            "nullable": true,
            "type": "string"
          },
          "holderId": {
            "description": "The certificate's holder ID. This is a computed field that is used to count how many similar certificates are in use simultaneously by the same holder",
            "example": "9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08",
            "type": "string"
          },
          "labels": {
            "description": "The certificate's labels",
            "nullable": true,
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/LabelData"
            }
          },
          "discoveryInfo": {
            "description": "A list of metadata containing information on how and when the certificate was discovered",
            "nullable": true,
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/DiscoveryInfo"
            }
          },
          "subjectAlternateNames": {
            "description": "The certificate's Subject Alternate Names",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/SubjectAlternateName"
            }
          },
          "triggerResults": {
            "description": "The result of the execution of triggers on this certificate",
            "nullable": true,
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/TriggerResult"
            }
          },
          "extensions": {
            "description": "The certificate's extensions",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CertificateExtension"
            }
          },
          "serial": {
            "description": "The certificate's serial number",
            "example": "1",
            "type": "string"
          },
          "signingAlgorithm": {
            "description": "The certificate's signing algorithm",
            "example": "SHA256WITHRSA",
            "type": "string"
          },
          "discoveryData": {
            "description": "A list of metadata containing information on where the certificate was discovered",
            "nullable": true,
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/HostDiscoveryData"
            }
          },
          "_id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/Id"
              }
            ]
          },
          "revocationReason": {
            "description": "The certificate's revocation reason",
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/RevocationReason"
              }
            ]
          }
        },
        "required": [
          "_id",
          "module",
          "certificate",
          "thumbprint",
          "selfSigned",
          "publicKeyThumbprint",
          "dn",
          "serial",
          "issuer",
          "notBefore",
          "notAfter",
          "revoked",
          "escrowed",
          "keyType",
          "signingAlgorithm",
          "subjectAlternateNames",
          "metadata",
          "holderId"
        ]
      },
      "CertificatePermissions": {
        "properties": {
          "enroll": {
            "description": "Whether the principal is authorized to re-enroll this certificate",
            "type": "boolean",
            "nullable": true
          },
          "requestEnroll": {
            "description": "Whether the principal is authorized to request re-enrollment of this certificate",
            "type": "boolean",
            "nullable": true
          },
          "revoke": {
            "description": "Whether the principal is authorized to revoke this certificate",
            "type": "boolean"
          },
          "requestRevoke": {
            "description": "Whether the principal is authorized to request revocation of this certificate",
            "type": "boolean"
          },
          "update": {
            "description": "Whether the principal is authorized to update this certificate",
            "type": "boolean"
          },
          "requestUpdate": {
            "description": "Whether the principal is authorized to request update of this certificate",
            "type": "boolean"
          },
          "recover": {
            "description": "Whether the principal is authorized to recover this certificate",
            "type": "boolean",
            "nullable": true
          },
          "requestRecover": {
            "description": "Whether the principal is authorized to request recovery of this certificate",
            "type": "boolean",
            "nullable": true
          },
          "migrate": {
            "description": "Whether the principal is authorized to migrate this certificate",
            "type": "boolean"
          },
          "requestMigrate": {
            "description": "Whether the principal is authorized to request migration of this certificate",
            "type": "boolean"
          },
          "renew": {
            "description": "Whether the principal is authorized to renew this certificate",
            "type": "boolean",
            "nullable": true
          },
          "requestRenew": {
            "description": "Whether the principal is authorized to request renewal of this certificate",
            "type": "boolean",
            "nullable": true
          }
        },
        "required": [
          "revoke",
          "requestRevoke",
          "update",
          "requestUpdate",
          "migrate",
          "requestMigrate"
        ]
      },
      "CertificateWithPermissionsResponse": {
        "title": "CertificateWithPermissions",
        "properties": {
          "certificate": {
            "description": "The certificate object",
            "allOf": [
              {
                "$ref": "#/components/schemas/CertificateResponse"
              }
            ]
          },
          "permissions": {
            "description": "The permissions of the currently authenticated principal on the certificate",
            "allOf": [
              {
                "$ref": "#/components/schemas/CertificatePermissions"
              }
            ]
          }
        },
        "required": [
          "certificate",
          "permissions"
        ]
      },
      "CertSearch001": {
        "title": "CERT-SEARCH-001",
        "description": "Unexpected error",
        "allOf": [
          {
            "$ref": "#/components/schemas/BasicError"
          }
        ],
        "properties": {
          "error": {
            "enum": [
              "CERT-SEARCH-001"
            ]
          },
          "message": {
            "enum": [
              "Unexpected error"
            ]
          },
          "title": {
            "enum": [
              "Unexpected error"
            ]
          }
        },
        "required": [
          "error",
          "message",
          "title"
        ]
      },
      "CertSearch003": {
        "title": "CERT-SEARCH-003",
        "description": "Certificate not found",
        "allOf": [
          {
            "$ref": "#/components/schemas/BasicError"
          }
        ],
        "properties": {
          "error": {
            "enum": [
              "CERT-SEARCH-003"
            ]
          },
          "message": {
            "enum": [
              "Certificate not found"
            ]
          },
          "title": {
            "enum": [
              "Certificate not found"
            ]
          }
        },
        "required": [
          "error",
          "message",
          "title"
        ]
      },
      "CertSearch002": {
        "title": "CERT-SEARCH-002",
        "description": "Invalid Search Request",
        "allOf": [
          {
            "$ref": "#/components/schemas/BasicError"
          }
        ],
        "properties": {
          "error": {
            "enum": [
              "CERT-SEARCH-002"
            ]
          },
          "message": {
            "enum": [
              "Invalid Search Request"
            ]
          },
          "title": {
            "enum": [
              "Invalid Search Request"
            ]
          }
        },
        "required": [
          "error",
          "message",
          "title"
        ]
      },
      "CertSearch004": {
        "title": "CERT-SEARCH-004",
        "description": "Certificate Profile not found",
        "allOf": [
          {
            "$ref": "#/components/schemas/BasicError"
          }
        ],
        "properties": {
          "error": {
            "enum": [
              "CERT-SEARCH-004"
            ]
          },
          "message": {
            "enum": [
              "Certificate Profile not found"
            ]
          },
          "title": {
            "enum": [
              "Certificate Profile not found"
            ]
          }
        },
        "required": [
          "error",
          "message",
          "title"
        ]
      },
      "CertificateProfileSearchDictionaryLocalizedEntry": {
        "title": "Certificate Profile Localized Entry",
        "properties": {
          "name": {
            "description": "The technical name of the profile",
            "example": "webra_centralized",
            "type": "string"
          },
          "module": {
            "description": "The module on which the profile belongs",
            "example": "webra",
            "type": "string"
          },
          "displayName": {
            "description": "The localized name of the profile",
            "type": "array",
            "nullable": true,
            "items": {
              "$ref": "#/components/schemas/LocalizedString"
            }
          },
          "description": {
            "description": "The localized description of the profile",
            "type": "array",
            "nullable": true,
            "items": {
              "$ref": "#/components/schemas/LocalizedString"
            }
          }
        },
        "required": [
          "name",
          "module"
        ]
      },
      "TeamSearchDictionaryLocalizedEntry": {
        "title": "Team Localized Entry",
        "properties": {
          "name": {
            "description": "The technical name of the team",
            "example": "backend",
            "type": "string"
          },
          "displayName": {
            "description": "The localized name of the team",
            "type": "array",
            "nullable": true,
            "items": {
              "$ref": "#/components/schemas/LocalizedString"
            }
          }
        },
        "required": [
          "name"
        ]
      },
      "CertificateLabelSearchDictionaryLocalizedEntry": {
        "title": "Label Localized Entry",
        "properties": {
          "name": {
            "description": "The technical name of the label",
            "example": "business_unit",
            "type": "string"
          },
          "displayName": {
            "description": "The localized name of the label",
            "type": "array",
            "nullable": true,
            "items": {
              "$ref": "#/components/schemas/LocalizedString"
            }
          },
          "description": {
            "description": "The localized description of the label",
            "type": "array",
            "nullable": true,
            "items": {
              "$ref": "#/components/schemas/LocalizedString"
            }
          }
        },
        "required": [
          "name"
        ]
      },
      "CertificateSearchDictionaryResponse": {
        "properties": {
          "profiles": {
            "description": "The list of profiles the principal is authorized to search on",
            "type": "array",
            "nullable": true,
            "items": {
              "$ref": "#/components/schemas/CertificateProfileSearchDictionaryLocalizedEntry"
            }
          },
          "campaigns": {
            "description": "The list of discovery campaign the principal is authorized to search on",
            "example": [
              "horizon_netscan_campaign"
            ],
            "type": "array",
            "nullable": true,
            "items": {
              "type": "string"
            }
          },
          "teams": {
            "description": "The list of available teams on this Horizon instance",
            "type": "array",
            "nullable": true,
            "items": {
              "$ref": "#/components/schemas/TeamSearchDictionaryLocalizedEntry"
            }
          },
          "labels": {
            "description": "The list of labels the principal is authorized to search on",
            "type": "array",
            "nullable": true,
            "items": {
              "$ref": "#/components/schemas/CertificateLabelSearchDictionaryLocalizedEntry"
            }
          },
          "metadata": {
            "description": "The list of available metadata in Horizon",
            "type": "array",
            "example": [
              "pki_connector",
              "automation_policy",
              "..."
            ],
            "items": {
              "type": "string"
            }
          },
          "modules": {
            "description": "The list of Horizon modules available on this instance",
            "type": "array",
            "example": [
              "webra",
              "est",
              "..."
            ],
            "nullable": true,
            "items": {
              "type": "string"
            }
          },
          "gradingPolicies": {
            "description": "The list of available grading policies on Horizon",
            "example": [
              "Horizon-Grading-Policy"
            ],
            "type": "array",
            "nullable": true,
            "items": {
              "type": "string"
            }
          }
        },
        "required": [
          "metadata"
        ]
      },
      "CertificateSearchQuery": {
        "properties": {
          "query": {
            "description": "The HCQL query to use for the search, represents the way to filter certificates. If not specified, it will filter nothing",
            "example": "status is valid",
            "externalDocs": {
              "description": "HCQL syntax guide",
              "url": "https://docs.evertrust.fr/horizon/user-guide/2.5/search"
            },
            "type": "string",
            "nullable": true
          },
          "fields": {
            "description": "The fields to be returned by the search. If this parameter is not specified, everything is returned by default. If this parameter is equal to an empty array, only the `_id` field is returned.\n",
            "example": [
              "module",
              "dn",
              "notAfter",
              "revocationDate",
              "revocationReason",
              "notBefore"
            ],
            "type": "array",
            "nullable": true,
            "items": {
              "type": "string"
            }
          },
          "sortedBy": {
            "description": "The way to sort the search results.\n",
            "type": "array",
            "nullable": true,
            "items": {
              "$ref": "#/components/schemas/SortElement"
            }
          },
          "pageIndex": {
            "description": "The index of the page to retrieve",
            "type": "integer",
            "default": 1,
            "format": "int32",
            "nullable": true
          },
          "pageSize": {
            "description": "The maximum number of items to retrieve for one page",
            "default": 50,
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "withCount": {
            "description": "If set to `true`, the total count of certificates matching the HCQL query will be returned.\n",
            "default": false,
            "type": "boolean",
            "nullable": true
          }
        }
      },
      "EscrowedPrivateKey": {
        "properties": {
          "horizonKey": {
            "type": "string"
          },
          "value": {
            "nullable": true,
            "type": "string",
            "format": "PKCS#8 PEM encoded"
          },
          "vaultKey": {
            "type": "string",
            "nullable": true
          },
          "transient": {
            "type": "boolean",
            "nullable": true
          }
        },
        "required": [
          "horizonKey"
        ]
      },
      "CertificateSearchResult": {
        "properties": {
          "_id": {
            "nullable": true,
            "type": "string"
          },
          "module": {
            "type": "string",
            "nullable": true
          },
          "profile": {
            "type": "string",
            "nullable": true
          },
          "owner": {
            "type": "string",
            "nullable": true
          },
          "team": {
            "type": "string",
            "nullable": true
          },
          "discoveredTrusted": {
            "type": "boolean",
            "nullable": true
          },
          "discoveryInfo": {
            "type": "array",
            "nullable": true,
            "items": {
              "$ref": "#/components/schemas/DiscoveryInfo"
            }
          },
          "discoveryData": {
            "type": "array",
            "nullable": true,
            "items": {
              "$ref": "#/components/schemas/HostDiscoveryData"
            }
          },
          "certificate": {
            "type": "string",
            "nullable": true
          },
          "thumbprint": {
            "type": "string",
            "nullable": true
          },
          "selfSigned": {
            "type": "boolean",
            "nullable": true
          },
          "publicKeyThumbprint": {
            "type": "string",
            "nullable": true
          },
          "dn": {
            "type": "string",
            "nullable": true
          },
          "serial": {
            "type": "string",
            "nullable": true
          },
          "issuer": {
            "type": "string",
            "nullable": true
          },
          "notBefore": {
            "type": "integer",
            "format": "epoch",
            "nullable": true
          },
          "notAfter": {
            "type": "integer",
            "format": "epoch",
            "nullable": true
          },
          "revocationDate": {
            "type": "integer",
            "format": "epoch",
            "nullable": true
          },
          "revocationReason": {
            "allOf": [
              {
                "$ref": "#/components/schemas/RevocationReason"
              }
            ],
            "nullable": true
          },
          "keyType": {
            "allOf": [
              {
                "$ref": "#/components/schemas/KeyType"
              }
            ],
            "nullable": true
          },
          "signingAlgorithm": {
            "type": "string",
            "nullable": true
          },
          "subjectAlternateNames": {
            "type": "array",
            "nullable": true,
            "items": {
              "$ref": "#/components/schemas/SubjectAlternateName"
            }
          },
          "metadata": {
            "type": "array",
            "nullable": true,
            "items": {
              "$ref": "#/components/schemas/CertificateMetadata"
            }
          },
          "thirdPartyData": {
            "type": "array",
            "nullable": true,
            "items": {
              "$ref": "#/components/schemas/ThirdPartyItem"
            }
          },
          "triggerResults": {
            "type": "array",
            "nullable": true,
            "items": {
              "$ref": "#/components/schemas/TriggerResult"
            }
          },
          "holderId": {
            "type": "string",
            "nullable": true
          },
          "labels": {
            "type": "array",
            "nullable": true,
            "items": {
              "$ref": "#/components/schemas/LabelData"
            }
          },
          "privateKey": {
            "nullable": true,
            "type": "object",
            "allOf": [
              {
                "$ref": "#/components/schemas/EscrowedPrivateKey"
              }
            ]
          },
          "permissions": {
            "nullable": true,
            "type": "object",
            "allOf": [
              {
                "$ref": "#/components/schemas/CertificatePermissions"
              }
            ]
          },
          "contactEmail": {
            "type": "string",
            "nullable": true
          },
          "grades": {
            "type": "array",
            "nullable": true,
            "items": {
              "$ref": "#/components/schemas/GradingPolicyResult"
            }
          }
        }
      },
      "CertificateSearchResultsResponse": {
        "properties": {
          "results": {
            "description": "List of certificates that matched the search criteria",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CertificateSearchResult"
            }
          },
          "pageIndex": {
            "description": "The index of the page that has been retrieved",
            "example": 1,
            "type": "integer",
            "format": "int32"
          },
          "pageSize": {
            "description": "The size of the page that has been retrieved",
            "example": 50,
            "type": "integer",
            "format": "int32"
          },
          "count": {
            "description": "If `withCount` was set to true in the query payload, represents the total number of certificates that were retrieved for that query\n",
            "example": 12,
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "hasMore": {
            "description": "Indicates whether the response represents the last page of results (if set to `false`) or not (if set to `true`)\n",
            "example": false,
            "type": "boolean"
          }
        },
        "required": [
          "results",
          "pageIndex",
          "pageSize",
          "hasMore"
        ]
      },
      "FindCertificateById": {
        "title": "Find certificate by id",
        "properties": {
          "id": {
            "description": "Internal id of the certificate to find",
            "example": "6448d56b310000400063f014",
            "type": "string"
          }
        },
        "required": [
          "id"
        ]
      },
      "FindCertificateByPem": {
        "title": "Find certificate by PEM",
        "properties": {
          "pem": {
            "description": "PEM encoded certificate",
            "example": "-----BEGIN CERTIFICATE-----\\nMIi...",
            "type": "string"
          }
        },
        "required": [
          "pem"
        ]
      },
      "CertificateAggregateQuery": {
        "properties": {
          "query": {
            "description": "The HCQL query to use for the search, represents the way to filter certificates. If not specified, it will filter nothing",
            "example": "status is valid",
            "externalDocs": {
              "description": "HCQL syntax guide",
              "url": "https://docs.evertrust.fr/horizon/user-guide/2.5/search"
            },
            "type": "string",
            "nullable": true
          },
          "groupBy": {
            "description": "The field that the aggregation will take place on",
            "example": [
              "keyType"
            ],
            "type": "array",
            "nullable": true,
            "items": {
              "type": "string"
            }
          },
          "withCount": {
            "description": "If set to `true`, the total count of certificates matching the HCQL query will be returned",
            "type": "boolean",
            "nullable": true
          },
          "sortOrder": {
            "type": "string",
            "nullable": true,
            "enum": [
              "Asc",
              "Desc",
              "KeyAsc",
              "KeyDesc"
            ]
          },
          "limit": {
            "description": "In case of an aggregate sending a lot of different results, how many must be sent back",
            "example": 3,
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "having": {
            "description": "A condition to apply to the result. Only the aggregates results with more than 5 certificates in them can be kept for example",
            "nullable": true,
            "type": "object",
            "allOf": [
              {
                "$ref": "#/components/schemas/Having"
              }
            ]
          }
        }
      },
      "CertificateAggregateResultResponse": {
        "title": "Aggregate Result",
        "properties": {
          "items": {
            "description": "All the groups in this aggregate",
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "_id": {
                  "type": "object",
                  "description": "The object containing this group's information",
                  "properties": {
                    "groupedByField": {
                      "type": "string",
                      "example": "rsa-2048",
                      "description": "This field has the requested aggregate field as key, and the value for this group as value"
                    }
                  }
                },
                "count": {
                  "description": "The number of certificates in this group",
                  "type": "integer",
                  "example": 6
                }
              }
            }
          },
          "count": {
            "description": "The total number of certificates matching the query",
            "type": "integer",
            "format": "int64",
            "nullable": true,
            "example": 6
          }
        },
        "required": [
          "items"
        ]
      },
      "CertSearch005": {
        "title": "CERT-SEARCH-005",
        "description": "Invalid Aggregate Request",
        "allOf": [
          {
            "$ref": "#/components/schemas/BasicError"
          }
        ],
        "properties": {
          "error": {
            "enum": [
              "CERT-SEARCH-005"
            ]
          },
          "message": {
            "enum": [
              "Invalid Aggregate Request"
            ]
          },
          "title": {
            "enum": [
              "Invalid Aggregate Request"
            ]
          }
        },
        "required": [
          "error",
          "message",
          "title"
        ]
      },
      "RequestableWorkflow": {
        "properties": {
          "workflow": {
            "description": "A possible workflow on this profile",
            "example": "enroll",
            "type": "string",
            "enum": [
              "migrate",
              "revoke",
              "recover",
              "enroll",
              "renew",
              "update"
            ]
          },
          "request": {
            "description": "The principal has the ability to create a request for this workflow",
            "type": "boolean"
          },
          "perform": {
            "description": "The principal can perform this workflow without validation",
            "type": "boolean"
          }
        },
        "required": [
          "workflow",
          "request",
          "perform"
        ]
      },
      "CertificateProfileCapabilities": {
        "properties": {
          "centralized": {
            "description": "Centralized enrollment is enabled on this profile",
            "type": "boolean"
          },
          "decentralized": {
            "description": "Decentralized enrollment is enabled on this profile",
            "type": "boolean"
          },
          "defaultKeyType": {
            "description": "Key type used when no keyType has been chosen",
            "allOf": [
              {
                "$ref": "#/components/schemas/KeyType"
              }
            ],
            "nullable": true
          },
          "authorizedKeyTypes": {
            "description": "The list of key types that are authorized for enrollment. A null value means all keys are allowed",
            "type": "array",
            "example": [
              "rsa-2048",
              "rsa-4096"
            ],
            "nullable": true,
            "items": {
              "allOf": [
                {
                  "$ref": "#/components/schemas/KeyType"
                }
              ]
            }
          },
          "preferredEnrollmentMode": {
            "description": "The enrollment mode that should be prioritized when both are defined",
            "type": "string",
            "nullable": true,
            "enum": [
              "centralized",
              "decentralized"
            ]
          },
          "passwordPolicy": {
            "nullable": true,
            "type": "object",
            "description": "The selected password policy for this profile. If none is defined and the password mode is `manual`, there is no constraint on the password. In `random` mode, the `Horizon-Default` policy is used",
            "allOf": [
              {
                "$ref": "#/components/schemas/PasswordPolicy"
              }
            ]
          },
          "p12passwordMode": {
            "description": "A `manual` password mode means the password for the PKCS#12 must be set in the request. A `random` password will be generated on Horizon",
            "type": "string",
            "nullable": true,
            "enum": [
              "manual",
              "random"
            ]
          }
        },
        "required": [
          "centralized",
          "decentralized"
        ]
      },
      "RequestableCertificateProfileResponse": {
        "title": "RequestableCertificateProfile",
        "properties": {
          "name": {
            "description": "The name of the profile",
            "example": "webra_centralized",
            "type": "string"
          },
          "module": {
            "description": "The module of the profile",
            "example": "webra",
            "type": "string"
          },
          "displayName": {
            "description": "The localized name of the profile",
            "type": "array",
            "nullable": true,
            "items": {
              "$ref": "#/components/schemas/LocalizedString"
            }
          },
          "description": {
            "description": "The localized description of the profile",
            "type": "array",
            "nullable": true,
            "items": {
              "$ref": "#/components/schemas/LocalizedString"
            }
          },
          "workflows": {
            "description": "The list of workflows on this profile and the principals permission on them",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/RequestableWorkflow"
            }
          },
          "capabilities": {
            "description": "Crypto information about this profile",
            "allOf": [
              {
                "$ref": "#/components/schemas/CertificateProfileCapabilities"
              }
            ]
          }
        },
        "required": [
          "name",
          "module",
          "workflows",
          "capabilities"
        ]
      },
      "Req001": {
        "title": "REQ-001",
        "description": "Unexpected Error",
        "allOf": [
          {
            "$ref": "#/components/schemas/BasicError"
          }
        ],
        "properties": {
          "error": {
            "enum": [
              "REQ-001"
            ]
          },
          "message": {
            "enum": [
              "Unexpected Error"
            ]
          },
          "title": {
            "enum": [
              "Unexpected Error"
            ]
          }
        },
        "required": [
          "error",
          "message",
          "title"
        ]
      },
      "ChallengeBaseRequestOnTemplate": {
        "properties": {
          "module": {
            "description": "The request module",
            "type": "string"
          },
          "workflow": {
            "description": "The workflow for which to return the template.",
            "type": "string"
          },
          "profile": {
            "title": "Certificate profile",
            "type": "string",
            "example": "webra_centralized",
            "description": "The profile for which to return the template."
          }
        }
      },
      "WebRABaseRequestOnTemplate": {
        "allOf": [
          {
            "$ref": "#/components/schemas/ChallengeBaseRequestOnTemplate"
          }
        ],
        "properties": {
          "certificateId": {
            "title": "Horizon certificate ID",
            "nullable": true,
            "type": "string",
            "allOf": [
              {
                "$ref": "#/components/schemas/Id"
              }
            ],
            "description": "Used to pre-fill the template field with the certificate values."
          },
          "certificatePem": {
            "title": "Certificate pem",
            "nullable": true,
            "type": "string",
            "description": "Used to pre-fill the template field with the certificate values.",
            "example": "-----BEGIN CERTIFICATE----- ..."
          }
        }
      },
      "WebRAEnrollRequestOnTemplate": {
        "title": "WebRA Enroll Request",
        "allOf": [
          {
            "$ref": "#/components/schemas/WebRABaseRequestOnTemplate"
          }
        ],
        "properties": {
          "workflow": {
            "enum": [
              "enroll"
            ]
          },
          "module": {
            "description": "The module for which to return the template.",
            "type": "string",
            "enum": [
              "webra"
            ]
          },
          "profile": {
            "nullable": true,
            "type": "string"
          },
          "template": {
            "type": "object",
            "description": "An optional CSR can be given to pre-fill the template",
            "properties": {
              "csr": {
                "description": "Used to pre-fill the template field with the CSR values.",
                "nullable": true,
                "type": "string",
                "example": "-----BEGIN CSR----- ..."
              }
            }
          }
        },
        "required": [
          "workflow",
          "module"
        ]
      },
      "WebRARevokeRequestOnTemplate": {
        "title": "WebRA Revoke Request",
        "allOf": [
          {
            "$ref": "#/components/schemas/WebRABaseRequestOnTemplate"
          }
        ],
        "properties": {
          "workflow": {
            "enum": [
              "revoke"
            ]
          },
          "profile": {
            "nullable": false,
            "type": "string"
          }
        },
        "required": [
          "workflow"
        ]
      },
      "WebRAUpdateRequestOnTemplate": {
        "title": "WebRA Update Request",
        "allOf": [
          {
            "$ref": "#/components/schemas/WebRABaseRequestOnTemplate"
          }
        ],
        "properties": {
          "workflow": {
            "enum": [
              "update"
            ]
          },
          "profile": {
            "type": "string",
            "nullable": true
          }
        },
        "required": [
          "workflow"
        ]
      },
      "WebRARecoverRequestOnTemplate": {
        "title": "WebRA Recover Request",
        "allOf": [
          {
            "$ref": "#/components/schemas/WebRABaseRequestOnTemplate"
          }
        ],
        "properties": {
          "workflow": {
            "enum": [
              "recover"
            ]
          }
        },
        "required": [
          "workflow",
          "profile"
        ]
      },
      "WebRAMigrateRequestOnTemplate": {
        "title": "WebRA Migrate Request",
        "allOf": [
          {
            "$ref": "#/components/schemas/WebRABaseRequestOnTemplate"
          }
        ],
        "properties": {
          "workflow": {
            "enum": [
              "migrate"
            ]
          }
        },
        "required": [
          "workflow",
          "profile"
        ]
      },
      "WebRARenewRequestOnTemplate": {
        "title": "WebRA Renew Request",
        "allOf": [
          {
            "$ref": "#/components/schemas/WebRABaseRequestOnTemplate"
          }
        ],
        "properties": {
          "module": {
            "enum": [
              "webra"
            ]
          },
          "workflow": {
            "enum": [
              "renew"
            ]
          }
        },
        "required": [
          "workflow",
          "module"
        ]
      },
      "WebRAImportRequestOnTemplate": {
        "title": "WebRA Import Request",
        "allOf": [
          {
            "$ref": "#/components/schemas/WebRABaseRequestOnTemplate"
          }
        ],
        "properties": {
          "workflow": {
            "enum": [
              "import"
            ]
          },
          "template": {
            "type": "object",
            "description": "Test whether the private key can be imported on the certificate",
            "properties": {
              "privateKey": {
                "type": "string",
                "nullable": true,
                "format": "PKCS#8 PEM encoded",
                "description": "The PEM-encoded private key associated with the certificate. Mandatory if target profile has escrow enabled, forbidden otherwise",
                "example": "-----BEGIN PRIVATE KEY-----..."
              }
            }
          }
        },
        "required": [
          "workflow",
          "profile"
        ]
      },
      "EstEnrollRequestOnTemplate": {
        "title": "Est Enroll Request",
        "allOf": [
          {
            "$ref": "#/components/schemas/ChallengeBaseRequestOnTemplate"
          }
        ],
        "properties": {
          "workflow": {
            "enum": [
              "enroll"
            ]
          },
          "module": {
            "description": "The module for which to return the template.",
            "type": "string",
            "enum": [
              "est"
            ]
          }
        },
        "required": [
          "workflow",
          "module",
          "profile"
        ]
      },
      "ScepEnrollRequestOnTemplate": {
        "title": "Scep Enroll Request",
        "allOf": [
          {
            "$ref": "#/components/schemas/ChallengeBaseRequestOnTemplate"
          }
        ],
        "properties": {
          "workflow": {
            "enum": [
              "enroll"
            ]
          },
          "module": {
            "description": "The module for which to return the template.",
            "type": "string",
            "enum": [
              "scep",
              "jamf"
            ]
          }
        },
        "required": [
          "workflow",
          "module",
          "profile"
        ]
      },
      "IndexedDNElementResponse": {
        "title": "IndexedDNElement",
        "description": "An element of a certificate's Distinguished Name",
        "properties": {
          "element": {
            "description": "The element type and index. Indexes start at 1! Available elements are: `cn`, `e`, `ou`, `st`, `l`, `o`, `c`, `dc`, `uid`, `serialNumber`, `surname`, `givenName`, `unstructuredAddress`, `unstructuredName`, `organizationIdentifier`, `uniqueIdentifier`, `street`, `description`, `t`",
            "pattern": "(cn|e|ou|st|l|o|c|dc|uid|serialNumber|surname|givenName|unstructuredAddress|unstructuredName|organizationIdentifier|uniqueIdentifier|street|description|t)\\.[1-9]\\d*",
            "example": "cn.1",
            "type": "string"
          },
          "type": {
            "description": "The formatted element type",
            "example": "CN",
            "nullable": true,
            "type": "string",
            "enum": [
              "CN",
              "E",
              "OU",
              "ST",
              "L",
              "O",
              "C",
              "DC",
              "UID",
              "SERIALNUMBER",
              "SURNAME",
              "GIVENNAME",
              "unstructuredAddress",
              "unstructuredName",
              "organizationIdentifier",
              "UniqueIdentifier",
              "STREET",
              "DESCRIPTION",
              "T"
            ]
          },
          "value": {
            "description": "The element value",
            "example": "John Doe",
            "type": "string",
            "nullable": true
          },
          "computationRule": {
            "allOf": [
              {
                "$ref": "#/components/schemas/ComputationRule"
              }
            ],
            "description": "Computation rule input will be evaluated and will override all other inputs",
            "nullable": true
          },
          "mandatory": {
            "description": "Whether the field is mandatory or not",
            "type": "boolean",
            "nullable": true
          },
          "editable": {
            "description": "Whether the field is editable or not for the currently authenticated user",
            "type": "boolean",
            "nullable": true
          },
          "regex": {
            "description": "A regular expression that will be used to validate the element's value",
            "type": "string",
            "nullable": true,
            "example": "^.*aregex$"
          }
        },
        "required": [
          "element"
        ]
      },
      "ListSANElementResponse": {
        "title": "SAN Element",
        "properties": {
          "type": {
            "description": "SAN type",
            "type": "string",
            "nullable": true,
            "enum": [
              "RFC822NAME",
              "DNSNAME",
              "URI",
              "IPADDRESS",
              "OTHERNAME_UPN",
              "OTHERNAME_GUID",
              "REGISTERED_ID"
            ]
          },
          "value": {
            "description": "SAN value",
            "type": "array",
            "nullable": true,
            "example": [
              "mail@evertrust.fr",
              "mail2@evertrust.fr"
            ],
            "items": {
              "type": "string"
            }
          },
          "computationRule": {
            "allOf": [
              {
                "$ref": "#/components/schemas/ComputationRule"
              }
            ],
            "description": "Computation rule input will be evaluated and will override all other inputs",
            "nullable": true
          },
          "editable": {
            "description": "Whether this SAN element is editable by the user",
            "type": "boolean",
            "nullable": true
          },
          "regex": {
            "description": "The regex that will be used to validate the SAN value",
            "type": "string",
            "nullable": true,
            "example": "^.*aregex$"
          },
          "min": {
            "description": "The minimum number of SAN elements that must be provided",
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "max": {
            "description": "The maximum number of SAN elements that can be provided",
            "type": "integer",
            "format": "int32",
            "nullable": true,
            "example": 2
          }
        },
        "required": [
          "type"
        ]
      },
      "CertificateExtensionElementResponse": {
        "title": "Certificate Extension",
        "properties": {
          "type": {
            "description": "The type of the extension element",
            "type": "string",
            "enum": [
              "ms_sid",
              "ms_template",
              "ms_template_v2"
            ]
          },
          "value": {
            "description": "The value of the extension element",
            "type": "string",
            "nullable": true
          },
          "computationRule": {
            "allOf": [
              {
                "$ref": "#/components/schemas/ComputationRule"
              }
            ],
            "description": "Computation rule input will be evaluated and will override all other inputs",
            "nullable": true
          },
          "editable": {
            "description": "Whether the extension element is editable by the requester",
            "type": "boolean",
            "nullable": true
          },
          "regex": {
            "description": "The regular expression to validate the extension element",
            "type": "string",
            "nullable": true
          },
          "mandatory": {
            "description": "Whether the extension element is mandatory to submit this request",
            "type": "boolean",
            "nullable": true
          }
        },
        "required": [
          "type"
        ]
      },
      "RequestLabelElementResponse": {
        "title": "Label",
        "properties": {
          "label": {
            "description": "The name of the label",
            "example": "BU",
            "type": "string"
          },
          "displayName": {
            "description": "The display name of the label element",
            "type": "array",
            "nullable": true,
            "items": {
              "$ref": "#/components/schemas/LocalizedString"
            }
          },
          "description": {
            "description": "The description of the label element",
            "type": "array",
            "nullable": true,
            "items": {
              "$ref": "#/components/schemas/LocalizedString"
            }
          },
          "value": {
            "description": "The value of the label element",
            "type": "string",
            "nullable": true,
            "example": "business_unit_1"
          },
          "computationRule": {
            "allOf": [
              {
                "$ref": "#/components/schemas/ComputationRule"
              }
            ],
            "description": "The computation rule of the label element",
            "nullable": true
          },
          "mandatory": {
            "description": "Whether the label element is mandatory to submit this request",
            "type": "boolean",
            "nullable": true
          },
          "editable": {
            "description": "Whether the label element is editable",
            "type": "boolean",
            "nullable": true
          },
          "regex": {
            "description": "The regex used to validate the label element",
            "type": "string",
            "nullable": true,
            "example": "^.*aregex$"
          },
          "enum": {
            "description": "The enum used to validate the label element",
            "type": "array",
            "nullable": true,
            "example": [
              "business_unit_1",
              "business_unit_2"
            ],
            "items": {
              "type": "string"
            }
          },
          "suggestions": {
            "description": "The suggestions used to recommend the label element values",
            "type": "array",
            "nullable": true,
            "example": [
              "business_unit_2",
              "business_unit_3"
            ],
            "items": {
              "type": "string"
            }
          }
        },
        "required": [
          "label"
        ]
      },
      "CertificateContactEmailElementResponse": {
        "title": "Contact email",
        "properties": {
          "value": {
            "description": "The contact email",
            "type": "string",
            "nullable": true,
            "example": "docs@evertrust.fr"
          },
          "computationRule": {
            "allOf": [
              {
                "$ref": "#/components/schemas/ComputationRule"
              }
            ],
            "description": "Computation rule input will be evaluated and will override all other inputs",
            "nullable": true
          },
          "editable": {
            "description": "Whether the contact email is editable by the requester",
            "type": "boolean",
            "nullable": true
          },
          "mandatory": {
            "description": "Whether the contact email is mandatory to submit this request",
            "type": "boolean",
            "nullable": true
          },
          "regex": {
            "description": "The regular expression to validate the contact email",
            "type": "string",
            "nullable": true,
            "example": "^.*@evertrust.fr$"
          },
          "whitelist": {
            "description": "The list of allowed contact emails",
            "type": "array",
            "nullable": true,
            "example": [
              "docs@evertrust.fr",
              "test@evertrust.fr"
            ],
            "items": {
              "type": "string"
            }
          },
          "description": {
            "description": "The description of the contact email",
            "type": "array",
            "nullable": true,
            "items": {
              "$ref": "#/components/schemas/LocalizedString"
            }
          }
        }
      },
      "CertificateOwnerElementResponse": {
        "title": "Certificate Owner",
        "properties": {
          "value": {
            "description": "The value of the owner element. This should be a principal identifier",
            "type": "string",
            "nullable": true,
            "example": "administrator"
          },
          "computationRule": {
            "allOf": [
              {
                "$ref": "#/components/schemas/ComputationRule"
              }
            ],
            "description": "Computation rule input will be evaluated and will override all other inputs",
            "nullable": true
          },
          "editable": {
            "description": "Whether the owner element is editable by the requester",
            "type": "boolean",
            "nullable": true
          },
          "mandatory": {
            "description": "Whether the owner element is mandatory to submit this request",
            "type": "boolean",
            "nullable": true
          },
          "description": {
            "description": "The description of the owner element",
            "type": "array",
            "nullable": true,
            "items": {
              "allOf": [
                {
                  "$ref": "#/components/schemas/LocalizedString"
                }
              ]
            }
          }
        }
      },
      "CertificateTeamElementResponse": {
        "title": "Certificate Team",
        "properties": {
          "value": {
            "description": "The value of the team element. This should be a team identifier",
            "type": "string",
            "nullable": true,
            "example": "webserver"
          },
          "computationRule": {
            "allOf": [
              {
                "$ref": "#/components/schemas/ComputationRule"
              }
            ],
            "description": "Computation rule input will be evaluated and will override all other inputs",
            "nullable": true
          },
          "authorized": {
            "description": "The list of authorized teams",
            "example": [
              "webserver",
              "internal_pki",
              "devops"
            ],
            "type": "array",
            "nullable": true,
            "items": {
              "type": "string"
            }
          },
          "editable": {
            "description": "Whether the team element is editable by the requester",
            "type": "boolean",
            "nullable": true
          },
          "mandatory": {
            "description": "Whether the team element is mandatory to submit this request",
            "type": "boolean",
            "nullable": true
          },
          "description": {
            "description": "The description of the team element",
            "type": "array",
            "nullable": true,
            "items": {
              "$ref": "#/components/schemas/LocalizedString"
            }
          }
        }
      },
      "CertificateMetadataElementResponse": {
        "title": "Certificate Metadata",
        "properties": {
          "metadata": {
            "description": "Technical metadata related to the certificate",
            "type": "string",
            "enum": [
              "pki_connector",
              "previous_certificate_id",
              "renewed_certificate_id",
              "automation_policy",
              "gs_order_id",
              "metapki_id",
              "digicert_id",
              "entrust_id",
              "scep_transid",
              "fcms_id",
              "gsatlas_id",
              "certeurope_id",
              "digicert_order_id"
            ]
          },
          "value": {
            "description": "The value of the metadata element",
            "type": "string",
            "nullable": true,
            "example": "stream_connector"
          },
          "editable": {
            "description": "Whether the metadata element is editable by the requester",
            "type": "boolean",
            "nullable": true
          }
        },
        "required": [
          "metadata"
        ]
      },
      "WebRAEnrollRequestTemplateResponse": {
        "title": "WebRA Enroll Request Template",
        "properties": {
          "subject": {
            "description": "List of DN elements that will be used to build the certificate's Distinguished Name",
            "type": "array",
            "nullable": true,
            "items": {
              "$ref": "#/components/schemas/IndexedDNElementResponse"
            }
          },
          "sans": {
            "description": "List of SAN elements that will be used to build the certificate's Subject Alternative Name",
            "type": "array",
            "nullable": true,
            "items": {
              "$ref": "#/components/schemas/ListSANElementResponse"
            }
          },
          "extensions": {
            "description": "Information about the certificate's extensions and how to edit them",
            "type": "array",
            "nullable": true,
            "items": {
              "$ref": "#/components/schemas/CertificateExtensionElementResponse"
            }
          },
          "labels": {
            "description": "List of labels used internally to tag and group certificates",
            "type": "array",
            "nullable": true,
            "items": {
              "$ref": "#/components/schemas/RequestLabelElementResponse"
            }
          },
          "contactEmail": {
            "description": "Information about the certificate's contact email and how to edit it",
            "nullable": true,
            "type": "object",
            "allOf": [
              {
                "$ref": "#/components/schemas/CertificateContactEmailElementResponse"
              }
            ]
          },
          "owner": {
            "description": "Information about the certificate's owner and how to edit it",
            "nullable": true,
            "type": "object",
            "allOf": [
              {
                "$ref": "#/components/schemas/CertificateOwnerElementResponse"
              }
            ]
          },
          "team": {
            "description": "Information about the certificate's team and how to edit it",
            "nullable": true,
            "type": "object",
            "allOf": [
              {
                "$ref": "#/components/schemas/CertificateTeamElementResponse"
              }
            ]
          },
          "metadata": {
            "type": "array",
            "nullable": true,
            "description": "The technical metadata for this certificate",
            "items": {
              "$ref": "#/components/schemas/CertificateMetadataElementResponse"
            }
          },
          "capabilities": {
            "description": "Describes how certificates will be enrolled on this profile",
            "nullable": true,
            "type": "object",
            "allOf": [
              {
                "$ref": "#/components/schemas/ManagedCertificateProfileCryptoPolicy"
              }
            ]
          },
          "passwordPolicy": {
            "description": "The password policy that will be used to generate the certificate's PKCS#12 password",
            "nullable": true,
            "type": "object",
            "allOf": [
              {
                "$ref": "#/components/schemas/PasswordPolicy"
              }
            ]
          }
        }
      },
      "WebRAEnrollRequestOnTemplateResponse": {
        "title": "WebRA Enroll Request",
        "properties": {
          "workflow": {
            "description": "The request workflow",
            "type": "string",
            "enum": [
              "enroll"
            ]
          },
          "module": {
            "description": "The module for which to return the template.",
            "type": "string",
            "enum": [
              "webra"
            ]
          },
          "profile": {
            "title": "Certificate profile",
            "type": "string",
            "example": "webra_centralized",
            "description": "The profile for which to return the template."
          },
          "template": {
            "allOf": [
              {
                "$ref": "#/components/schemas/WebRAEnrollRequestTemplateResponse"
              }
            ],
            "description": "The template with the constraint set on the profile"
          }
        },
        "required": [
          "workflow",
          "module",
          "profile",
          "template"
        ]
      },
      "Module": {
        "title": "Module",
        "type": "string",
        "description": "The module of the request",
        "example": "webra",
        "enum": [
          "webra",
          "est",
          "scep",
          "acme",
          "crmp",
          "acme-external",
          "intune",
          "jamf",
          "intunepkcs"
        ]
      },
      "WebRARevokeRequestTemplate": {
        "title": "WebRA Revoke Request Template",
        "properties": {
          "revocationReason": {
            "allOf": [
              {
                "$ref": "#/components/schemas/RevocationReason"
              }
            ],
            "nullable": true
          }
        }
      },
      "WebRARevokeRequestOnTemplateResponse": {
        "title": "WebRA Revoke Request",
        "properties": {
          "workflow": {
            "description": "The request workflow",
            "type": "string",
            "enum": [
              "revoke"
            ]
          },
          "module": {
            "description": "The module on which the certificate will be revoked.",
            "allOf": [
              {
                "$ref": "#/components/schemas/Module"
              }
            ]
          },
          "profile": {
            "title": "Certificate profile",
            "type": "string",
            "example": "webra_centralized",
            "description": "The profile for which to return the template."
          },
          "template": {
            "description": "The reason for revoking the certificate",
            "allOf": [
              {
                "$ref": "#/components/schemas/WebRARevokeRequestTemplate"
              }
            ]
          }
        },
        "required": [
          "workflow",
          "profile",
          "template",
          "module"
        ]
      },
      "WebRAUpdateRequestTemplateResponse": {
        "title": "WebRA Update Request Template",
        "properties": {
          "labels": {
            "description": "Information about the certificate's labels and how to edit them",
            "type": "array",
            "nullable": true,
            "items": {
              "$ref": "#/components/schemas/RequestLabelElementResponse"
            }
          },
          "metadata": {
            "description": "Information about the certificate's metadata and how to edit them",
            "type": "array",
            "nullable": true,
            "items": {
              "$ref": "#/components/schemas/CertificateMetadataElementResponse"
            }
          },
          "owner": {
            "type": "object",
            "description": "Information about the certificate's owner and how to edit it",
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/CertificateOwnerElementResponse"
              }
            ]
          },
          "team": {
            "type": "object",
            "description": "Information about the certificate's team and how to edit it",
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/CertificateTeamElementResponse"
              }
            ]
          },
          "contactEmail": {
            "type": "object",
            "description": "Information about the certificate's contact email and how to edit it",
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/CertificateContactEmailElementResponse"
              }
            ]
          }
        }
      },
      "WebRAUpdateRequestOnTemplateResponse": {
        "title": "WebRA Update Request",
        "properties": {
          "workflow": {
            "description": "The request workflow",
            "type": "string",
            "enum": [
              "update"
            ]
          },
          "module": {
            "description": "The module of the certificate to update.",
            "allOf": [
              {
                "$ref": "#/components/schemas/Module"
              }
            ]
          },
          "profile": {
            "title": "Certificate profile",
            "type": "string",
            "example": "webra_centralized",
            "description": "The profile for which to return the template."
          },
          "template": {
            "allOf": [
              {
                "$ref": "#/components/schemas/WebRAUpdateRequestTemplateResponse"
              }
            ],
            "description": "The template with the constraint set on the profile"
          }
        },
        "required": [
          "workflow",
          "module",
          "profile",
          "template"
        ]
      },
      "WebRARecoverRequestTemplate": {
        "title": "WebRA Recover Request Template",
        "properties": {
          "passwordMode": {
            "description": "The password mode of the certificate",
            "type": "string",
            "nullable": true,
            "enum": [
              "random",
              "manual"
            ]
          },
          "passwordPolicy": {
            "nullable": true,
            "type": "object",
            "description": "The selected password policy for this profile. If none is defined and the password mode is `manual`, there is no constraint on the password. In `random` mode, the `Horizon-Default` policy is used",
            "allOf": [
              {
                "$ref": "#/components/schemas/PasswordPolicy"
              }
            ]
          }
        }
      },
      "WebRARecoverRequestOnTemplateResponse": {
        "title": "WebRA Recover Request",
        "properties": {
          "workflow": {
            "description": "The request workflow",
            "type": "string",
            "enum": [
              "recover"
            ]
          },
          "profile": {
            "type": "string",
            "description": "The profile on which the recovery occurred"
          },
          "module": {
            "description": "The module of the profile.",
            "type": "string",
            "allOf": [
              {
                "$ref": "#/components/schemas/Module"
              }
            ]
          },
          "template": {
            "allOf": [
              {
                "$ref": "#/components/schemas/WebRARecoverRequestTemplate"
              }
            ],
            "description": "The cryptography policy applied during the recovery of a certificate"
          }
        },
        "required": [
          "workflow",
          "profile",
          "module",
          "template"
        ]
      },
      "WebRAMigrateRequestTemplateResponse": {
        "title": "WebRA Migrate Request Template",
        "properties": {
          "labels": {
            "type": "array",
            "nullable": true,
            "items": {
              "$ref": "#/components/schemas/RequestLabelElementResponse"
            }
          },
          "owner": {
            "type": "object",
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/CertificateOwnerElementResponse"
              }
            ]
          },
          "team": {
            "type": "object",
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/CertificateTeamElementResponse"
              }
            ]
          },
          "metadata": {
            "type": "array",
            "nullable": true,
            "items": {
              "$ref": "#/components/schemas/CertificateMetadataElementResponse"
            }
          },
          "contactEmail": {
            "type": "object",
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/CertificateContactEmailElementResponse"
              }
            ]
          }
        }
      },
      "WebRAMigrateRequestOnTemplateResponse": {
        "title": "WebRA Migrate Request",
        "properties": {
          "workflow": {
            "description": "The request workflow",
            "type": "string",
            "enum": [
              "migrate"
            ]
          },
          "module": {
            "description": "The module for which to return the template.",
            "type": "string",
            "allOf": [
              {
                "$ref": "#/components/schemas/Module"
              }
            ]
          },
          "profile": {
            "title": "Certificate profile",
            "type": "string",
            "example": "webra_centralized",
            "description": "The profile for which to return the template."
          },
          "template": {
            "allOf": [
              {
                "$ref": "#/components/schemas/WebRAMigrateRequestTemplateResponse"
              }
            ],
            "description": "The template with the constraint set on the profile"
          }
        },
        "required": [
          "workflow",
          "template",
          "profile",
          "module"
        ]
      },
      "WebRARenewRequestTemplateResponse": {
        "title": "WebRA Renew Request Template",
        "properties": {
          "capabilities": {
            "description": "Describes how certificates will be enrolled on this profile",
            "nullable": true,
            "type": "object",
            "allOf": [
              {
                "$ref": "#/components/schemas/ManagedCertificateProfileCryptoPolicy"
              }
            ]
          },
          "passwordPolicy": {
            "description": "The password policy that will be used to generate the certificate's PKCS#12 password",
            "nullable": true,
            "type": "object",
            "allOf": [
              {
                "$ref": "#/components/schemas/PasswordPolicy"
              }
            ]
          }
        }
      },
      "WebRARenewRequestOnTemplateResponse": {
        "title": "WebRA Renew Request",
        "properties": {
          "workflow": {
            "description": "The request workflow",
            "type": "string",
            "enum": [
              "renew"
            ]
          },
          "profile": {
            "type": "string",
            "description": "The profile on which the renewal occurred"
          },
          "module": {
            "description": "The module for which to return the template.",
            "type": "string",
            "enum": [
              "webra"
            ]
          },
          "template": {
            "allOf": [
              {
                "$ref": "#/components/schemas/WebRARenewRequestTemplateResponse"
              }
            ],
            "description": "The cryptography policy applied during the renewal of a certificate"
          }
        },
        "required": [
          "workflow",
          "profile",
          "template",
          "module"
        ]
      },
      "WebRAImportRequestTemplateResponse": {
        "title": "WebRA Import Request Template",
        "properties": {
          "owner": {
            "type": "object",
            "nullable": true,
            "description": "The owner for this certificate",
            "allOf": [
              {
                "$ref": "#/components/schemas/CertificateOwnerElementResponse"
              }
            ]
          },
          "team": {
            "type": "object",
            "nullable": true,
            "description": "The team for this certificate",
            "allOf": [
              {
                "$ref": "#/components/schemas/CertificateTeamElementResponse"
              }
            ]
          },
          "contactEmail": {
            "type": "object",
            "nullable": true,
            "description": "The contact email for this certificate",
            "allOf": [
              {
                "$ref": "#/components/schemas/CertificateContactEmailElementResponse"
              }
            ]
          },
          "labels": {
            "type": "array",
            "nullable": true,
            "description": "The labels for this certificate",
            "items": {
              "$ref": "#/components/schemas/RequestLabelElementResponse"
            }
          },
          "metadata": {
            "type": "array",
            "nullable": true,
            "description": "The technical metadata for this certificate",
            "items": {
              "$ref": "#/components/schemas/CertificateMetadataElementResponse"
            }
          },
          "thirdPartyData": {
            "type": "array",
            "nullable": true,
            "description": "The third party data associated with the certificate",
            "items": {
              "$ref": "#/components/schemas/ThirdPartyItem"
            }
          },
          "discoveryInfo": {
            "type": "object",
            "description": "Information about the discovery of this certificate",
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/DiscoveryInfo"
              }
            ]
          },
          "discoveryData": {
            "allOf": [
              {
                "$ref": "#/components/schemas/HostDiscoveryData"
              }
            ],
            "description": "The host discovery data associated with the certificate (discovery metadata)"
          }
        }
      },
      "WebRAImportRequestOnTemplateResponse": {
        "title": "WebRA Import Request",
        "properties": {
          "workflow": {
            "description": "The request workflow",
            "type": "string",
            "enum": [
              "import"
            ]
          },
          "module": {
            "description": "The module for which to return the template.",
            "type": "string"
          },
          "profile": {
            "title": "Certificate profile",
            "type": "string",
            "example": "webra_centralized",
            "description": "The profile for which to return the template."
          },
          "template": {
            "allOf": [
              {
                "$ref": "#/components/schemas/WebRAImportRequestTemplateResponse"
              }
            ],
            "description": "The template with the constraint set on the profile"
          }
        },
        "required": [
          "workflow",
          "profile",
          "module",
          "template"
        ]
      },
      "IndexedDNElement": {
        "title": "IndexedDNElement",
        "description": "An element of a certificate's Distinguished Name",
        "properties": {
          "element": {
            "description": "The element type and index. Indexes start at 1! Available elements are: `cn`, `e`, `ou`, `st`, `l`, `o`, `c`, `dc`, `uid`, `serialNumber`, `surname`, `givenName`, `unstructuredAddress`, `unstructuredName`, `organizationIdentifier`, `uniqueIdentifier`, `street`, `description`, `t`",
            "pattern": "(cn|e|ou|st|l|o|c|dc|uid|serialNumber|surname|givenName|unstructuredAddress|unstructuredName|organizationIdentifier|uniqueIdentifier|street|description|t)\\.[1-9]\\d*",
            "example": "cn.1",
            "type": "string"
          },
          "value": {
            "description": "The element value",
            "example": "John Doe",
            "type": "string",
            "nullable": true
          }
        },
        "required": [
          "element"
        ]
      },
      "ListSANElement": {
        "title": "SAN Element",
        "properties": {
          "type": {
            "description": "SAN type",
            "type": "string",
            "nullable": true,
            "enum": [
              "RFC822NAME",
              "DNSNAME",
              "URI",
              "IPADDRESS",
              "OTHERNAME_UPN",
              "OTHERNAME_GUID",
              "REGISTERED_ID"
            ]
          },
          "value": {
            "description": "SAN value",
            "type": "array",
            "nullable": true,
            "example": [
              "mail@evertrust.fr",
              "mail2@evertrust.fr"
            ],
            "items": {
              "type": "string"
            }
          }
        },
        "required": [
          "type"
        ]
      },
      "CertificateExtensionElement": {
        "title": "Certificate Extension",
        "properties": {
          "type": {
            "description": "The type of the extension element",
            "type": "string",
            "enum": [
              "ms_sid",
              "ms_template",
              "ms_template_v2"
            ]
          },
          "value": {
            "description": "The value of the extension element",
            "type": "string",
            "nullable": true
          }
        },
        "required": [
          "type"
        ]
      },
      "RequestLabelElement": {
        "title": "Label",
        "properties": {
          "label": {
            "description": "The name of the label",
            "example": "BU",
            "type": "string"
          },
          "value": {
            "description": "The value of the label element",
            "type": "string",
            "nullable": true,
            "example": "business_unit_1"
          }
        },
        "required": [
          "label"
        ]
      },
      "CertificateContactEmailElement": {
        "title": "Contact email",
        "properties": {
          "value": {
            "description": "The contact email",
            "type": "string",
            "nullable": true,
            "example": "docs@evertrust.fr"
          }
        }
      },
      "CertificateOwnerElement": {
        "title": "Certificate Owner",
        "properties": {
          "value": {
            "description": "The value of the owner element. This should be a principal identifier",
            "type": "string",
            "nullable": true,
            "example": "administrator"
          }
        }
      },
      "CertificateTeamElement": {
        "title": "Certificate Team",
        "properties": {
          "value": {
            "description": "The value of the team element. This should be a team identifier",
            "type": "string",
            "nullable": true,
            "example": "webserver"
          }
        }
      },
      "EstEnrollRequestTemplate": {
        "title": "EST Enroll Request Template",
        "properties": {
          "subject": {
            "description": "List of DN elements that will be used to build the certificate's Distinguished Name",
            "type": "array",
            "nullable": true,
            "items": {
              "$ref": "#/components/schemas/IndexedDNElement"
            }
          },
          "sans": {
            "description": "List of SAN elements that will be used to build the certificate's Subject Alternative Name",
            "type": "array",
            "nullable": true,
            "items": {
              "$ref": "#/components/schemas/ListSANElement"
            }
          },
          "extensions": {
            "description": "Information about the certificate's extensions and how to edit them",
            "type": "array",
            "nullable": true,
            "items": {
              "$ref": "#/components/schemas/CertificateExtensionElement"
            }
          },
          "labels": {
            "description": "List of labels used internally to tag and group certificates",
            "type": "array",
            "nullable": true,
            "items": {
              "$ref": "#/components/schemas/RequestLabelElement"
            }
          },
          "contactEmail": {
            "description": "Information about the certificate's contact email and how to edit it",
            "type": "object",
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/CertificateContactEmailElement"
              }
            ]
          },
          "owner": {
            "description": "Information about the certificate's owner and how to edit it",
            "type": "object",
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/CertificateOwnerElement"
              }
            ]
          },
          "team": {
            "description": "Information about the certificate's team and how to edit it",
            "type": "object",
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/CertificateTeamElement"
              }
            ]
          }
        }
      },
      "EstEnrollRequestTemplateResponse": {
        "title": "EST Enroll Request Template",
        "allOf": [
          {
            "$ref": "#/components/schemas/EstEnrollRequestTemplate"
          }
        ],
        "properties": {
          "dnWhitelist": {
            "description": "DN whitelist is enabled on this request",
            "type": "boolean",
            "nullable": true
          }
        }
      },
      "EstEnrollRequestOnTemplateResponse": {
        "title": "Est Enroll Request",
        "allOf": [
          {
            "$ref": "#/components/schemas/ChallengeBaseRequestOnTemplate"
          }
        ],
        "properties": {
          "workflow": {
            "enum": [
              "enroll"
            ]
          },
          "module": {
            "enum": [
              "est"
            ]
          },
          "template": {
            "allOf": [
              {
                "$ref": "#/components/schemas/EstEnrollRequestTemplateResponse"
              }
            ],
            "description": "The template with the constraint set on the profile"
          }
        },
        "required": [
          "workflow",
          "module",
          "profile",
          "template"
        ]
      },
      "ScepEnrollRequestTemplate": {
        "title": "SCEP Enroll Request Template",
        "properties": {
          "subject": {
            "description": "List of DN elements that will be used to build the certificate's Distinguished Name",
            "type": "array",
            "nullable": true,
            "items": {
              "$ref": "#/components/schemas/IndexedDNElement"
            }
          },
          "sans": {
            "description": "List of SAN elements that will be used to build the certificate's Subject Alternative Name",
            "type": "array",
            "nullable": true,
            "items": {
              "$ref": "#/components/schemas/ListSANElement"
            }
          },
          "extensions": {
            "description": "Information about the certificate's extensions and how to edit them",
            "type": "array",
            "nullable": true,
            "items": {
              "$ref": "#/components/schemas/CertificateExtensionElement"
            }
          },
          "labels": {
            "description": "List of labels used internally to tag and group certificates",
            "type": "array",
            "nullable": true,
            "items": {
              "$ref": "#/components/schemas/RequestLabelElement"
            }
          },
          "contactEmail": {
            "description": "Information about the certificate's contact email and how to edit it",
            "nullable": true,
            "type": "object",
            "allOf": [
              {
                "$ref": "#/components/schemas/CertificateContactEmailElement"
              }
            ]
          },
          "owner": {
            "description": "Information about the certificate's owner and how to edit it",
            "nullable": true,
            "type": "object",
            "allOf": [
              {
                "$ref": "#/components/schemas/CertificateOwnerElement"
              }
            ]
          },
          "team": {
            "description": "Information about the certificate's team and how to edit it",
            "nullable": true,
            "type": "object",
            "allOf": [
              {
                "$ref": "#/components/schemas/CertificateTeamElement"
              }
            ]
          }
        }
      },
      "ScepEnrollRequestTemplateResponse": {
        "title": "SCEP Enroll Request Template",
        "allOf": [
          {
            "$ref": "#/components/schemas/ScepEnrollRequestTemplate"
          }
        ],
        "properties": {
          "dnWhitelist": {
            "description": "DN whitelist is enabled on this request",
            "type": "boolean",
            "nullable": true
          }
        }
      },
      "ScepEnrollRequestOnTemplateResponse": {
        "title": "Scep Enroll Request",
        "allOf": [
          {
            "$ref": "#/components/schemas/ChallengeBaseRequestOnTemplate"
          }
        ],
        "properties": {
          "workflow": {
            "enum": [
              "enroll"
            ]
          },
          "module": {
            "enum": [
              "scep",
              "jamf"
            ]
          },
          "template": {
            "allOf": [
              {
                "$ref": "#/components/schemas/ScepEnrollRequestTemplateResponse"
              }
            ],
            "description": "The template with the constraint set on the profile"
          }
        },
        "required": [
          "workflow",
          "module",
          "profile",
          "template"
        ]
      },
      "Req002": {
        "title": "REQ-002",
        "description": "Invalid Request",
        "allOf": [
          {
            "$ref": "#/components/schemas/BasicError"
          }
        ],
        "properties": {
          "error": {
            "enum": [
              "REQ-002"
            ]
          },
          "message": {
            "enum": [
              "Invalid Request"
            ]
          },
          "title": {
            "enum": [
              "Invalid Request"
            ]
          }
        },
        "required": [
          "error",
          "message",
          "title"
        ]
      },
      "Req010": {
        "title": "REQ-010",
        "description": "Profile does not exist or is disabled",
        "allOf": [
          {
            "$ref": "#/components/schemas/BasicError"
          }
        ],
        "properties": {
          "error": {
            "enum": [
              "REQ-010"
            ]
          },
          "message": {
            "enum": [
              "Profile does not exist or is disabled"
            ]
          },
          "title": {
            "enum": [
              "Profile does not exist or is disabled"
            ]
          }
        },
        "required": [
          "error",
          "message",
          "title"
        ]
      },
      "WebraImport001": {
        "title": "WEBRA-IMPORT-001",
        "description": "Invalid request",
        "allOf": [
          {
            "$ref": "#/components/schemas/BasicError"
          }
        ],
        "properties": {
          "error": {
            "enum": [
              "WEBRA-IMPORT-001"
            ]
          },
          "message": {
            "enum": [
              "Invalid request"
            ]
          },
          "title": {
            "enum": [
              "Invalid request"
            ]
          }
        },
        "required": [
          "error",
          "message",
          "title"
        ]
      },
      "Req007": {
        "title": "REQ-007",
        "description": "Unauthorized Workflow",
        "allOf": [
          {
            "$ref": "#/components/schemas/BasicError"
          }
        ],
        "properties": {
          "error": {
            "enum": [
              "REQ-007"
            ]
          },
          "message": {
            "enum": [
              "Unauthorized Workflow"
            ]
          },
          "title": {
            "enum": [
              "Unauthorized Workflow"
            ]
          }
        },
        "required": [
          "error",
          "message",
          "title"
        ]
      },
      "CertificateMetadataElement": {
        "title": "Certificate Metadata",
        "properties": {
          "metadata": {
            "description": "Technical metadata related to the certificate",
            "type": "string",
            "enum": [
              "pki_connector",
              "previous_certificate_id",
              "renewed_certificate_id",
              "automation_policy",
              "gs_order_id",
              "metapki_id",
              "digicert_id",
              "entrust_id",
              "scep_transid",
              "fcms_id",
              "gsatlas_id",
              "certeurope_id",
              "digicert_order_id"
            ]
          },
          "value": {
            "description": "The value of the metadata element",
            "type": "string",
            "nullable": true,
            "example": "stream_connector"
          }
        },
        "required": [
          "metadata"
        ]
      },
      "WebRAEnrollRequestTemplate": {
        "title": "WebRA Enroll Request Template",
        "properties": {
          "subject": {
            "description": "List of DN elements that will be used to build the certificate's Distinguished Name",
            "type": "array",
            "nullable": true,
            "items": {
              "$ref": "#/components/schemas/IndexedDNElement"
            }
          },
          "sans": {
            "description": "List of SAN elements that will be used to build the certificate's Subject Alternative Name",
            "type": "array",
            "nullable": true,
            "items": {
              "$ref": "#/components/schemas/ListSANElement"
            }
          },
          "extensions": {
            "description": "Information about the certificate's extensions and how to edit them",
            "type": "array",
            "nullable": true,
            "items": {
              "$ref": "#/components/schemas/CertificateExtensionElement"
            }
          },
          "labels": {
            "description": "List of labels used internally to tag and group certificates",
            "type": "array",
            "nullable": true,
            "items": {
              "$ref": "#/components/schemas/RequestLabelElement"
            }
          },
          "contactEmail": {
            "description": "Information about the certificate's contact email and how to edit it",
            "nullable": true,
            "type": "object",
            "allOf": [
              {
                "$ref": "#/components/schemas/CertificateContactEmailElement"
              }
            ]
          },
          "owner": {
            "description": "Information about the certificate's owner and how to edit it",
            "nullable": true,
            "type": "object",
            "allOf": [
              {
                "$ref": "#/components/schemas/CertificateOwnerElement"
              }
            ]
          },
          "team": {
            "description": "Information about the certificate's team and how to edit it",
            "nullable": true,
            "type": "object",
            "allOf": [
              {
                "$ref": "#/components/schemas/CertificateTeamElement"
              }
            ]
          },
          "metadata": {
            "type": "array",
            "nullable": true,
            "description": "The technical metadata for this certificate",
            "items": {
              "$ref": "#/components/schemas/CertificateMetadataElement"
            }
          },
          "keyType": {
            "description": "The type of key that will be used to generate the certificate, if in centralized mode",
            "type": "string",
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/KeyType"
              }
            ]
          },
          "csr": {
            "description": "If decentralized enrollment is enabled, this field will contain the CSR that will be used to generate the certificate",
            "type": "string",
            "nullable": true,
            "example": "-----BEGIN CSR----- ..."
          }
        }
      },
      "WebRAEnrollRequestBase": {
        "properties": {
          "module": {
            "description": "The module that will be used to process this request. For a WebRA request, this is always `webra`",
            "type": "string",
            "enum": [
              "webra"
            ]
          },
          "workflow": {
            "description": "What this request will do. For an enrollment request, this is always `enroll`",
            "type": "string",
            "enum": [
              "enroll"
            ]
          },
          "template": {
            "description": "The user-data that will be used to generate the certificate",
            "allOf": [
              {
                "$ref": "#/components/schemas/WebRAEnrollRequestTemplate"
              }
            ]
          },
          "dryRun": {
            "description": "If true, the request is validated, but will not result in an enrollment",
            "type": "boolean",
            "nullable": true,
            "default": false
          }
        }
      },
      "WebRAEnrollRequestOnSubmit": {
        "title": "WebRA Enroll Request",
        "allOf": [
          {
            "$ref": "#/components/schemas/WebRAEnrollRequestBase"
          }
        ],
        "properties": {
          "profile": {
            "type": "string",
            "description": "The WebRA profile name"
          },
          "password": {
            "description": "The password to decrypt the PKCS12 file. Must be set if password mode is `manual`",
            "allOf": [
              {
                "$ref": "#/components/schemas/SecretString"
              }
            ]
          },
          "requesterComment": {
            "type": "string",
            "description": "Free-text field editable by the requester to provider more context on the request",
            "example": "I need this certificate to access the VPN.",
            "nullable": true
          }
        },
        "required": [
          "module",
          "profile",
          "template",
          "workflow"
        ]
      },
      "WebRARevokeRequestBase": {
        "properties": {
          "workflow": {
            "description": "What this request will do. For a revocation request, this is always `revoke`",
            "type": "string",
            "enum": [
              "revoke"
            ]
          },
          "template": {
            "description": "The user-data that will be used to revoke the certificate",
            "allOf": [
              {
                "$ref": "#/components/schemas/WebRARevokeRequestTemplate"
              }
            ]
          },
          "dryRun": {
            "description": "If true, the request is validated, but will not result in an enrollment",
            "type": "boolean",
            "nullable": true,
            "default": false
          }
        }
      },
      "WebRARevokeRequestOnSubmit": {
        "title": "WebRA Revoke Request",
        "allOf": [
          {
            "$ref": "#/components/schemas/WebRARevokeRequestBase"
          }
        ],
        "properties": {
          "certificateId": {
            "description": "The id of the certificate to revoke",
            "nullable": true,
            "type": "string",
            "allOf": [
              {
                "$ref": "#/components/schemas/Id"
              }
            ]
          },
          "certificatePem": {
            "description": "The PEM encoded certificate to revoke",
            "nullable": true,
            "type": "string",
            "example": "-----BEGIN CERTIFICATE----- ..."
          }
        },
        "required": [
          "template",
          "workflow"
        ]
      },
      "WebRAUpdateRequestTemplate": {
        "title": "WebRA Update Request Template",
        "properties": {
          "labels": {
            "description": "Information about the certificate's labels and how to edit them",
            "type": "array",
            "nullable": true,
            "items": {
              "$ref": "#/components/schemas/RequestLabelElement"
            }
          },
          "metadata": {
            "description": "Information about the certificate's metadata and how to edit them",
            "type": "array",
            "nullable": true,
            "items": {
              "$ref": "#/components/schemas/CertificateMetadataElement"
            }
          },
          "owner": {
            "type": "object",
            "description": "Information about the certificate's owner and how to edit it",
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/CertificateOwnerElement"
              }
            ]
          },
          "team": {
            "type": "object",
            "description": "Information about the certificate's team and how to edit it",
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/CertificateTeamElement"
              }
            ]
          },
          "contactEmail": {
            "type": "object",
            "description": "Information about the certificate's contact email and how to edit it",
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/CertificateContactEmailElement"
              }
            ]
          }
        }
      },
      "WebRAUpdateRequestBase": {
        "properties": {
          "workflow": {
            "description": "What this request will do. For an update request, this is always `update`",
            "type": "string",
            "enum": [
              "update"
            ]
          },
          "template": {
            "description": "The user-data that will be used to update the certificate",
            "allOf": [
              {
                "$ref": "#/components/schemas/WebRAUpdateRequestTemplate"
              }
            ]
          },
          "dryRun": {
            "description": "If true, the request is validated, but will not result in an enrollment",
            "type": "boolean",
            "nullable": true,
            "default": false
          }
        }
      },
      "WebRAUpdateRequestOnSubmit": {
        "title": "WebRA Update Request",
        "allOf": [
          {
            "$ref": "#/components/schemas/WebRAUpdateRequestBase"
          }
        ],
        "properties": {
          "certificateId": {
            "description": "The id of the certificate to update",
            "nullable": true,
            "type": "string",
            "allOf": [
              {
                "$ref": "#/components/schemas/Id"
              }
            ]
          },
          "certificatePem": {
            "description": "The PEM encoded certificate to update",
            "nullable": true,
            "type": "string",
            "example": "-----BEGIN CERTIFICATE----- ..."
          },
          "requesterComment": {
            "type": "string",
            "description": "Free-text field editable by the requester to provider more context on the request",
            "example": "I need this certificate to access the VPN.",
            "nullable": true
          }
        },
        "required": [
          "template",
          "workflow"
        ]
      },
      "WebRARecoverRequestBase": {
        "properties": {
          "workflow": {
            "description": "What this request will do. For a recovery request, this is always `recover`",
            "enum": [
              "recover"
            ]
          },
          "dryRun": {
            "description": "If true, the request is validated, but will not result in an enrollment",
            "type": "boolean",
            "nullable": true,
            "default": false
          }
        }
      },
      "WebRARecoverRequestOnSubmit": {
        "title": "WebRA Recover Request",
        "allOf": [
          {
            "$ref": "#/components/schemas/WebRARecoverRequestBase"
          }
        ],
        "properties": {
          "password": {
            "description": "The password to decrypt the PKCS12 file. Must be set if password mode is `manual`",
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/SecretString"
              }
            ]
          },
          "certificateId": {
            "description": "The id of the certificate to renew",
            "nullable": true,
            "type": "string",
            "allOf": [
              {
                "$ref": "#/components/schemas/Id"
              }
            ]
          },
          "certificatePem": {
            "description": "The PEM encoded certificate to renew",
            "nullable": true,
            "type": "string",
            "example": "-----BEGIN CERTIFICATE----- ..."
          },
          "requesterComment": {
            "type": "string",
            "description": "Free-text field editable by the requester to provider more context on the request",
            "example": "I need this certificate to access the VPN.",
            "nullable": true
          }
        },
        "required": [
          "workflow"
        ]
      },
      "WebRAMigrateRequestTemplate": {
        "title": "WebRA Migrate Request Template",
        "properties": {
          "labels": {
            "type": "array",
            "nullable": true,
            "items": {
              "$ref": "#/components/schemas/RequestLabelElement"
            }
          },
          "owner": {
            "type": "object",
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/CertificateOwnerElement"
              }
            ]
          },
          "team": {
            "type": "object",
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/CertificateTeamElement"
              }
            ]
          },
          "metadata": {
            "type": "array",
            "nullable": true,
            "items": {
              "$ref": "#/components/schemas/CertificateMetadataElement"
            }
          },
          "contactEmail": {
            "type": "object",
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/CertificateContactEmailElement"
              }
            ]
          }
        }
      },
      "WebRAMigrateRequestBase": {
        "properties": {
          "module": {
            "description": "The module that will be used to process this request. For a WebRA request, this is always `webra`",
            "type": "string",
            "enum": [
              "webra"
            ]
          },
          "workflow": {
            "description": "What this request will do. For a migration request, this is always `migrate`",
            "type": "string",
            "enum": [
              "migrate"
            ]
          },
          "template": {
            "description": "The user-data that will be used to migrate the certificate",
            "allOf": [
              {
                "$ref": "#/components/schemas/WebRAMigrateRequestTemplate"
              }
            ]
          },
          "dryRun": {
            "description": "If true, the request is validated, but will not result in a migration",
            "type": "boolean",
            "nullable": true,
            "default": false
          }
        }
      },
      "WebRAMigrateRequestOnSubmit": {
        "title": "WebRA Migrate Request",
        "allOf": [
          {
            "$ref": "#/components/schemas/WebRAMigrateRequestBase"
          }
        ],
        "properties": {
          "certificateId": {
            "description": "The id of the certificate to renew",
            "nullable": true,
            "type": "string",
            "allOf": [
              {
                "$ref": "#/components/schemas/Id"
              }
            ]
          },
          "certificatePem": {
            "description": "The PEM encoded certificate to renew",
            "nullable": true,
            "type": "string",
            "example": "-----BEGIN CERTIFICATE----- ..."
          },
          "profile": {
            "type": "string",
            "description": "The target profile name"
          },
          "requesterComment": {
            "type": "string",
            "description": "Free-text field editable by the requester to provider more context on the request",
            "example": "I need this certificate to access the VPN.",
            "nullable": true
          }
        },
        "required": [
          "template",
          "workflow",
          "module",
          "profile"
        ]
      },
      "WebRARenewRequestTemplate": {
        "title": "WebRA Renew Request Template",
        "properties": {
          "csr": {
            "description": "The CSR used to renew the certificate, if in decentralized mode",
            "type": "string",
            "nullable": true,
            "example": "-----BEGIN CSR----- ..."
          },
          "keyType": {
            "description": "The key type of the certificate, if in centralized mode",
            "allOf": [
              {
                "$ref": "#/components/schemas/KeyType"
              }
            ],
            "nullable": true
          }
        }
      },
      "WebRARenewRequestBase": {
        "properties": {
          "module": {
            "description": "The module that will be used to process this request. For a WebRA request, this is always `webra`",
            "type": "string",
            "enum": [
              "webra"
            ]
          },
          "workflow": {
            "description": "What this request will do. For a renewal request, this is always `renew`",
            "enum": [
              "renew"
            ]
          },
          "template": {
            "description": "The user-data that will be used to generate the certificate",
            "allOf": [
              {
                "$ref": "#/components/schemas/WebRARenewRequestTemplate"
              }
            ]
          },
          "dryRun": {
            "description": "If true, the request is validated, but will not result in an enrollment",
            "type": "boolean",
            "nullable": true,
            "default": false
          }
        }
      },
      "WebRARenewRequestOnSubmit": {
        "title": "WebRA Renew Request",
        "allOf": [
          {
            "$ref": "#/components/schemas/WebRARenewRequestBase"
          }
        ],
        "properties": {
          "password": {
            "description": "The password to decrypt the PKCS12 file. Must be set if password mode is `manual`",
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/SecretString"
              }
            ]
          },
          "certificateId": {
            "description": "The id of the certificate to renew",
            "nullable": true,
            "type": "string",
            "allOf": [
              {
                "$ref": "#/components/schemas/Id"
              }
            ]
          },
          "certificatePem": {
            "description": "The PEM encoded certificate to renew",
            "nullable": true,
            "type": "string",
            "example": "-----BEGIN CERTIFICATE----- ..."
          },
          "requesterComment": {
            "type": "string",
            "description": "Free-text field editable by the requester to provider more context on the request",
            "example": "I need this certificate to access the VPN.",
            "nullable": true
          }
        },
        "required": [
          "workflow",
          "module"
        ]
      },
      "WebRAImportRequestTemplate": {
        "title": "WebRA Import Request Template",
        "properties": {
          "owner": {
            "type": "object",
            "nullable": true,
            "description": "The owner for this certificate",
            "allOf": [
              {
                "$ref": "#/components/schemas/CertificateOwnerElement"
              }
            ]
          },
          "team": {
            "type": "object",
            "nullable": true,
            "description": "The team for this certificate",
            "allOf": [
              {
                "$ref": "#/components/schemas/CertificateTeamElement"
              }
            ]
          },
          "contactEmail": {
            "type": "object",
            "nullable": true,
            "description": "The contact email for this certificate",
            "allOf": [
              {
                "$ref": "#/components/schemas/CertificateContactEmailElement"
              }
            ]
          },
          "labels": {
            "type": "array",
            "nullable": true,
            "description": "The labels for this certificate",
            "items": {
              "$ref": "#/components/schemas/RequestLabelElement"
            }
          },
          "metadata": {
            "type": "array",
            "nullable": true,
            "description": "The technical metadata for this certificate",
            "items": {
              "$ref": "#/components/schemas/CertificateMetadataElement"
            }
          },
          "thirdPartyData": {
            "type": "array",
            "nullable": true,
            "description": "The third party data associated with the certificate",
            "items": {
              "$ref": "#/components/schemas/ThirdPartyItem"
            }
          },
          "discoveryInfo": {
            "type": "object",
            "description": "Information about the discovery of this certificate",
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/DiscoveryInfo"
              }
            ]
          },
          "discoveryData": {
            "allOf": [
              {
                "$ref": "#/components/schemas/HostDiscoveryData"
              }
            ],
            "description": "The host discovery data associated with the certificate (discovery metadata)"
          },
          "privateKey": {
            "type": "string",
            "nullable": true,
            "format": "PKCS#8 PEM encoded",
            "description": "The PEM-encoded private key associated with the certificate. Mandatory if target profile has escrow enabled, forbidden otherwise",
            "example": "-----BEGIN PRIVATE KEY-----..."
          }
        }
      },
      "WebRAImportRequestBase": {
        "properties": {
          "module": {
            "description": "The module that will be used to process this request. For a WebRA request, this is always `webra`",
            "type": "string",
            "enum": [
              "webra"
            ]
          },
          "workflow": {
            "description": "What this request will do. For an import request, this is always `import`",
            "enum": [
              "import"
            ]
          },
          "template": {
            "description": "The user-data that will be added on certificate import",
            "allOf": [
              {
                "$ref": "#/components/schemas/WebRAImportRequestTemplate"
              }
            ]
          },
          "dryRun": {
            "description": "If true, the request is validated, but will not result in an enrollment",
            "type": "boolean",
            "nullable": true,
            "default": false
          }
        }
      },
      "WebRAImportRequestOnSubmit": {
        "title": "WebRA Import Request",
        "allOf": [
          {
            "$ref": "#/components/schemas/WebRAImportRequestBase"
          }
        ],
        "properties": {
          "profile": {
            "type": "string",
            "description": "The profile name on which to import",
            "nullable": true
          },
          "certificateId": {
            "description": "The id of the certificate to import",
            "nullable": true,
            "type": "string",
            "allOf": [
              {
                "$ref": "#/components/schemas/Id"
              }
            ]
          },
          "certificatePem": {
            "description": "The PEM encoded certificate to import",
            "nullable": true,
            "type": "string",
            "example": "-----BEGIN CERTIFICATE----- ..."
          },
          "requesterComment": {
            "type": "string",
            "description": "Free-text field editable by the requester to provider more context on the request",
            "example": "I need this certificate to access the VPN.",
            "nullable": true
          }
        },
        "required": [
          "workflow",
          "module"
        ]
      },
      "EstEnrollRequestBase": {
        "properties": {
          "module": {
            "description": "The module that will be used to process this request. For an EST request, this is always `est`",
            "type": "string",
            "enum": [
              "est"
            ]
          },
          "workflow": {
            "description": "What this request will do. For an enrollment request, this is always `enroll`",
            "type": "string",
            "enum": [
              "enroll"
            ]
          },
          "template": {
            "description": "The user-data that will be used to generate the certificate",
            "allOf": [
              {
                "$ref": "#/components/schemas/EstEnrollRequestTemplate"
              }
            ]
          },
          "dryRun": {
            "description": "If true, the request is validated, but will not result in an enrollment",
            "type": "boolean",
            "nullable": true,
            "default": false
          }
        }
      },
      "EstEnrollRequestOnSubmit": {
        "title": "EST Enroll Request",
        "allOf": [
          {
            "$ref": "#/components/schemas/EstEnrollRequestBase"
          }
        ],
        "properties": {
          "profile": {
            "type": "string",
            "description": "The EST profile name"
          },
          "dn": {
            "description": "Fill the DN if DN whitelist is enabled. Contains the DN of the challenge",
            "type": "string"
          },
          "password": {
            "description": "The password of the challenge. Must be set if password mode is `manual`",
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/SecretString"
              }
            ]
          },
          "requesterComment": {
            "type": "string",
            "description": "Free-text field editable by the requester to provider more context on the request",
            "example": "I need this certificate to access the VPN.",
            "nullable": true
          }
        },
        "required": [
          "module",
          "profile",
          "workflow"
        ]
      },
      "ScepEnrollRequestBase": {
        "properties": {
          "module": {
            "description": "The module that will be used to process this request. For a SCEP request, this is always `scep`",
            "type": "string",
            "enum": [
              "scep"
            ]
          },
          "workflow": {
            "description": "What this request will do. For an enrollment request, this is always `enroll`",
            "type": "string",
            "enum": [
              "enroll"
            ]
          },
          "template": {
            "description": "The user-data that will be used to generate the challenge",
            "allOf": [
              {
                "$ref": "#/components/schemas/ScepEnrollRequestTemplate"
              }
            ]
          },
          "dryRun": {
            "description": "If true, the request is validated, but will not result in an enrollment",
            "type": "boolean",
            "nullable": true,
            "default": false
          }
        }
      },
      "ScepEnrollRequestOnSubmit": {
        "title": "SCEP Enroll Request",
        "allOf": [
          {
            "$ref": "#/components/schemas/ScepEnrollRequestBase"
          }
        ],
        "properties": {
          "profile": {
            "description": "The SCEP profile name",
            "type": "string"
          },
          "dn": {
            "description": "Fill the DN if DN whitelist is enabled. Contains the DN of the challenge",
            "type": "string"
          },
          "password": {
            "description": "The password of the challenge. Must be set if password mode is `manual`",
            "allOf": [
              {
                "$ref": "#/components/schemas/SecretString"
              }
            ]
          },
          "requesterComment": {
            "type": "string",
            "description": "Free-text field editable by the requester to provider more context on the request",
            "example": "I need this certificate to access the VPN.",
            "nullable": true
          }
        },
        "required": [
          "module",
          "profile",
          "workflow"
        ]
      },
      "RequestStatus": {
        "title": "Request Status",
        "description": "The request status",
        "readOnly": true,
        "type": "string",
        "enum": [
          "denied",
          "approved",
          "pending",
          "canceled",
          "completed"
        ]
      },
      "HolderId": {
        "title": "Holder ID",
        "example": "453b0d7ac28e079addad4fff633a9b06cdfe2d5626e12cefffbebb462e261a27",
        "type": "string",
        "description": "An ID to identify the holder based on DN and SANs of the certificate"
      },
      "RequestBaseResponse": {
        "properties": {
          "_id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/Id"
              }
            ]
          },
          "module": {
            "type": "string"
          },
          "workflow": {
            "type": "string"
          },
          "status": {
            "$ref": "#/components/schemas/RequestStatus"
          },
          "profile": {
            "description": "The associated profile name",
            "type": "string",
            "example": "DefaultProfile"
          },
          "dn": {
            "description": "Certificate's Distinguished Name",
            "example": "CN=John Doe,OU=IT,O=Example,C=US",
            "type": "string"
          },
          "requester": {
            "description": "The requester's principal identifier",
            "example": "jdoe",
            "type": "string",
            "nullable": true
          },
          "team": {
            "description": "The team that will be assigned to this certificate. Teams are used to link certificates to people and to assign permissions to them",
            "example": "IT",
            "type": "string",
            "nullable": true
          },
          "approver": {
            "description": "The approver's principal identifier",
            "example": "jdoe",
            "type": "string",
            "nullable": true
          },
          "contact": {
            "description": "The request's contact email",
            "example": "jdoe@example.org",
            "type": "string",
            "nullable": true
          },
          "requesterComment": {
            "type": "string",
            "description": "Free-text field editable by the requester to provider more context on the request",
            "example": "I need this certificate to access the VPN.",
            "nullable": true
          },
          "approverComment": {
            "description": "Free-text field editable by the approver to provider more context on the request",
            "example": "This certificate is for the VPN.",
            "type": "string",
            "nullable": true
          },
          "registrationDate": {
            "description": "The date the request was created. This is set by the system",
            "type": "integer",
            "format": "epoch",
            "example": 1683021380000
          },
          "lastModificationDate": {
            "description": "The date the request was last modified. This is set by the system",
            "type": "integer",
            "format": "epoch",
            "example": 1683021380000
          },
          "expirationDate": {
            "description": "The date the request will expire. This is set by the system",
            "type": "integer",
            "format": "epoch",
            "example": 1683024980000
          },
          "removeAt": {
            "description": "The date the requested will be deleted. This is set by the system",
            "type": "integer",
            "format": "epoch",
            "example": 1685616980640
          },
          "triggerResults": {
            "description": "The result of the execution of triggers on this request",
            "type": "array",
            "nullable": true,
            "items": {
              "$ref": "#/components/schemas/TriggerResult"
            }
          },
          "holderId": {
            "description": "The computed holderID for this request. This is set by the system based on DN and SANs",
            "allOf": [
              {
                "$ref": "#/components/schemas/HolderId"
              }
            ]
          },
          "globalHolderIdCount": {
            "description": "The number of certificates that are currently valid and have the same DN and SANs in the Horizon database",
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "profileHolderIdCount": {
            "description": "The number of certificates that are currently valid and have the same DN and SANs in the same enrollment profile",
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "labels": {
            "description": "The labels set in this request",
            "type": "array",
            "nullable": true,
            "items": {
              "$ref": "#/components/schemas/LabelData"
            }
          },
          "metadata": {
            "description": "The metadata set in this request",
            "type": "array",
            "nullable": true,
            "items": {
              "$ref": "#/components/schemas/CertificateMetadata"
            }
          },
          "dryRun": {
            "description": "If true, the request is validated, but will not result in an enrollment",
            "type": "boolean",
            "nullable": true,
            "default": false
          }
        }
      },
      "Certificate": {
        "type": "object",
        "title": "Certificate",
        "properties": {
          "_id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/Id"
              }
            ]
          },
          "metadata": {
            "description": "The certificate's technical metadata used internally",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CertificateMetadata"
            }
          },
          "notAfter": {
            "description": "The certificate's expiration date in milliseconds since the epoch",
            "format": "epoch",
            "type": "integer",
            "example": 1609459200000
          },
          "thumbprint": {
            "description": "The certificate's thumbprint",
            "type": "string",
            "example": "30f727ea932acc3e7ec4716a7c1d1d571a0b9124afbe1d1d81a205562164c69c"
          },
          "revocationDate": {
            "description": "The certificate's revocation date in milliseconds since the epoch. This field is only present if the certificate is revoked",
            "nullable": true,
            "format": "epoch",
            "type": "integer"
          },
          "certificate": {
            "description": "The certificate's PEM-encoded content",
            "type": "string",
            "example": "-----BEGIN CERTIFICATE-----\nMI....\n-----END CERTIFICATE-----"
          },
          "dn": {
            "description": "The certificate's Distinguished Name",
            "type": "string",
            "example": "CN=Test Certificate,OU=Test,O=Test,L=Test,ST=Test,C=US"
          },
          "grades": {
            "description": "The certificate's grades for the enabled grading policies",
            "nullable": true,
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/GradingPolicyResult"
            }
          },
          "revoked": {
            "description": "Whether the certificate is revoked",
            "type": "boolean"
          },
          "escrowed": {
            "description": "Whether the certificate is escrowed",
            "type": "boolean"
          },
          "issuer": {
            "description": "The certificate's issuer Distinguished Name",
            "example": "CN=Test CA,OU=Test,O=Test,L=Test,ST=Test,C=US",
            "type": "string"
          },
          "notBefore": {
            "description": "The certificate's start date in milliseconds since the epoch",
            "example": 1609459200000,
            "format": "epoch",
            "type": "integer"
          },
          "crlSynchronized": {
            "description": "Whether the certificate's revocation status is synchronized with a CRL",
            "nullable": true,
            "type": "boolean"
          },
          "selfSigned": {
            "description": "Whether the certificate is self-signed",
            "type": "boolean",
            "example": false
          },
          "discoveredTrusted": {
            "description": "If the certificate was discovered and is found to be issued by an existing trusted CA, this field will be set to true. If the certificate was discovered and is not found to be issued by an existing trusted CA, this field will be set to false. If the certificate was not discovered, this field will be null",
            "nullable": true,
            "type": "boolean"
          },
          "keyType": {
            "description": "The certificate's key type",
            "allOf": [
              {
                "$ref": "#/components/schemas/KeyType"
              }
            ]
          },
          "thirdPartyData": {
            "description": "The certificate's information about synchronization with Horizon supported third parties",
            "nullable": true,
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ThirdPartyItem"
            }
          },
          "owner": {
            "description": "The certificate's owner. This is a reference to a local identity identifier",
            "nullable": true,
            "type": "string"
          },
          "publicKeyThumbprint": {
            "description": "The certificate's public key thumbprint",
            "example": "4d0faebaeaa595aba5fafe6040fa8a2143b019b59a2b25ced3b2fb7393ee10e2",
            "type": "string"
          },
          "contactEmail": {
            "description": "The certificate's contact email. It will be used to send notifications about the certificate's expiration and revocation",
            "nullable": true,
            "type": "string",
            "format": "email"
          },
          "module": {
            "description": "The certificate's module",
            "example": "webra",
            "type": "string"
          },
          "profile": {
            "description": "The certificate's profile",
            "example": "DefaultProfile",
            "nullable": true,
            "type": "string"
          },
          "team": {
            "description": "The certificate's team. This is a reference to a team identifier. It will be used to determine the certificate's permissions and send notifications",
            "nullable": true,
            "type": "string"
          },
          "holderId": {
            "description": "The certificate's holder ID. This is a computed field that is used to count how many similar certificates are in use simultaneously by the same holder",
            "example": "9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08",
            "type": "string"
          },
          "labels": {
            "description": "The certificate's labels",
            "nullable": true,
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/LabelData"
            }
          },
          "discoveryInfo": {
            "description": "A list of metadata containing information on how and when the certificate was discovered",
            "nullable": true,
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/DiscoveryInfo"
            }
          },
          "subjectAlternateNames": {
            "description": "The certificate's Subject Alternate Names",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/SubjectAlternateName"
            }
          },
          "triggerResults": {
            "description": "The result of the execution of triggers on this certificate",
            "nullable": true,
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/TriggerResult"
            }
          },
          "extensions": {
            "description": "The certificate's extensions",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CertificateExtension"
            }
          },
          "serial": {
            "description": "The certificate's serial number",
            "example": "1",
            "type": "string"
          },
          "signingAlgorithm": {
            "description": "The certificate's signing algorithm",
            "example": "SHA256WITHRSA",
            "type": "string"
          },
          "discoveryData": {
            "description": "A list of metadata containing information on where the certificate was discovered",
            "nullable": true,
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/HostDiscoveryData"
            }
          },
          "revocationReason": {
            "description": "The certificate's revocation reason",
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/RevocationReason"
              }
            ]
          }
        },
        "required": [
          "_id",
          "module",
          "certificate",
          "thumbprint",
          "selfSigned",
          "publicKeyThumbprint",
          "dn",
          "serial",
          "issuer",
          "notBefore",
          "notAfter",
          "revoked",
          "escrowed",
          "keyType",
          "signingAlgorithm",
          "subjectAlternateNames",
          "metadata",
          "holderId"
        ]
      },
      "WebRAEnrollRequestOnSubmitResponse": {
        "title": "WebRA Enroll Request",
        "allOf": [
          {
            "$ref": "#/components/schemas/RequestBaseResponse"
          }
        ],
        "properties": {
          "module": {
            "description": "The module that will be used to process this request. For a WebRA request, this is always `webra`",
            "type": "string",
            "enum": [
              "webra"
            ]
          },
          "workflow": {
            "description": "What this request will do. For an enrollment request, this is always `enroll`",
            "type": "string",
            "enum": [
              "enroll"
            ]
          },
          "template": {
            "description": "The user-data that will be used to generate the certificate",
            "allOf": [
              {
                "$ref": "#/components/schemas/WebRAEnrollRequestTemplate"
              }
            ]
          },
          "pkcs12": {
            "description": "The generated PKCS#12 for this request. This is only available after the request has been approved in centralized mode",
            "type": "object",
            "allOf": [
              {
                "$ref": "#/components/schemas/SecretString"
              }
            ],
            "nullable": true
          },
          "password": {
            "description": "The password to decrypt the PKCS12 file.",
            "type": "object",
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/SecretString"
              }
            ]
          },
          "certificate": {
            "type": "object",
            "description": "The certificate that was generated for this request. This is only available after the request has been approved",
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/Certificate"
              }
            ]
          }
        },
        "required": [
          "_id",
          "status",
          "registrationDate",
          "lastModificationDate",
          "removeAt",
          "module",
          "profile",
          "template",
          "workflow",
          "holderId"
        ]
      },
      "WebRARevokeRequestOnSubmitResponse": {
        "title": "WebRA Revoke Request",
        "allOf": [
          {
            "$ref": "#/components/schemas/RequestBaseResponse"
          }
        ],
        "properties": {
          "module": {
            "allOf": [
              {
                "$ref": "#/components/schemas/Module"
              }
            ],
            "description": "The module of the certificate revoked."
          },
          "workflow": {
            "description": "What this request will do. For a revocation request, this is always `revoke`",
            "enum": [
              "revoke"
            ]
          },
          "template": {
            "description": "The user-data that was used to revoke the certificate",
            "allOf": [
              {
                "$ref": "#/components/schemas/WebRARevokeRequestTemplate"
              }
            ]
          },
          "certificate": {
            "type": "object",
            "description": "The certificate that was revoked for this request. This is only available after the request has been approved",
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/Certificate"
              }
            ]
          }
        },
        "required": [
          "_id",
          "status",
          "registrationDate",
          "lastModificationDate",
          "removeAt",
          "module",
          "profile",
          "template",
          "workflow",
          "holderId"
        ]
      },
      "WebRAUpdateRequestOnSubmitResponse": {
        "title": "WebRA Update Request",
        "allOf": [
          {
            "$ref": "#/components/schemas/RequestBaseResponse"
          }
        ],
        "properties": {
          "module": {
            "allOf": [
              {
                "$ref": "#/components/schemas/Module"
              }
            ],
            "description": "The module of the certificate updated."
          },
          "workflow": {
            "description": "What this request will do. For an update request, this is always `update`",
            "enum": [
              "update"
            ]
          },
          "template": {
            "description": "The user-data that will be used to generate the certificate",
            "allOf": [
              {
                "$ref": "#/components/schemas/WebRAUpdateRequestTemplate"
              }
            ]
          },
          "certificate": {
            "type": "object",
            "description": "The certificate that was updated for this request. This is only available after the request has been approved",
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/Certificate"
              }
            ]
          }
        },
        "required": [
          "_id",
          "status",
          "registrationDate",
          "lastModificationDate",
          "removeAt",
          "module",
          "profile",
          "template",
          "workflow",
          "holderId"
        ]
      },
      "WebRARecoverRequestOnSubmitResponse": {
        "title": "WebRA Recover Request",
        "allOf": [
          {
            "$ref": "#/components/schemas/RequestBaseResponse"
          }
        ],
        "properties": {
          "module": {
            "allOf": [
              {
                "$ref": "#/components/schemas/Module"
              }
            ],
            "description": "The module of the certificate recovered."
          },
          "workflow": {
            "description": "What this request will do. For a recovery request, this is always `recover`",
            "enum": [
              "recover"
            ]
          },
          "pkcs12": {
            "description": "The generated PKCS#12 for this request. This is only available after the request has been approved.",
            "type": "object",
            "allOf": [
              {
                "$ref": "#/components/schemas/SecretString"
              }
            ],
            "nullable": true
          },
          "password": {
            "description": "The password to decrypt the PKCS12 file.",
            "type": "object",
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/SecretString"
              }
            ]
          },
          "certificate": {
            "type": "object",
            "description": "The certificate that was recovered.",
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/Certificate"
              }
            ]
          }
        },
        "required": [
          "_id",
          "status",
          "registrationDate",
          "lastModificationDate",
          "removeAt",
          "module",
          "profile",
          "workflow",
          "holderId"
        ]
      },
      "WebRAMigrateRequestOnSubmitResponse": {
        "title": "WebRA Migrate Request",
        "allOf": [
          {
            "$ref": "#/components/schemas/RequestBaseResponse"
          }
        ],
        "properties": {
          "module": {
            "allOf": [
              {
                "$ref": "#/components/schemas/Module"
              }
            ],
            "description": "The module of the certificate migrated."
          },
          "workflow": {
            "description": "What this request will do. For a migration request, this is always `migrate`",
            "enum": [
              "migrate"
            ]
          },
          "profile": {
            "description": "The target profile name"
          },
          "template": {
            "description": "The user-data that will be used to generate the certificate",
            "allOf": [
              {
                "$ref": "#/components/schemas/WebRAMigrateRequestTemplate"
              }
            ]
          },
          "certificate": {
            "type": "object",
            "description": "The certificate that was updated for this request. This is only available after the request has been approved",
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/Certificate"
              }
            ]
          },
          "dryRun": {
            "description": "If true, the request is validated, but will not result in a migration",
            "type": "boolean",
            "nullable": true,
            "default": false
          }
        },
        "required": [
          "_id",
          "status",
          "registrationDate",
          "lastModificationDate",
          "removeAt",
          "module",
          "profile",
          "template",
          "workflow",
          "holderId"
        ]
      },
      "WebRARenewRequestOnSubmitResponse": {
        "title": "WebRA Renew Request",
        "allOf": [
          {
            "$ref": "#/components/schemas/RequestBaseResponse"
          }
        ],
        "properties": {
          "module": {
            "description": "The module that will be used to process this request. For a WebRA request, this is always `webra`",
            "type": "string",
            "enum": [
              "webra"
            ]
          },
          "workflow": {
            "description": "What this request will do. For a renewal request, this is always `renew`",
            "enum": [
              "renew"
            ]
          },
          "template": {
            "description": "The user-data that will be used to generate the certificate",
            "allOf": [
              {
                "$ref": "#/components/schemas/WebRARenewRequestTemplate"
              }
            ]
          },
          "pkcs12": {
            "description": "The generated PKCS#12 for this request. This is only available after the request has been approved in centralized mode",
            "type": "object",
            "allOf": [
              {
                "$ref": "#/components/schemas/SecretString"
              }
            ],
            "nullable": true
          },
          "password": {
            "description": "The password to decrypt the PKCS12 file.",
            "type": "object",
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/SecretString"
              }
            ]
          },
          "certificate": {
            "type": "object",
            "description": "The certificate that was generated for this request. This is only available after the request has been approved",
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/Certificate"
              }
            ]
          }
        },
        "required": [
          "_id",
          "status",
          "registrationDate",
          "lastModificationDate",
          "removeAt",
          "module",
          "profile",
          "workflow",
          "holderId"
        ]
      },
      "WebRAImportRequestOnSubmitResponse": {
        "title": "WebRA Import Request",
        "allOf": [
          {
            "$ref": "#/components/schemas/RequestBaseResponse"
          }
        ],
        "properties": {
          "module": {
            "allOf": [
              {
                "$ref": "#/components/schemas/Module"
              }
            ],
            "description": "The module of the certificate imported."
          },
          "workflow": {
            "description": "What this request will do. For an import request, this is always `import`",
            "enum": [
              "import"
            ]
          },
          "template": {
            "description": "The user-data that will be added on certificate import",
            "allOf": [
              {
                "$ref": "#/components/schemas/WebRAImportRequestTemplate"
              }
            ]
          },
          "certificate": {
            "type": "object",
            "description": "The certificate that was generated for this request.",
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/Certificate"
              }
            ]
          },
          "dryRun": {
            "description": "If true, the request is validated, but will not result in an import",
            "type": "boolean",
            "nullable": true,
            "default": false
          }
        },
        "required": [
          "_id",
          "status",
          "registrationDate",
          "lastModificationDate",
          "removeAt",
          "module",
          "profile",
          "workflow",
          "holderId",
          "certificate"
        ]
      },
      "EstEnrollRequestOnSubmitResponse": {
        "title": "EST Enroll Request",
        "allOf": [
          {
            "$ref": "#/components/schemas/RequestBaseResponse"
          }
        ],
        "properties": {
          "module": {
            "type": "string",
            "description": "The module that will be used to process this request. For an EST request, this is always `est`",
            "enum": [
              "est"
            ]
          },
          "workflow": {
            "type": "string",
            "description": "What this request will do. For an enrollment request, this is always `enroll`",
            "enum": [
              "enroll"
            ]
          },
          "dn": {
            "description": "The DN of the challenge",
            "type": "string",
            "example": "CN=test,O=EVERTRUST"
          },
          "template": {
            "description": "The user-data that will be used to generate the challenge",
            "allOf": [
              {
                "$ref": "#/components/schemas/EstEnrollRequestTemplate"
              }
            ]
          },
          "password": {
            "description": "The password of the challenge.",
            "type": "object",
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/SecretString"
              }
            ]
          }
        },
        "required": [
          "_id",
          "status",
          "registrationDate",
          "lastModificationDate",
          "removeAt",
          "module",
          "profile",
          "workflow"
        ]
      },
      "ScepEnrollRequestOnSubmitResponse": {
        "title": "SCEP Enroll Request",
        "allOf": [
          {
            "$ref": "#/components/schemas/RequestBaseResponse"
          }
        ],
        "properties": {
          "module": {
            "description": "The module that will be used to process this request. For a SCEP request, this is always `scep`",
            "enum": [
              "scep"
            ]
          },
          "workflow": {
            "description": "What this request will do. For an enrollment request, this is always `enroll`",
            "enum": [
              "enroll"
            ]
          },
          "dn": {
            "description": "The DN of the challenge",
            "type": "string",
            "example": "CN=test,O=EVERTRUST"
          },
          "template": {
            "description": "The user-data that will be used to generate the certificate",
            "allOf": [
              {
                "$ref": "#/components/schemas/ScepEnrollRequestTemplate"
              }
            ]
          },
          "password": {
            "description": "The password of the challenge. Must be set if password mode is `manual`",
            "type": "object",
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/SecretString"
              }
            ]
          }
        },
        "required": [
          "_id",
          "status",
          "registrationDate",
          "lastModificationDate",
          "removeAt",
          "module",
          "profile",
          "workflow"
        ]
      },
      "CertTeam001": {
        "title": "CERT-TEAM-001",
        "description": "Invalid Team Element",
        "allOf": [
          {
            "$ref": "#/components/schemas/BasicError"
          }
        ],
        "properties": {
          "error": {
            "enum": [
              "CERT-TEAM-001"
            ]
          },
          "message": {
            "enum": [
              "Invalid Team Element"
            ]
          },
          "title": {
            "enum": [
              "Invalid Team Element"
            ]
          }
        },
        "required": [
          "error",
          "message",
          "title"
        ]
      },
      "CertElem001": {
        "title": "CERT-ELEM-001",
        "description": "Invalid Certificate Element",
        "allOf": [
          {
            "$ref": "#/components/schemas/BasicError"
          }
        ],
        "properties": {
          "error": {
            "enum": [
              "CERT-ELEM-001"
            ]
          },
          "message": {
            "enum": [
              "Invalid Certificate Element"
            ]
          },
          "title": {
            "enum": [
              "Invalid Certificate Element"
            ]
          }
        },
        "required": [
          "error",
          "message",
          "title"
        ]
      },
      "Req004": {
        "title": "REQ-004",
        "description": "Invalid Request status",
        "allOf": [
          {
            "$ref": "#/components/schemas/BasicError"
          }
        ],
        "properties": {
          "error": {
            "enum": [
              "REQ-004"
            ]
          },
          "message": {
            "enum": [
              "Invalid Request status"
            ]
          },
          "title": {
            "enum": [
              "Invalid Request status"
            ]
          }
        },
        "required": [
          "error",
          "message",
          "title"
        ]
      },
      "Req005": {
        "title": "REQ-005",
        "description": "Expired Request",
        "allOf": [
          {
            "$ref": "#/components/schemas/BasicError"
          }
        ],
        "properties": {
          "error": {
            "enum": [
              "REQ-005"
            ]
          },
          "message": {
            "enum": [
              "Expired Request"
            ]
          },
          "title": {
            "enum": [
              "Expired Request"
            ]
          }
        },
        "required": [
          "error",
          "message",
          "title"
        ]
      },
      "EstEnroll001": {
        "title": "EST-ENROLL-001",
        "description": "Invalid Authorization Mode as DN whitelisting is not enabled on profile",
        "allOf": [
          {
            "$ref": "#/components/schemas/BasicError"
          }
        ],
        "properties": {
          "error": {
            "enum": [
              "EST-ENROLL-001"
            ]
          },
          "message": {
            "enum": [
              "Invalid Authorization Mode as DN whitelisting is not enabled on profile"
            ]
          },
          "title": {
            "enum": [
              "Invalid Authorization Mode as DN whitelisting is not enabled on profile"
            ]
          }
        },
        "required": [
          "error",
          "message",
          "title"
        ]
      },
      "EstEnroll002": {
        "title": "EST-ENROLL-002",
        "description": "DN is required as DN whitelisting is enabled on EST profile",
        "allOf": [
          {
            "$ref": "#/components/schemas/BasicError"
          }
        ],
        "properties": {
          "error": {
            "enum": [
              "EST-ENROLL-002"
            ]
          },
          "message": {
            "enum": [
              "DN is required as DN whitelisting is enabled on EST profile"
            ]
          },
          "title": {
            "enum": [
              "DN is required as DN whitelisting is enabled on EST profile"
            ]
          }
        },
        "required": [
          "error",
          "message",
          "title"
        ]
      },
      "EstEnroll003": {
        "title": "EST-ENROLL-003",
        "description": "Invalid Distinguished Name",
        "allOf": [
          {
            "$ref": "#/components/schemas/BasicError"
          }
        ],
        "properties": {
          "error": {
            "enum": [
              "EST-ENROLL-003"
            ]
          },
          "message": {
            "enum": [
              "Invalid Distinguished Name"
            ]
          },
          "title": {
            "enum": [
              "Invalid Distinguished Name"
            ]
          }
        },
        "required": [
          "error",
          "message",
          "title"
        ]
      },
      "EstEnroll004": {
        "title": "EST-ENROLL-004",
        "description": "Invalid EST Enroll Request",
        "allOf": [
          {
            "$ref": "#/components/schemas/BasicError"
          }
        ],
        "properties": {
          "error": {
            "enum": [
              "EST-ENROLL-004"
            ]
          },
          "message": {
            "enum": [
              "Invalid EST Enroll Request"
            ]
          },
          "title": {
            "enum": [
              "Invalid EST Enroll Request"
            ]
          }
        },
        "required": [
          "error",
          "message",
          "title"
        ]
      },
      "EstEnroll005": {
        "title": "EST-ENROLL-005",
        "description": "Invalid EST Profile",
        "allOf": [
          {
            "$ref": "#/components/schemas/BasicError"
          }
        ],
        "properties": {
          "error": {
            "enum": [
              "EST-ENROLL-005"
            ]
          },
          "message": {
            "enum": [
              "Invalid EST Profile"
            ]
          },
          "title": {
            "enum": [
              "Invalid EST Profile"
            ]
          }
        },
        "required": [
          "error",
          "message",
          "title"
        ]
      },
      "ScepEnroll001": {
        "title": "SCEP-ENROLL-001",
        "description": "SCEP pre-validation is not enabled on SCEP profile",
        "allOf": [
          {
            "$ref": "#/components/schemas/BasicError"
          }
        ],
        "properties": {
          "error": {
            "enum": [
              "SCEP-ENROLL-001"
            ]
          },
          "message": {
            "enum": [
              "SCEP pre-validation is not enabled on SCEP profile"
            ]
          },
          "title": {
            "enum": [
              "SCEP pre-validation is not enabled on SCEP profile"
            ]
          }
        },
        "required": [
          "error",
          "message",
          "title"
        ]
      },
      "ScepEnroll002": {
        "title": "SCEP-ENROLL-002",
        "description": "DN is required as DN whitelisting is enabled on SCEP profile",
        "allOf": [
          {
            "$ref": "#/components/schemas/BasicError"
          }
        ],
        "properties": {
          "error": {
            "enum": [
              "SCEP-ENROLL-002"
            ]
          },
          "message": {
            "enum": [
              "DN is required as DN whitelisting is enabled on SCEP profile"
            ]
          },
          "title": {
            "enum": [
              "DN is required as DN whitelisting is enabled on SCEP profile"
            ]
          }
        },
        "required": [
          "error",
          "message",
          "title"
        ]
      },
      "ScepEnroll003": {
        "title": "SCEP-ENROLL-003",
        "description": "Invalid Distinguished Name",
        "allOf": [
          {
            "$ref": "#/components/schemas/BasicError"
          }
        ],
        "properties": {
          "error": {
            "enum": [
              "SCEP-ENROLL-003"
            ]
          },
          "message": {
            "enum": [
              "Invalid Distinguished Name"
            ]
          },
          "title": {
            "enum": [
              "Invalid Distinguished Name"
            ]
          }
        },
        "required": [
          "error",
          "message",
          "title"
        ]
      },
      "ScepEnroll004": {
        "title": "SCEP-ENROLL-004",
        "description": "Invalid SCEP Enroll Request",
        "allOf": [
          {
            "$ref": "#/components/schemas/BasicError"
          }
        ],
        "properties": {
          "error": {
            "enum": [
              "SCEP-ENROLL-004"
            ]
          },
          "message": {
            "enum": [
              "Invalid SCEP Enroll Request"
            ]
          },
          "title": {
            "enum": [
              "Invalid SCEP Enroll Request"
            ]
          }
        },
        "required": [
          "error",
          "message",
          "title"
        ]
      },
      "ScepEnroll005": {
        "title": "SCEP-ENROLL-005",
        "description": "Invalid SCEP Profile",
        "allOf": [
          {
            "$ref": "#/components/schemas/BasicError"
          }
        ],
        "properties": {
          "error": {
            "enum": [
              "SCEP-ENROLL-005"
            ]
          },
          "message": {
            "enum": [
              "Invalid SCEP Profile"
            ]
          },
          "title": {
            "enum": [
              "Invalid SCEP Profile"
            ]
          }
        },
        "required": [
          "error",
          "message",
          "title"
        ]
      },
      "WebraEnroll001": {
        "title": "WEBRA-ENROLL-001",
        "description": "Invalid enrollment mode",
        "allOf": [
          {
            "$ref": "#/components/schemas/BasicError"
          }
        ],
        "properties": {
          "error": {
            "enum": [
              "WEBRA-ENROLL-001"
            ]
          },
          "message": {
            "enum": [
              "Invalid enrollment mode"
            ]
          },
          "title": {
            "enum": [
              "Invalid enrollment mode"
            ]
          }
        },
        "required": [
          "error",
          "message",
          "title"
        ]
      },
      "WebraEnroll002": {
        "title": "WEBRA-ENROLL-002",
        "description": "Invalid key type",
        "allOf": [
          {
            "$ref": "#/components/schemas/BasicError"
          }
        ],
        "properties": {
          "error": {
            "enum": [
              "WEBRA-ENROLL-002"
            ]
          },
          "message": {
            "enum": [
              "Invalid key type"
            ]
          },
          "title": {
            "enum": [
              "Invalid key type"
            ]
          }
        },
        "required": [
          "error",
          "message",
          "title"
        ]
      },
      "WebraEnroll003": {
        "title": "WEBRA-ENROLL-003",
        "description": "Invalid certificate request",
        "allOf": [
          {
            "$ref": "#/components/schemas/BasicError"
          }
        ],
        "properties": {
          "error": {
            "enum": [
              "WEBRA-ENROLL-003"
            ]
          },
          "message": {
            "enum": [
              "Invalid certificate request"
            ]
          },
          "title": {
            "enum": [
              "Invalid certificate request"
            ]
          }
        },
        "required": [
          "error",
          "message",
          "title"
        ]
      },
      "WebraEnroll004": {
        "title": "WEBRA-ENROLL-004",
        "description": "Invalid subject parameter(s)",
        "allOf": [
          {
            "$ref": "#/components/schemas/BasicError"
          }
        ],
        "properties": {
          "error": {
            "enum": [
              "WEBRA-ENROLL-004"
            ]
          },
          "message": {
            "enum": [
              "Invalid subject parameter(s)"
            ]
          },
          "title": {
            "enum": [
              "Invalid subject parameter(s)"
            ]
          }
        },
        "required": [
          "error",
          "message",
          "title"
        ]
      },
      "WebraEnroll005": {
        "title": "WEBRA-ENROLL-005",
        "description": "Invalid subject alternate name parameter(s)",
        "allOf": [
          {
            "$ref": "#/components/schemas/BasicError"
          }
        ],
        "properties": {
          "error": {
            "enum": [
              "WEBRA-ENROLL-005"
            ]
          },
          "message": {
            "enum": [
              "Invalid subject alternate name parameter(s)"
            ]
          },
          "title": {
            "enum": [
              "Invalid subject alternate name parameter(s)"
            ]
          }
        },
        "required": [
          "error",
          "message",
          "title"
        ]
      },
      "WebraEnroll006": {
        "title": "WEBRA-ENROLL-006",
        "description": "Invalid label parameter(s)",
        "allOf": [
          {
            "$ref": "#/components/schemas/BasicError"
          }
        ],
        "properties": {
          "error": {
            "enum": [
              "WEBRA-ENROLL-006"
            ]
          },
          "message": {
            "enum": [
              "Invalid label parameter(s)"
            ]
          },
          "title": {
            "enum": [
              "Invalid label parameter(s)"
            ]
          }
        },
        "required": [
          "error",
          "message",
          "title"
        ]
      },
      "WebraEnroll009": {
        "title": "WEBRA-ENROLL-009",
        "description": "Missing Web Registration Authority Enrollment Request Template on approved request",
        "allOf": [
          {
            "$ref": "#/components/schemas/BasicError"
          }
        ],
        "properties": {
          "error": {
            "enum": [
              "WEBRA-ENROLL-009"
            ]
          },
          "message": {
            "enum": [
              "Missing Web Registration Authority Enrollment Request Template on approved request"
            ]
          },
          "title": {
            "enum": [
              "Missing Web Registration Authority Enrollment Request Template on approved request"
            ]
          }
        },
        "required": [
          "error",
          "message",
          "title"
        ]
      },
      "WebraEnroll012": {
        "title": "WEBRA-ENROLL-012",
        "description": "Invalid Web Registration Authority Enroll Request",
        "allOf": [
          {
            "$ref": "#/components/schemas/BasicError"
          }
        ],
        "properties": {
          "error": {
            "enum": [
              "WEBRA-ENROLL-012"
            ]
          },
          "message": {
            "enum": [
              "Invalid Web Registration Authority Enroll Request"
            ]
          },
          "title": {
            "enum": [
              "Invalid Web Registration Authority Enroll Request"
            ]
          }
        },
        "required": [
          "error",
          "message",
          "title"
        ]
      },
      "WebraRecover001": {
        "title": "WEBRA-RECOVER-001",
        "description": "No certificateId specified",
        "allOf": [
          {
            "$ref": "#/components/schemas/BasicError"
          }
        ],
        "properties": {
          "error": {
            "enum": [
              "WEBRA-RECOVER-001"
            ]
          },
          "message": {
            "enum": [
              "No certificateId specified"
            ]
          },
          "title": {
            "enum": [
              "No certificateId specified"
            ]
          }
        },
        "required": [
          "error",
          "message",
          "title"
        ]
      },
      "WebraRecover002": {
        "title": "WEBRA-RECOVER-002",
        "description": "Web Registration Authority recovery failed",
        "allOf": [
          {
            "$ref": "#/components/schemas/BasicError"
          }
        ],
        "properties": {
          "error": {
            "enum": [
              "WEBRA-RECOVER-002"
            ]
          },
          "message": {
            "enum": [
              "Web Registration Authority recovery failed"
            ]
          },
          "title": {
            "enum": [
              "Web Registration Authority recovery failed"
            ]
          }
        },
        "required": [
          "error",
          "message",
          "title"
        ]
      },
      "WebraRecover003": {
        "title": "WEBRA-RECOVER-003",
        "description": "Invalid Web Registration Authority Recover Request",
        "allOf": [
          {
            "$ref": "#/components/schemas/BasicError"
          }
        ],
        "properties": {
          "error": {
            "enum": [
              "WEBRA-RECOVER-003"
            ]
          },
          "message": {
            "enum": [
              "Invalid Web Registration Authority Recover Request"
            ]
          },
          "title": {
            "enum": [
              "Invalid Web Registration Authority Recover Request"
            ]
          }
        },
        "required": [
          "error",
          "message",
          "title"
        ]
      },
      "WebraRecover004": {
        "title": "WEBRA-RECOVER-004",
        "description": "Certificate does not exist",
        "allOf": [
          {
            "$ref": "#/components/schemas/BasicError"
          }
        ],
        "properties": {
          "error": {
            "enum": [
              "WEBRA-RECOVER-004"
            ]
          },
          "message": {
            "enum": [
              "Certificate does not exist"
            ]
          },
          "title": {
            "enum": [
              "Certificate does not exist"
            ]
          }
        },
        "required": [
          "error",
          "message",
          "title"
        ]
      },
      "WebraRevoke001": {
        "title": "WEBRA-REVOKE-001",
        "description": "No certificate specified",
        "allOf": [
          {
            "$ref": "#/components/schemas/BasicError"
          }
        ],
        "properties": {
          "error": {
            "enum": [
              "WEBRA-REVOKE-001"
            ]
          },
          "message": {
            "enum": [
              "No certificate specified"
            ]
          },
          "title": {
            "enum": [
              "No certificate specified"
            ]
          }
        },
        "required": [
          "error",
          "message",
          "title"
        ]
      },
      "WebraRevoke003": {
        "title": "WEBRA-REVOKE-003",
        "description": "Invalid Web Registration Authority revocation request",
        "allOf": [
          {
            "$ref": "#/components/schemas/BasicError"
          }
        ],
        "properties": {
          "error": {
            "enum": [
              "WEBRA-REVOKE-003"
            ]
          },
          "message": {
            "enum": [
              "Invalid Web Registration Authority revocation request"
            ]
          },
          "title": {
            "enum": [
              "Invalid Web Registration Authority revocation request"
            ]
          }
        },
        "required": [
          "error",
          "message",
          "title"
        ]
      },
      "WebraRevoke004": {
        "title": "WEBRA-REVOKE-004",
        "description": "Certificate does not exist",
        "allOf": [
          {
            "$ref": "#/components/schemas/BasicError"
          }
        ],
        "properties": {
          "error": {
            "enum": [
              "WEBRA-REVOKE-004"
            ]
          },
          "message": {
            "enum": [
              "Certificate does not exist"
            ]
          },
          "title": {
            "enum": [
              "Certificate does not exist"
            ]
          }
        },
        "required": [
          "error",
          "message",
          "title"
        ]
      },
      "WebraRevoke005": {
        "title": "WEBRA-REVOKE-005",
        "description": "Invalid certificate",
        "allOf": [
          {
            "$ref": "#/components/schemas/BasicError"
          }
        ],
        "properties": {
          "error": {
            "enum": [
              "WEBRA-REVOKE-005"
            ]
          },
          "message": {
            "enum": [
              "Invalid certificate"
            ]
          },
          "title": {
            "enum": [
              "Invalid certificate"
            ]
          }
        },
        "required": [
          "error",
          "message",
          "title"
        ]
      },
      "WebraRevoke006": {
        "title": "WEBRA-REVOKE-006",
        "description": "Missing Web Registration Authority Revoke Request Template",
        "allOf": [
          {
            "$ref": "#/components/schemas/BasicError"
          }
        ],
        "properties": {
          "error": {
            "enum": [
              "WEBRA-REVOKE-006"
            ]
          },
          "message": {
            "enum": [
              "Missing Web Registration Authority Revoke Request Template"
            ]
          },
          "title": {
            "enum": [
              "Missing Web Registration Authority Revoke Request Template"
            ]
          }
        },
        "required": [
          "error",
          "message",
          "title"
        ]
      },
      "WebraMigrate001": {
        "title": "WEBRA-MIGRATE-001",
        "description": "No certificate specified",
        "allOf": [
          {
            "$ref": "#/components/schemas/BasicError"
          }
        ],
        "properties": {
          "error": {
            "enum": [
              "WEBRA-MIGRATE-001"
            ]
          },
          "message": {
            "enum": [
              "No certificate specified"
            ]
          },
          "title": {
            "enum": [
              "No certificate specified"
            ]
          }
        },
        "required": [
          "error",
          "message",
          "title"
        ]
      },
      "WebraMigrate007": {
        "title": "WEBRA-MIGRATE-007",
        "description": "Invalid migration profile",
        "allOf": [
          {
            "$ref": "#/components/schemas/BasicError"
          }
        ],
        "properties": {
          "error": {
            "enum": [
              "WEBRA-MIGRATE-007"
            ]
          },
          "message": {
            "enum": [
              "Invalid migration profile"
            ]
          },
          "title": {
            "enum": [
              "Invalid migration profile"
            ]
          }
        },
        "required": [
          "error",
          "message",
          "title"
        ]
      },
      "WebraRenew001": {
        "title": "WEBRA-RENEW-001",
        "description": "Invalid request",
        "allOf": [
          {
            "$ref": "#/components/schemas/BasicError"
          }
        ],
        "properties": {
          "error": {
            "enum": [
              "WEBRA-RENEW-001"
            ]
          },
          "message": {
            "enum": [
              "Invalid request"
            ]
          },
          "title": {
            "enum": [
              "Invalid request"
            ]
          }
        },
        "required": [
          "error",
          "message",
          "title"
        ]
      },
      "WebraRenew003": {
        "title": "WEBRA-RENEW-003",
        "description": "Invalid Web Registration Authority Profile",
        "allOf": [
          {
            "$ref": "#/components/schemas/BasicError"
          }
        ],
        "properties": {
          "error": {
            "enum": [
              "WEBRA-RENEW-003"
            ]
          },
          "message": {
            "enum": [
              "Invalid Web Registration Authority Profile"
            ]
          },
          "title": {
            "enum": [
              "Invalid Web Registration Authority Profile"
            ]
          }
        },
        "required": [
          "error",
          "message",
          "title"
        ]
      },
      "WebraRenew004": {
        "title": "WEBRA-RENEW-004",
        "description": "Renewal not enabled on Web Registration Authority Profile",
        "allOf": [
          {
            "$ref": "#/components/schemas/BasicError"
          }
        ],
        "properties": {
          "error": {
            "enum": [
              "WEBRA-RENEW-004"
            ]
          },
          "message": {
            "enum": [
              "Renewal not enabled on Web Registration Authority Profile"
            ]
          },
          "title": {
            "enum": [
              "Renewal not enabled on Web Registration Authority Profile"
            ]
          }
        },
        "required": [
          "error",
          "message",
          "title"
        ]
      },
      "WebraRenew005": {
        "title": "WEBRA-RENEW-005",
        "description": "Certificate not in its renewal period",
        "allOf": [
          {
            "$ref": "#/components/schemas/BasicError"
          }
        ],
        "properties": {
          "error": {
            "enum": [
              "WEBRA-RENEW-005"
            ]
          },
          "message": {
            "enum": [
              "Certificate not in its renewal period"
            ]
          },
          "title": {
            "enum": [
              "Certificate not in its renewal period"
            ]
          }
        },
        "required": [
          "error",
          "message",
          "title"
        ]
      },
      "WebraRenew006": {
        "title": "WEBRA-RENEW-006",
        "description": "Certificate status does not allow renewal",
        "allOf": [
          {
            "$ref": "#/components/schemas/BasicError"
          }
        ],
        "properties": {
          "error": {
            "enum": [
              "WEBRA-RENEW-006"
            ]
          },
          "message": {
            "enum": [
              "Certificate status does not allow renewal"
            ]
          },
          "title": {
            "enum": [
              "Certificate status does not allow renewal"
            ]
          }
        },
        "required": [
          "error",
          "message",
          "title"
        ]
      },
      "WebraImport003": {
        "title": "WEBRA-IMPORT-003",
        "description": "Certificate key is already escrowed",
        "allOf": [
          {
            "$ref": "#/components/schemas/BasicError"
          }
        ],
        "properties": {
          "error": {
            "enum": [
              "WEBRA-IMPORT-003"
            ]
          },
          "message": {
            "enum": [
              "Certificate key is already escrowed"
            ]
          },
          "title": {
            "enum": [
              "Certificate key is already escrowed"
            ]
          }
        },
        "required": [
          "error",
          "message",
          "title"
        ]
      },
      "WebraImport004": {
        "title": "WEBRA-IMPORT-004",
        "description": "Import request does not contain certificate",
        "allOf": [
          {
            "$ref": "#/components/schemas/BasicError"
          }
        ],
        "properties": {
          "error": {
            "enum": [
              "WEBRA-IMPORT-004"
            ]
          },
          "message": {
            "enum": [
              "Import request does not contain certificate"
            ]
          },
          "title": {
            "enum": [
              "Import request does not contain certificate"
            ]
          }
        },
        "required": [
          "error",
          "message",
          "title"
        ]
      },
      "Lic003": {
        "title": "LIC-003",
        "description": "Maximum number of holders reached",
        "allOf": [
          {
            "$ref": "#/components/schemas/BasicError"
          }
        ],
        "properties": {
          "error": {
            "enum": [
              "LIC-003"
            ]
          },
          "message": {
            "enum": [
              "Maximum number of holders reached"
            ]
          },
          "title": {
            "enum": [
              "Maximum number of holders reached"
            ]
          }
        },
        "required": [
          "error",
          "message",
          "title"
        ]
      },
      "Req003": {
        "title": "REQ-003",
        "description": "Request not found",
        "allOf": [
          {
            "$ref": "#/components/schemas/BasicError"
          }
        ],
        "properties": {
          "error": {
            "enum": [
              "REQ-003"
            ]
          },
          "message": {
            "enum": [
              "Request not found"
            ]
          },
          "title": {
            "enum": [
              "Request not found"
            ]
          }
        },
        "required": [
          "error",
          "message",
          "title"
        ]
      },
      "Req009": {
        "title": "REQ-009",
        "description": "Invalid Certificate",
        "allOf": [
          {
            "$ref": "#/components/schemas/BasicError"
          }
        ],
        "properties": {
          "error": {
            "enum": [
              "REQ-009"
            ]
          },
          "message": {
            "enum": [
              "Invalid Certificate"
            ]
          },
          "title": {
            "enum": [
              "Invalid Certificate"
            ]
          }
        },
        "required": [
          "error",
          "message",
          "title"
        ]
      },
      "EstEnroll006": {
        "title": "EST-ENROLL-006",
        "description": "Missing profile EST Enrollment Request Template",
        "allOf": [
          {
            "$ref": "#/components/schemas/BasicError"
          }
        ],
        "properties": {
          "error": {
            "enum": [
              "EST-ENROLL-006"
            ]
          },
          "message": {
            "enum": [
              "Missing profile EST Enrollment Request Template"
            ]
          },
          "title": {
            "enum": [
              "Missing profile EST Enrollment Request Template"
            ]
          }
        },
        "required": [
          "error",
          "message",
          "title"
        ]
      },
      "EstEnroll007": {
        "title": "EST-ENROLL-007",
        "description": "Missing approved EST Enrollment Request Template",
        "allOf": [
          {
            "$ref": "#/components/schemas/BasicError"
          }
        ],
        "properties": {
          "error": {
            "enum": [
              "EST-ENROLL-007"
            ]
          },
          "message": {
            "enum": [
              "Missing approved EST Enrollment Request Template"
            ]
          },
          "title": {
            "enum": [
              "Missing approved EST Enrollment Request Template"
            ]
          }
        },
        "required": [
          "error",
          "message",
          "title"
        ]
      },
      "EstEnroll008": {
        "title": "EST-ENROLL-008",
        "description": "Missing pending EST Enrollment Request Template",
        "allOf": [
          {
            "$ref": "#/components/schemas/BasicError"
          }
        ],
        "properties": {
          "error": {
            "enum": [
              "EST-ENROLL-008"
            ]
          },
          "message": {
            "enum": [
              "Missing pending EST Enrollment Request Template"
            ]
          },
          "title": {
            "enum": [
              "Missing pending EST Enrollment Request Template"
            ]
          }
        },
        "required": [
          "error",
          "message",
          "title"
        ]
      },
      "EstEnroll009": {
        "title": "EST-ENROLL-009",
        "description": "Unable to validate pending request. The EST profile was modified and the request can only be canceled or denied",
        "allOf": [
          {
            "$ref": "#/components/schemas/BasicError"
          }
        ],
        "properties": {
          "error": {
            "enum": [
              "EST-ENROLL-009"
            ]
          },
          "message": {
            "enum": [
              "Unable to validate pending request. The EST profile was modified and the request can only be canceled or denied"
            ]
          },
          "title": {
            "enum": [
              "Unable to validate pending request. The EST profile was modified and the request can only be canceled or denied"
            ]
          }
        },
        "required": [
          "error",
          "message",
          "title"
        ]
      },
      "ScepEnroll006": {
        "title": "SCEP-ENROLL-006",
        "description": "Missing profile SCEP Enrollment Request Template",
        "allOf": [
          {
            "$ref": "#/components/schemas/BasicError"
          }
        ],
        "properties": {
          "error": {
            "enum": [
              "SCEP-ENROLL-006"
            ]
          },
          "message": {
            "enum": [
              "Missing profile SCEP Enrollment Request Template"
            ]
          },
          "title": {
            "enum": [
              "Missing profile SCEP Enrollment Request Template"
            ]
          }
        },
        "required": [
          "error",
          "message",
          "title"
        ]
      },
      "ScepEnroll007": {
        "title": "SCEP-ENROLL-007",
        "description": "Missing approved SCEP Enrollment Request Template",
        "allOf": [
          {
            "$ref": "#/components/schemas/BasicError"
          }
        ],
        "properties": {
          "error": {
            "enum": [
              "SCEP-ENROLL-007"
            ]
          },
          "message": {
            "enum": [
              "Missing approved SCEP Enrollment Request Template"
            ]
          },
          "title": {
            "enum": [
              "Missing approved SCEP Enrollment Request Template"
            ]
          }
        },
        "required": [
          "error",
          "message",
          "title"
        ]
      },
      "ScepEnroll008": {
        "title": "SCEP-ENROLL-008",
        "description": "Missing pending SCEP Enrollment Request Template",
        "allOf": [
          {
            "$ref": "#/components/schemas/BasicError"
          }
        ],
        "properties": {
          "error": {
            "enum": [
              "SCEP-ENROLL-008"
            ]
          },
          "message": {
            "enum": [
              "Missing pending SCEP Enrollment Request Template"
            ]
          },
          "title": {
            "enum": [
              "Missing pending SCEP Enrollment Request Template"
            ]
          }
        },
        "required": [
          "error",
          "message",
          "title"
        ]
      },
      "ScepEnroll009": {
        "title": "SCEP-ENROLL-009",
        "description": "Unable to validate pending request. The EST profile was modified and the request can only be canceled or denied",
        "allOf": [
          {
            "$ref": "#/components/schemas/BasicError"
          }
        ],
        "properties": {
          "error": {
            "enum": [
              "SCEP-ENROLL-009"
            ]
          },
          "message": {
            "enum": [
              "Unable to validate pending request. The EST profile was modified and the request can only be canceled or denied"
            ]
          },
          "title": {
            "enum": [
              "Unable to validate pending request. The EST profile was modified and the request can only be canceled or denied"
            ]
          }
        },
        "required": [
          "error",
          "message",
          "title"
        ]
      },
      "WebraEnroll007": {
        "title": "WEBRA-ENROLL-007",
        "description": "Missing Web Registration Authority Enrollment Request Template on profile",
        "allOf": [
          {
            "$ref": "#/components/schemas/BasicError"
          }
        ],
        "properties": {
          "error": {
            "enum": [
              "WEBRA-ENROLL-007"
            ]
          },
          "message": {
            "enum": [
              "Missing Web Registration Authority Enrollment Request Template on profile"
            ]
          },
          "title": {
            "enum": [
              "Missing Web Registration Authority Enrollment Request Template on profile"
            ]
          }
        },
        "required": [
          "error",
          "message",
          "title"
        ]
      },
      "WebraEnroll008": {
        "title": "WEBRA-ENROLL-008",
        "description": "Missing Web Registration Authority Enrollment Request Template on pending request",
        "allOf": [
          {
            "$ref": "#/components/schemas/BasicError"
          }
        ],
        "properties": {
          "error": {
            "enum": [
              "WEBRA-ENROLL-008"
            ]
          },
          "message": {
            "enum": [
              "Missing Web Registration Authority Enrollment Request Template on pending request"
            ]
          },
          "title": {
            "enum": [
              "Missing Web Registration Authority Enrollment Request Template on pending request"
            ]
          }
        },
        "required": [
          "error",
          "message",
          "title"
        ]
      },
      "WebraEnroll010": {
        "title": "WEBRA-ENROLL-010",
        "description": "Unable to validate pending enroll request. The Web Registration Authority profile was modified and the request can only be canceled or denied",
        "allOf": [
          {
            "$ref": "#/components/schemas/BasicError"
          }
        ],
        "properties": {
          "error": {
            "enum": [
              "WEBRA-ENROLL-010"
            ]
          },
          "message": {
            "enum": [
              "Unable to validate pending enroll request. The Web Registration Authority profile was modified and the request can only be canceled or denied"
            ]
          },
          "title": {
            "enum": [
              "Unable to validate pending enroll request. The Web Registration Authority profile was modified and the request can only be canceled or denied"
            ]
          }
        },
        "required": [
          "error",
          "message",
          "title"
        ]
      },
      "WebraEnroll011": {
        "title": "WEBRA-ENROLL-011",
        "description": "Web Registration Authority enrollment failed",
        "allOf": [
          {
            "$ref": "#/components/schemas/BasicError"
          }
        ],
        "properties": {
          "error": {
            "enum": [
              "WEBRA-ENROLL-011"
            ]
          },
          "message": {
            "enum": [
              "Web Registration Authority enrollment failed"
            ]
          },
          "title": {
            "enum": [
              "Web Registration Authority enrollment failed"
            ]
          }
        },
        "required": [
          "error",
          "message",
          "title"
        ]
      },
      "WebraEnroll013": {
        "title": "WEBRA-ENROLL-013",
        "description": "Invalid Web Registration Authority Profile",
        "allOf": [
          {
            "$ref": "#/components/schemas/BasicError"
          }
        ],
        "properties": {
          "error": {
            "enum": [
              "WEBRA-ENROLL-013"
            ]
          },
          "message": {
            "enum": [
              "Invalid Web Registration Authority Profile"
            ]
          },
          "title": {
            "enum": [
              "Invalid Web Registration Authority Profile"
            ]
          }
        },
        "required": [
          "error",
          "message",
          "title"
        ]
      },
      "WebraEnroll014": {
        "title": "WEBRA-ENROLL-014",
        "description": "Invalid Web Registration Authority",
        "allOf": [
          {
            "$ref": "#/components/schemas/BasicError"
          }
        ],
        "properties": {
          "error": {
            "enum": [
              "WEBRA-ENROLL-014"
            ]
          },
          "message": {
            "enum": [
              "Invalid Web Registration Authority"
            ]
          },
          "title": {
            "enum": [
              "Invalid Web Registration Authority"
            ]
          }
        },
        "required": [
          "error",
          "message",
          "title"
        ]
      },
      "WebraRevoke002": {
        "title": "WEBRA-REVOKE-002",
        "description": "Web Registration Authority revocation failed",
        "allOf": [
          {
            "$ref": "#/components/schemas/BasicError"
          }
        ],
        "properties": {
          "error": {
            "enum": [
              "WEBRA-REVOKE-002"
            ]
          },
          "message": {
            "enum": [
              "Web Registration Authority revocation failed"
            ]
          },
          "title": {
            "enum": [
              "Web Registration Authority revocation failed"
            ]
          }
        },
        "required": [
          "error",
          "message",
          "title"
        ]
      },
      "WebraMigrate005": {
        "title": "WEBRA-MIGRATE-005",
        "description": "Missing Web Registration Authority Migrate Request Template on submitted request",
        "allOf": [
          {
            "$ref": "#/components/schemas/BasicError"
          }
        ],
        "properties": {
          "error": {
            "enum": [
              "WEBRA-MIGRATE-005"
            ]
          },
          "message": {
            "enum": [
              "Missing Web Registration Authority Migrate Request Template on submitted request"
            ]
          },
          "title": {
            "enum": [
              "Missing Web Registration Authority Migrate Request Template on submitted request"
            ]
          }
        },
        "required": [
          "error",
          "message",
          "title"
        ]
      },
      "WebraRenew002": {
        "title": "WEBRA-RENEW-002",
        "description": "Web Registration Authority renewal failed",
        "allOf": [
          {
            "$ref": "#/components/schemas/BasicError"
          }
        ],
        "properties": {
          "error": {
            "enum": [
              "WEBRA-RENEW-002"
            ]
          },
          "message": {
            "enum": [
              "Web Registration Authority renewal failed"
            ]
          },
          "title": {
            "enum": [
              "Web Registration Authority renewal failed"
            ]
          }
        },
        "required": [
          "error",
          "message",
          "title"
        ]
      },
      "WebRAEnrollRequestOnGetResponse": {
        "title": "WebRA Enroll Request",
        "allOf": [
          {
            "$ref": "#/components/schemas/RequestBaseResponse"
          }
        ],
        "properties": {
          "module": {
            "description": "The module that will be used to process this request. For a WebRA request, this is always `webra`",
            "type": "string",
            "enum": [
              "webra"
            ]
          },
          "workflow": {
            "description": "What this request will do. For an enrollment request, this is always `enroll`",
            "type": "string",
            "enum": [
              "enroll"
            ]
          },
          "template": {
            "description": "The user-data that will be used to generate the certificate",
            "allOf": [
              {
                "$ref": "#/components/schemas/WebRAEnrollRequestTemplateResponse"
              }
            ]
          },
          "pkcs12": {
            "description": "The generated PKCS#12 for this request. This is only available after the request has been approved in centralized mode",
            "type": "object",
            "allOf": [
              {
                "$ref": "#/components/schemas/SecretString"
              }
            ],
            "nullable": true
          },
          "password": {
            "description": "The password to decrypt the PKCS12 file.",
            "type": "object",
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/SecretString"
              }
            ]
          },
          "certificate": {
            "type": "object",
            "description": "The certificate that was generated for this request. This is only available after the request has been approved",
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/Certificate"
              }
            ]
          }
        },
        "required": [
          "_id",
          "status",
          "registrationDate",
          "lastModificationDate",
          "removeAt",
          "module",
          "profile",
          "template",
          "workflow",
          "holderId"
        ]
      },
      "WebRARevokeRequestOnApproveResponse": {
        "title": "WebRA Revoke Request",
        "allOf": [
          {
            "$ref": "#/components/schemas/WebRARevokeRequestOnSubmitResponse"
          }
        ]
      },
      "WebRAUpdateRequestOnGetResponse": {
        "title": "WebRA Update Request",
        "allOf": [
          {
            "$ref": "#/components/schemas/RequestBaseResponse"
          }
        ],
        "properties": {
          "module": {
            "allOf": [
              {
                "$ref": "#/components/schemas/Module"
              }
            ],
            "description": "The module of the certificate updated."
          },
          "workflow": {
            "description": "What this request will do. For an update request, this is always `update`",
            "enum": [
              "update"
            ]
          },
          "template": {
            "description": "The user-data that will be used to generate the certificate",
            "allOf": [
              {
                "$ref": "#/components/schemas/WebRAUpdateRequestTemplateResponse"
              }
            ]
          },
          "certificate": {
            "type": "object",
            "description": "The certificate that was updated for this request. This is only available after the request has been approved",
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/Certificate"
              }
            ]
          }
        },
        "required": [
          "_id",
          "status",
          "registrationDate",
          "lastModificationDate",
          "removeAt",
          "module",
          "profile",
          "template",
          "workflow",
          "holderId"
        ]
      },
      "WebRARecoverRequestOnApproveResponse": {
        "title": "WebRA Recover Request",
        "allOf": [
          {
            "$ref": "#/components/schemas/WebRARecoverRequestOnSubmitResponse"
          }
        ]
      },
      "WebRAMigrateRequestOnGetResponse": {
        "title": "WebRA Migrate Request",
        "allOf": [
          {
            "$ref": "#/components/schemas/RequestBaseResponse"
          }
        ],
        "properties": {
          "module": {
            "allOf": [
              {
                "$ref": "#/components/schemas/Module"
              }
            ],
            "description": "The module of the certificate migrated."
          },
          "workflow": {
            "description": "What this request will do. For a migration request, this is always `migrate`",
            "enum": [
              "migrate"
            ]
          },
          "profile": {
            "description": "The target profile name"
          },
          "template": {
            "description": "The user-data that will be used to generate the certificate",
            "allOf": [
              {
                "$ref": "#/components/schemas/WebRAMigrateRequestTemplateResponse"
              }
            ]
          },
          "certificate": {
            "type": "object",
            "description": "The certificate that was updated for this request. This is only available after the request has been approved",
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/Certificate"
              }
            ]
          },
          "dryRun": {
            "description": "If true, the request is validated, but will not result in a migration",
            "type": "boolean",
            "nullable": true,
            "default": false
          }
        },
        "required": [
          "_id",
          "status",
          "registrationDate",
          "lastModificationDate",
          "removeAt",
          "module",
          "profile",
          "template",
          "workflow",
          "holderId"
        ]
      },
      "WebRARenewRequestOnApproveResponse": {
        "title": "WebRA Renew Request",
        "allOf": [
          {
            "$ref": "#/components/schemas/WebRARenewRequestOnSubmitResponse"
          }
        ]
      },
      "WebRAImportRequestOnGetResponse": {
        "title": "WebRA Import Request",
        "allOf": [
          {
            "$ref": "#/components/schemas/RequestBaseResponse"
          }
        ],
        "properties": {
          "module": {
            "allOf": [
              {
                "$ref": "#/components/schemas/Module"
              }
            ],
            "description": "The module of the certificate imported."
          },
          "workflow": {
            "description": "What this request will do. For an import request, this is always `import`",
            "enum": [
              "import"
            ]
          },
          "template": {
            "description": "The user-data that will be added on certificate import",
            "allOf": [
              {
                "$ref": "#/components/schemas/WebRAImportRequestTemplateResponse"
              }
            ]
          },
          "certificate": {
            "type": "object",
            "description": "The certificate that was generated for this request.",
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/Certificate"
              }
            ]
          },
          "dryRun": {
            "description": "If true, the request is validated, but will not result in an import",
            "type": "boolean",
            "nullable": true,
            "default": false
          }
        },
        "required": [
          "_id",
          "status",
          "registrationDate",
          "lastModificationDate",
          "removeAt",
          "module",
          "profile",
          "workflow",
          "holderId",
          "certificate"
        ]
      },
      "EstEnrollRequestOnGetResponse": {
        "title": "EST Enroll Request",
        "allOf": [
          {
            "$ref": "#/components/schemas/RequestBaseResponse"
          }
        ],
        "properties": {
          "module": {
            "type": "string",
            "description": "The module that will be used to process this request. For an EST request, this is always `est`",
            "enum": [
              "est"
            ]
          },
          "workflow": {
            "type": "string",
            "description": "What this request will do. For an enrollment request, this is always `enroll`",
            "enum": [
              "enroll"
            ]
          },
          "dn": {
            "description": "The DN of the challenge",
            "type": "string",
            "example": "CN=test,O=EVERTRUST"
          },
          "template": {
            "description": "The user-data that will be used to generate the challenge",
            "allOf": [
              {
                "$ref": "#/components/schemas/EstEnrollRequestTemplateResponse"
              }
            ]
          },
          "password": {
            "description": "The password of the challenge.",
            "type": "object",
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/SecretString"
              }
            ]
          }
        },
        "required": [
          "_id",
          "status",
          "registrationDate",
          "lastModificationDate",
          "removeAt",
          "module",
          "profile",
          "workflow"
        ]
      },
      "ScepEnrollRequestOnGetResponse": {
        "title": "SCEP Enroll Request",
        "allOf": [
          {
            "$ref": "#/components/schemas/RequestBaseResponse"
          }
        ],
        "properties": {
          "module": {
            "description": "The module that will be used to process this request. For a SCEP request, this is always `scep`",
            "enum": [
              "scep"
            ]
          },
          "workflow": {
            "description": "What this request will do. For an enrollment request, this is always `enroll`",
            "enum": [
              "enroll"
            ]
          },
          "dn": {
            "description": "The DN of the challenge",
            "type": "string",
            "example": "CN=test,O=EVERTRUST"
          },
          "template": {
            "description": "The user-data that will be used to generate the certificate",
            "allOf": [
              {
                "$ref": "#/components/schemas/ScepEnrollRequestTemplateResponse"
              }
            ]
          },
          "password": {
            "description": "The password of the challenge. Must be set if password mode is `manual`",
            "type": "object",
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/SecretString"
              }
            ]
          }
        },
        "required": [
          "_id",
          "status",
          "registrationDate",
          "lastModificationDate",
          "removeAt",
          "module",
          "profile",
          "workflow"
        ]
      },
      "Workflow": {
        "title": "Workflow",
        "type": "string",
        "description": "The workflow of the request",
        "example": "enroll",
        "enum": [
          "enroll",
          "migrate",
          "revoke",
          "recover",
          "renew",
          "update",
          "import"
        ]
      },
      "WebRAEnrollRequestOnApproveResponse": {
        "title": "WebRA Enroll Request",
        "allOf": [
          {
            "$ref": "#/components/schemas/WebRAEnrollRequestOnSubmitResponse"
          }
        ]
      },
      "WebRAUpdateRequestOnApproveResponse": {
        "title": "WebRA Update Request",
        "allOf": [
          {
            "$ref": "#/components/schemas/WebRAUpdateRequestOnSubmitResponse"
          }
        ]
      },
      "WebRAMigrateRequestOnApproveResponse": {
        "title": "WebRA Migrate Request",
        "allOf": [
          {
            "$ref": "#/components/schemas/WebRAMigrateRequestOnSubmitResponse"
          }
        ]
      },
      "WebRAImportRequestOnApproveResponse": {
        "title": "WebRA Import Request",
        "allOf": [
          {
            "$ref": "#/components/schemas/WebRAImportRequestOnSubmitResponse"
          }
        ]
      },
      "EstEnrollRequestOnApproveResponse": {
        "title": "EST Enroll Request",
        "allOf": [
          {
            "$ref": "#/components/schemas/EstEnrollRequestOnSubmitResponse"
          }
        ]
      },
      "ScepEnrollRequestOnApproveResponse": {
        "title": "SCEP Enroll Request",
        "allOf": [
          {
            "$ref": "#/components/schemas/ScepEnrollRequestOnSubmitResponse"
          }
        ]
      },
      "WebRAEnrollRequestOnApprove": {
        "title": "WebRA Enroll Request",
        "allOf": [
          {
            "$ref": "#/components/schemas/WebRAEnrollRequestBase"
          }
        ],
        "properties": {
          "_id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/Id"
              }
            ]
          },
          "approverComment": {
            "type": "string",
            "description": "Free-text field editable by the approver to provider more context on the request",
            "example": "Denying this request because parameters are missing.",
            "nullable": true
          }
        },
        "required": [
          "_id",
          "workflow",
          "module"
        ]
      },
      "WebRARevokeRequestOnApprove": {
        "title": "WebRA Revoke Request",
        "allOf": [
          {
            "$ref": "#/components/schemas/WebRARevokeRequestBase"
          }
        ],
        "properties": {
          "_id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/Id"
              }
            ]
          },
          "approverComment": {
            "type": "string",
            "description": "Free-text field editable by the approver to provider more context on the request",
            "example": "Denying this request because parameters are missing.",
            "nullable": true
          },
          "module": {
            "type": "string",
            "description": "The module on which the revocation occurred"
          }
        },
        "required": [
          "_id",
          "workflow",
          "module"
        ]
      },
      "WebRAUpdateRequestOnApprove": {
        "title": "WebRA Update Request",
        "allOf": [
          {
            "$ref": "#/components/schemas/WebRAUpdateRequestBase"
          }
        ],
        "properties": {
          "_id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/Id"
              }
            ]
          },
          "approverComment": {
            "type": "string",
            "description": "Free-text field editable by the approver to provider more context on the request",
            "example": "Denying this request because parameters are missing.",
            "nullable": true
          }
        },
        "required": [
          "_id",
          "workflow"
        ]
      },
      "WebRARecoverRequestOnApprove": {
        "title": "WebRA Recover Request",
        "allOf": [
          {
            "$ref": "#/components/schemas/WebRARecoverRequestBase"
          }
        ],
        "properties": {
          "_id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/Id"
              }
            ]
          },
          "approverComment": {
            "type": "string",
            "description": "Free-text field editable by the approver to provider more context on the request",
            "example": "Denying this request because parameters are missing.",
            "nullable": true
          }
        },
        "required": [
          "_id",
          "workflow"
        ]
      },
      "WebRAMigrateRequestOnApprove": {
        "title": "WebRA Migrate Request",
        "allOf": [
          {
            "$ref": "#/components/schemas/WebRAMigrateRequestBase"
          }
        ],
        "properties": {
          "_id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/Id"
              }
            ]
          },
          "approverComment": {
            "type": "string",
            "description": "Free-text field editable by the approver to provider more context on the request",
            "example": "Denying this request because parameters are missing.",
            "nullable": true
          }
        },
        "required": [
          "_id",
          "workflow",
          "module"
        ]
      },
      "WebRARenewRequestOnApprove": {
        "title": "WebRA Renew Request",
        "allOf": [
          {
            "$ref": "#/components/schemas/WebRARenewRequestBase"
          }
        ],
        "properties": {
          "_id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/Id"
              }
            ]
          },
          "approverComment": {
            "type": "string",
            "description": "Free-text field editable by the approver to provider more context on the request",
            "example": "Denying this request because parameters are missing.",
            "nullable": true
          }
        },
        "required": [
          "_id",
          "workflow",
          "module"
        ]
      },
      "WebRAImportRequestOnApprove": {
        "title": "WebRA Import Request",
        "allOf": [
          {
            "$ref": "#/components/schemas/WebRAImportRequestBase"
          }
        ],
        "properties": {
          "_id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/Id"
              }
            ]
          },
          "approverComment": {
            "type": "string",
            "description": "Free-text field editable by the approver to provider more context on the request",
            "example": "Denying this request because parameters are missing.",
            "nullable": true
          }
        },
        "required": [
          "_id",
          "workflow",
          "module"
        ]
      },
      "EstEnrollRequestOnApprove": {
        "title": "EST Enroll Request",
        "allOf": [
          {
            "$ref": "#/components/schemas/EstEnrollRequestBase"
          }
        ],
        "properties": {
          "_id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/Id"
              }
            ]
          },
          "approverComment": {
            "type": "string",
            "description": "Free-text field editable by the approver to provider more context on the request",
            "example": "Denying this request because parameters are missing.",
            "nullable": true
          }
        },
        "required": [
          "_id",
          "workflow",
          "module"
        ]
      },
      "ScepEnrollRequestOnApprove": {
        "title": "SCEP Enroll Request",
        "allOf": [
          {
            "$ref": "#/components/schemas/ScepEnrollRequestBase"
          }
        ],
        "properties": {
          "_id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/Id"
              }
            ]
          },
          "approverComment": {
            "type": "string",
            "description": "Free-text field editable by the approver to provider more context on the request",
            "example": "Denying this request because parameters are missing.",
            "nullable": true
          }
        },
        "required": [
          "_id",
          "workflow",
          "module"
        ]
      },
      "WebraMigrate006": {
        "title": "WEBRA-MIGRATE-006",
        "description": "Unable to validate pending migrate request. The certificate profile was modified and the request can only be canceled or denied",
        "allOf": [
          {
            "$ref": "#/components/schemas/BasicError"
          }
        ],
        "properties": {
          "error": {
            "enum": [
              "WEBRA-MIGRATE-006"
            ]
          },
          "message": {
            "enum": [
              "Unable to validate pending migrate request. The certificate profile was modified and the request can only be canceled or denied"
            ]
          },
          "title": {
            "enum": [
              "Unable to validate pending migrate request. The certificate profile was modified and the request can only be canceled or denied"
            ]
          }
        },
        "required": [
          "error",
          "message",
          "title"
        ]
      },
      "WebraImport002": {
        "title": "WEBRA-IMPORT-002",
        "description": "Unable to validate pending import request. The profile was modified and the request can only be canceled or denied",
        "allOf": [
          {
            "$ref": "#/components/schemas/BasicError"
          }
        ],
        "properties": {
          "error": {
            "enum": [
              "WEBRA-IMPORT-002"
            ]
          },
          "message": {
            "enum": [
              "Unable to validate pending import request. The profile was modified and the request can only be canceled or denied"
            ]
          },
          "title": {
            "enum": [
              "Unable to validate pending import request. The profile was modified and the request can only be canceled or denied"
            ]
          }
        },
        "required": [
          "error",
          "message",
          "title"
        ]
      },
      "WebraMigrate002": {
        "title": "WEBRA-MIGRATE-002",
        "description": "Invalid Web Registration Authority Migrate Request",
        "allOf": [
          {
            "$ref": "#/components/schemas/BasicError"
          }
        ],
        "properties": {
          "error": {
            "enum": [
              "WEBRA-MIGRATE-002"
            ]
          },
          "message": {
            "enum": [
              "Invalid Web Registration Authority Migrate Request"
            ]
          },
          "title": {
            "enum": [
              "Invalid Web Registration Authority Migrate Request"
            ]
          }
        },
        "required": [
          "error",
          "message",
          "title"
        ]
      },
      "WebraMigrate003": {
        "title": "WEBRA-MIGRATE-003",
        "description": "Missing Web Registration Authority Migrate Request Template on approved request",
        "allOf": [
          {
            "$ref": "#/components/schemas/BasicError"
          }
        ],
        "properties": {
          "error": {
            "enum": [
              "WEBRA-MIGRATE-003"
            ]
          },
          "message": {
            "enum": [
              "Missing Web Registration Authority Migrate Request Template on approved request"
            ]
          },
          "title": {
            "enum": [
              "Missing Web Registration Authority Migrate Request Template on approved request"
            ]
          }
        },
        "required": [
          "error",
          "message",
          "title"
        ]
      },
      "WebraMigrate004": {
        "title": "WEBRA-MIGRATE-004",
        "description": "Missing Web Registration Authority Migrate Request Template on pending request",
        "allOf": [
          {
            "$ref": "#/components/schemas/BasicError"
          }
        ],
        "properties": {
          "error": {
            "enum": [
              "WEBRA-MIGRATE-004"
            ]
          },
          "message": {
            "enum": [
              "Missing Web Registration Authority Migrate Request Template on pending request"
            ]
          },
          "title": {
            "enum": [
              "Missing Web Registration Authority Migrate Request Template on pending request"
            ]
          }
        },
        "required": [
          "error",
          "message",
          "title"
        ]
      },
      "RequestSearchDictionaryResponse": {
        "properties": {
          "profiles": {
            "description": "The list of profiles the principal is authorized to search on",
            "type": "array",
            "nullable": true,
            "items": {
              "$ref": "#/components/schemas/CertificateProfileSearchDictionaryLocalizedEntry"
            }
          },
          "teams": {
            "description": "The list of available teams on this Horizon instance",
            "type": "array",
            "nullable": true,
            "items": {
              "$ref": "#/components/schemas/TeamSearchDictionaryLocalizedEntry"
            }
          },
          "labels": {
            "description": "The list of labels the principal is authorized to search on",
            "type": "array",
            "nullable": true,
            "items": {
              "$ref": "#/components/schemas/CertificateLabelSearchDictionaryLocalizedEntry"
            }
          },
          "metadata": {
            "description": "The list of available metadata in Horizon",
            "type": "array",
            "example": [
              "pki_connector",
              "automation_policy",
              "..."
            ],
            "items": {
              "type": "string"
            }
          },
          "modules": {
            "description": "The list of Horizon modules available on this instance",
            "type": "array",
            "example": [
              "webra",
              "est",
              "..."
            ],
            "nullable": true,
            "items": {
              "type": "string"
            }
          }
        },
        "required": [
          "metadata"
        ]
      },
      "RequestSearchQuery": {
        "properties": {
          "query": {
            "description": "The HRQL query to use for the search, represents the way to filter requests. Filters nothing if not specified",
            "example": "request is not expired",
            "type": "string",
            "nullable": true
          },
          "fields": {
            "description": "The fields to be returned by the search. If this parameter is not specified, everything is returned by default. If this parameter is equal to an empty array, only the `_id` field is returned",
            "example": [
              "workflow",
              "profile",
              "registrationDate",
              "status",
              "_id",
              "module",
              "expirationDate"
            ],
            "type": "array",
            "nullable": true,
            "items": {
              "type": "string"
            }
          },
          "sortedBy": {
            "description": "The way to sort the search results",
            "type": "array",
            "nullable": true,
            "items": {
              "$ref": "#/components/schemas/SortElement"
            }
          },
          "pageIndex": {
            "description": "The index of the page to retrieve",
            "type": "integer",
            "format": "int32",
            "nullable": true,
            "default": 1
          },
          "pageSize": {
            "description": "The maximum number of items to retrieve for one page",
            "type": "integer",
            "format": "int32",
            "nullable": true,
            "default": 50
          },
          "withCount": {
            "description": "Whether to return the total count of requests matching the HRQL query",
            "type": "boolean",
            "nullable": true,
            "default": false
          },
          "scope": {
            "description": "The scope of the search. `manage` only searches among requests that the currently logged in user has the rights to manage. `search` searches among all visible requests to the logged in user. `self` searches among requests that the currently logged in user or its team has issued",
            "type": "string",
            "nullable": true,
            "enum": [
              "manage",
              "search",
              "self"
            ],
            "x-enumDescriptions": {
              "manage": "Only search among requests that the currently logged in user has the right to manage",
              "search": "Search among all visible requests to the logged in user",
              "self": "Search among requests that the currently logged in user or its team has issued"
            }
          }
        }
      },
      "Profile": {
        "title": "Enrollment profile",
        "description": "Any profile configured for a protocol in Horizon",
        "type": "string",
        "example": "DefaultProfile"
      },
      "RequestPermissions": {
        "properties": {
          "approve": {
            "description": "Whether the principal can approve or deny the request (manage rights)",
            "type": "boolean",
            "nullable": true
          },
          "cancel": {
            "description": "Whether the principal can cancel the request (owner or team of the request)",
            "type": "boolean",
            "nullable": true
          }
        }
      },
      "RequestSearchResult": {
        "properties": {
          "_id": {
            "description": "The ID of the request",
            "allOf": [
              {
                "$ref": "#/components/schemas/Id"
              }
            ]
          },
          "module": {
            "$ref": "#/components/schemas/Module"
          },
          "workflow": {
            "$ref": "#/components/schemas/Workflow"
          },
          "status": {
            "$ref": "#/components/schemas/RequestStatus"
          },
          "profile": {
            "$ref": "#/components/schemas/Profile"
          },
          "requesterComment": {
            "type": "string",
            "description": "Free-text field editable by the requester to provider more context on the request",
            "example": "I need this certificate to access the VPN.",
            "nullable": true
          },
          "certificateId": {
            "description": "The id of the certificate in the request",
            "nullable": true,
            "type": "string",
            "allOf": [
              {
                "$ref": "#/components/schemas/Id"
              }
            ]
          },
          "certificate": {
            "description": "The certificate associated with the request",
            "nullable": true,
            "type": "object",
            "allOf": [
              {
                "$ref": "#/components/schemas/Certificate"
              }
            ]
          },
          "dn": {
            "description": "Associated certificate's Distinguished Name",
            "type": "string"
          },
          "holderId": {
            "description": "The computed holderID for this request. This is set by the system based on DN and SANs",
            "allOf": [
              {
                "$ref": "#/components/schemas/HolderId"
              }
            ]
          },
          "permissions": {
            "description": "The permissions of the principal on this request.",
            "allOf": [
              {
                "$ref": "#/components/schemas/RequestPermissions"
              }
            ]
          }
        },
        "required": [
          "_id",
          "permissions"
        ]
      },
      "RequestSearchResultsResponse": {
        "properties": {
          "results": {
            "description": "The list of requests matching the HRQL query",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/RequestSearchResult"
            }
          },
          "pageIndex": {
            "description": "The index of the results page",
            "type": "integer",
            "format": "int32",
            "example": 1
          },
          "pageSize": {
            "description": "The maximum number of items on this page",
            "type": "integer",
            "format": "int32",
            "example": 50
          },
          "count": {
            "description": "The total count of requests matching the HRQL query",
            "type": "integer",
            "format": "int32",
            "example": 50
          },
          "hasMore": {
            "type": "boolean",
            "description": "Indicates whether the response represents the last page of results (if set to `false`) or not (if set to `true`)"
          }
        },
        "required": [
          "results",
          "pageIndex",
          "pageSize",
          "hasMore"
        ]
      },
      "Req006": {
        "title": "REQ-006",
        "description": "Invalid Request Search Query",
        "allOf": [
          {
            "$ref": "#/components/schemas/BasicError"
          }
        ],
        "properties": {
          "error": {
            "enum": [
              "REQ-006"
            ]
          },
          "message": {
            "enum": [
              "Invalid Request Search Query"
            ]
          },
          "title": {
            "enum": [
              "Invalid Request Search Query"
            ]
          }
        },
        "required": [
          "error",
          "message",
          "title"
        ]
      },
      "RequestAggregateQuery": {
        "properties": {
          "query": {
            "description": "The HRQL query to use for the search, represents the way to filter requests. If not specified, it will filter nothing",
            "example": "status equals \"pending\"",
            "type": "string",
            "nullable": true
          },
          "groupBy": {
            "description": "The field that the aggregation will take place on",
            "example": [
              "workflow"
            ],
            "type": "array",
            "nullable": true,
            "items": {
              "type": "string"
            }
          },
          "withCount": {
            "description": "If set to `true`, the total count of requests matching the HRQL query will be returned",
            "type": "boolean",
            "nullable": true
          },
          "sortOrder": {
            "type": "string",
            "nullable": true,
            "enum": [
              "Asc",
              "Desc",
              "KeyAsc",
              "KeyDesc"
            ]
          },
          "limit": {
            "description": "In case of an aggregate sending a lot of different results, how many must be sent back",
            "example": 3,
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "having": {
            "description": "A condition to apply to the result. Only the aggregates results with more than 5 requests in them can be kept for example",
            "nullable": true,
            "type": "object",
            "allOf": [
              {
                "$ref": "#/components/schemas/Having"
              }
            ]
          },
          "scope": {
            "description": "The scope of the aggregate. `manage` only aggregates among requests that the currently logged in user has the rights to manage. `search` aggregates among all visible requests to the logged in user. `self` aggregates among requests that the currently logged in user or its team has issued",
            "type": "string",
            "nullable": true,
            "enum": [
              "manage",
              "search",
              "self"
            ],
            "x-enumDescriptions": {
              "manage": "Only search among requests that the currently logged in user has the right to manage",
              "search": "Search among all visible requests to the logged in user",
              "self": "Search among requests that the currently logged in user or its team has issued"
            }
          }
        }
      },
      "RequestAggregateResultResponse": {
        "properties": {
          "items": {
            "description": "All the groups in this aggregate",
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "_id": {
                  "type": "object",
                  "description": "The object containing this group's information",
                  "properties": {
                    "groupedByField": {
                      "type": "string",
                      "example": "enroll",
                      "description": "This field has the requested aggregate field as key, and the value for this group as value"
                    }
                  }
                },
                "count": {
                  "description": "The number of requests in this group",
                  "type": "integer",
                  "example": 6
                }
              }
            }
          },
          "count": {
            "description": "The total number of requests matching the query",
            "type": "integer",
            "format": "int64",
            "nullable": true,
            "example": 6
          }
        },
        "required": [
          "items"
        ]
      },
      "Req008": {
        "title": "REQ-008",
        "description": "Invalid Request Aggregate Query",
        "allOf": [
          {
            "$ref": "#/components/schemas/BasicError"
          }
        ],
        "properties": {
          "error": {
            "enum": [
              "REQ-008"
            ]
          },
          "message": {
            "enum": [
              "Invalid Request Aggregate Query"
            ]
          },
          "title": {
            "enum": [
              "Invalid Request Aggregate Query"
            ]
          }
        },
        "required": [
          "error",
          "message",
          "title"
        ]
      },
      "DiscoveryCampaignAuthorizationLevels": {
        "properties": {
          "search": {
            "allOf": [
              {
                "$ref": "#/components/schemas/AuthorizationLevel"
              }
            ],
            "description": "The authorization level required to search the discovered certificates of this campaign"
          },
          "feed": {
            "allOf": [
              {
                "$ref": "#/components/schemas/AuthorizationLevel"
              }
            ],
            "description": "The authorization level required to feed certificates into this discovery campaign"
          }
        },
        "required": [
          "search",
          "feed"
        ]
      },
      "DiscoveryCampaignResponse": {
        "properties": {
          "_id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/Id"
              }
            ]
          },
          "name": {
            "type": "string",
            "description": "The name of the discovery campaign",
            "example": "DiscoveryDMZ01"
          },
          "description": {
            "type": "string",
            "nullable": true,
            "description": "The description of the discovery campaign",
            "example": "Discovery campaign that scans the DMZ 01"
          },
          "authorizationLevels": {
            "allOf": [
              {
                "$ref": "#/components/schemas/DiscoveryCampaignAuthorizationLevels"
              }
            ],
            "description": "The authorization levels of the discovery campaign"
          },
          "eventOnSuccess": {
            "type": "boolean",
            "description": "Whether to log a Horizon event in case of success",
            "example": false
          },
          "eventOnWarning": {
            "type": "boolean",
            "description": "Whether to log a Horizon event in case of warning",
            "example": false
          },
          "eventOnFailure": {
            "type": "boolean",
            "description": "Whether to log a Horizon event in case of failure",
            "example": true
          },
          "hosts": {
            "type": "array",
            "nullable": true,
            "items": {
              "type": "string"
            },
            "description": "The hosts to be scanned by the discovery campaign",
            "example": [
              "horizon.evertrust.fr"
            ]
          },
          "ports": {
            "type": "array",
            "nullable": true,
            "items": {
              "type": "string"
            },
            "description": "The ports to be scanned by the discovery campaign",
            "example": [
              "443"
            ],
            "default": [
              "25",
              "443",
              "8443",
              "689"
            ]
          },
          "enabled": {
            "type": "boolean",
            "description": "Whether the discovery campaign is enabled, i.e. whether it can be fed",
            "example": true
          },
          "gradingPolicies": {
            "type": "array",
            "nullable": true,
            "items": {
              "type": "string"
            },
            "description": "The grading policies to apply to grade the discovered certificates on this campaign",
            "example": [
              "Horizon-Grading-Policy"
            ]
          }
        },
        "required": [
          "_id",
          "name",
          "authorizationLevels",
          "eventOnSuccess",
          "eventOnWarning",
          "eventOnFailure",
          "enabled"
        ]
      },
      "DiscCamp001": {
        "title": "DISC-CAMP-001",
        "description": "Unexpected error",
        "allOf": [
          {
            "$ref": "#/components/schemas/BasicError"
          }
        ],
        "properties": {
          "error": {
            "enum": [
              "DISC-CAMP-001"
            ]
          },
          "message": {
            "enum": [
              "Unexpected error"
            ]
          },
          "title": {
            "enum": [
              "Unexpected error"
            ]
          }
        },
        "required": [
          "error",
          "message",
          "title"
        ]
      },
      "DiscoveryCampaign": {
        "properties": {
          "name": {
            "type": "string",
            "description": "The name of the discovery campaign",
            "example": "DiscoveryDMZ01"
          },
          "description": {
            "type": "string",
            "nullable": true,
            "description": "The description of the discovery campaign",
            "example": "Discovery campaign that scans the DMZ 01"
          },
          "authorizationLevels": {
            "allOf": [
              {
                "$ref": "#/components/schemas/DiscoveryCampaignAuthorizationLevels"
              }
            ],
            "description": "The authorization levels of the discovery campaign"
          },
          "eventOnSuccess": {
            "type": "boolean",
            "description": "Whether to log a Horizon event in case of success",
            "example": false
          },
          "eventOnWarning": {
            "type": "boolean",
            "description": "Whether to log a Horizon event in case of warning",
            "example": false
          },
          "eventOnFailure": {
            "type": "boolean",
            "description": "Whether to log a Horizon event in case of failure",
            "example": true
          },
          "hosts": {
            "type": "array",
            "nullable": true,
            "items": {
              "type": "string"
            },
            "description": "The hosts to be scanned by the discovery campaign",
            "example": [
              "horizon.evertrust.fr"
            ]
          },
          "ports": {
            "type": "array",
            "nullable": true,
            "items": {
              "type": "string"
            },
            "description": "The ports to be scanned by the discovery campaign",
            "example": [
              "443"
            ],
            "default": [
              "25",
              "443",
              "8443",
              "689"
            ]
          },
          "enabled": {
            "type": "boolean",
            "description": "Whether the discovery campaign is enabled, i.e. whether it can be fed",
            "example": true
          },
          "gradingPolicies": {
            "type": "array",
            "nullable": true,
            "items": {
              "type": "string"
            },
            "description": "The grading policies to apply to grade the discovered certificates on this campaign",
            "example": [
              "Horizon-Grading-Policy"
            ]
          }
        },
        "required": [
          "name",
          "authorizationLevels",
          "eventOnSuccess",
          "eventOnWarning",
          "eventOnFailure",
          "enabled"
        ]
      },
      "DiscCamp002": {
        "title": "DISC-CAMP-002",
        "description": "Invalid discovery campaign",
        "allOf": [
          {
            "$ref": "#/components/schemas/BasicError"
          }
        ],
        "properties": {
          "error": {
            "enum": [
              "DISC-CAMP-002"
            ]
          },
          "message": {
            "enum": [
              "Invalid discovery campaign"
            ]
          },
          "title": {
            "enum": [
              "Invalid discovery campaign"
            ]
          }
        },
        "required": [
          "error",
          "message",
          "title"
        ]
      },
      "DiscCamp003": {
        "title": "DISC-CAMP-003",
        "description": "Discovery campaign not found",
        "allOf": [
          {
            "$ref": "#/components/schemas/BasicError"
          }
        ],
        "properties": {
          "error": {
            "enum": [
              "DISC-CAMP-003"
            ]
          },
          "message": {
            "enum": [
              "Discovery campaign not found"
            ]
          },
          "title": {
            "enum": [
              "Discovery campaign not found"
            ]
          }
        },
        "required": [
          "error",
          "message",
          "title"
        ]
      },
      "DiscCamp004": {
        "title": "DISC-CAMP-004",
        "description": "Discovery campaign already exists",
        "allOf": [
          {
            "$ref": "#/components/schemas/BasicError"
          }
        ],
        "properties": {
          "error": {
            "enum": [
              "DISC-CAMP-004"
            ]
          },
          "message": {
            "enum": [
              "Discovery campaign already exists"
            ]
          },
          "title": {
            "enum": [
              "Discovery campaign already exists"
            ]
          }
        },
        "required": [
          "error",
          "message",
          "title"
        ]
      },
      "DiscoveryEventResponse": {
        "properties": {
          "_id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/Id"
              }
            ]
          },
          "code": {
            "type": "string",
            "enum": [
              "NETSCAN",
              "IMPORTSCAN-UPDATE",
              "NETSCAN-UPDATE",
              "IMPORTSCAN-REGISTER",
              "LOCALIMPORT-REGISTER",
              "LOCALSCAN-UPDATE",
              "ACME-UPDATE",
              "WEBRA-UPDATE",
              "LOCALIMPORT",
              "WEBRA-REGISTER",
              "SESSION-START",
              "NETIMPORT-REGISTER",
              "ACME-REGISTER",
              "EST-REGISTER",
              "NETIMPORT-UPDATE",
              "SESSION-END",
              "WEBRA",
              "LOCALIMPORT-UPDATE",
              "EST",
              "IMPORTSCAN",
              "LOCALSCAN",
              "NETSCAN-REGISTER",
              "ACME",
              "NETIMPORT",
              "EST-UPDATE",
              "UNKNOWN",
              "LOCALSCAN-REGISTER"
            ],
            "description": "The code of the event to raise in the discovery events",
            "example": "NETSCAN"
          },
          "campaign": {
            "type": "string",
            "description": "The name of the discovery campaign concerned by the event",
            "example": "Discovery-DMZ01"
          },
          "sessionId": {
            "nullable": true,
            "type": "string",
            "description": "The ID of the discovery feed session",
            "example": "63fce2e13000003c008797c4"
          },
          "status": {
            "type": "string",
            "enum": [
              "success",
              "warning",
              "failure"
            ],
            "description": "The type of event to raise",
            "example": "failure"
          },
          "errorCode": {
            "type": "string",
            "nullable": true,
            "description": "The error code of the event",
            "example": "DISC-FEED-002"
          },
          "errorMessage": {
            "type": "string",
            "nullable": true,
            "description": "The error message of the event",
            "example": "Invalid Discovery Feed"
          },
          "timestamp": {
            "type": "integer",
            "format": "epoch",
            "nullable": true,
            "description": "When did the event occur (Unix timestamp in milliseconds)",
            "example": 1600050000000
          },
          "removeAt": {
            "nullable": true,
            "type": "integer",
            "format": "epoch"
          },
          "clientVersion": {
            "type": "string",
            "nullable": true,
            "description": "The version of the discovery client that raised the event",
            "example": "Horizon Client/1.6"
          },
          "clientIp": {
            "type": "string",
            "nullable": true,
            "description": "The IP of the machine where the Horizon client is running from",
            "example": "127.0.0.1"
          },
          "clientId": {
            "type": "string",
            "nullable": true,
            "example": "28fd6b8ec75ce39029509c3e76ecd3c0bb160776df89a4a12f4a097862268721"
          },
          "actorId": {
            "type": "string",
            "nullable": true,
            "example": "horizon-client",
            "description": "The identifier of the principal that was used when the event was raised"
          },
          "certificateId": {
            "nullable": true,
            "type": "string",
            "description": "The ID of the certificate concerned by the event (in Horizon)",
            "example": "5f5f9b3b9b0b1d0311c3b0a2"
          },
          "hostname": {
            "type": "string",
            "nullable": true,
            "description": "The hostname concerned by the event",
            "example": "horizon.evertrust.fr"
          },
          "ip": {
            "type": "string",
            "nullable": true,
            "description": "The IP address concerned by the event",
            "example": "127.0.0.1"
          },
          "port": {
            "type": "integer",
            "format": "int32",
            "nullable": true,
            "description": "The TCP port concerned by the event",
            "example": 443
          },
          "source": {
            "type": "string",
            "nullable": true,
            "description": "The type of discovery that raised the event",
            "example": "netscan"
          }
        },
        "required": [
          "_id",
          "code",
          "campaign",
          "status"
        ]
      },
      "DiscEvt003": {
        "allOf": [
          {
            "$ref": "#/components/schemas/BasicError"
          }
        ],
        "description": "Discovery event not found",
        "properties": {
          "error": {
            "enum": [
              "DISC-EVT-003"
            ]
          },
          "message": {
            "enum": [
              "Discovery event not found"
            ]
          },
          "title": {
            "enum": [
              "Discovery event not found"
            ]
          }
        },
        "title": "DISC-EVT-003",
        "required": [
          "error",
          "message",
          "title"
        ]
      },
      "DiscoveryFeedSessionResponse": {
        "properties": {
          "id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/Id"
              }
            ]
          },
          "campaign": {
            "type": "string",
            "description": "The name of the discovery campaign the feed session belongs to",
            "example": "Discovery-DMZ01"
          },
          "description": {
            "type": "string",
            "nullable": true,
            "description": "The description of the discovery feed session",
            "example": "Discovery feed session for DMZ01"
          },
          "eventOnSuccess": {
            "type": "boolean",
            "nullable": true,
            "description": "Whether to generate an event on success (defaults to the campaign setting)",
            "example": false
          },
          "eventOnWarning": {
            "type": "boolean",
            "nullable": true,
            "description": "Whether to generate an event on warning (defaults to the campaign setting)",
            "example": false
          },
          "eventOnFailure": {
            "type": "boolean",
            "nullable": true,
            "description": "Whether to generate an event on failure (defaults to the campaign setting)",
            "example": true
          },
          "hosts": {
            "type": "array",
            "nullable": true,
            "description": "The hosts on which the discovery campaign takes place",
            "items": {
              "type": "string"
            }
          },
          "ports": {
            "description": "The ports on which the discovery campaign takes place",
            "type": "array",
            "nullable": true,
            "items": {
              "type": "integer"
            }
          }
        },
        "required": [
          "id",
          "campaign"
        ]
      },
      "DiscFeed001": {
        "title": "DISC-FEED-001",
        "description": "Unexpected error",
        "allOf": [
          {
            "$ref": "#/components/schemas/BasicError"
          }
        ],
        "properties": {
          "error": {
            "enum": [
              "DISC-FEED-001"
            ]
          },
          "message": {
            "enum": [
              "Unexpected error"
            ]
          },
          "title": {
            "enum": [
              "Unexpected error"
            ]
          }
        },
        "required": [
          "error",
          "message",
          "title"
        ]
      },
      "DiscoveryEvent": {
        "properties": {
          "code": {
            "type": "string",
            "enum": [
              "NETSCAN",
              "IMPORTSCAN-UPDATE",
              "NETSCAN-UPDATE",
              "IMPORTSCAN-REGISTER",
              "LOCALIMPORT-REGISTER",
              "LOCALSCAN-UPDATE",
              "ACME-UPDATE",
              "WEBRA-UPDATE",
              "LOCALIMPORT",
              "WEBRA-REGISTER",
              "SESSION-START",
              "NETIMPORT-REGISTER",
              "ACME-REGISTER",
              "EST-REGISTER",
              "NETIMPORT-UPDATE",
              "SESSION-END",
              "WEBRA",
              "LOCALIMPORT-UPDATE",
              "EST",
              "IMPORTSCAN",
              "LOCALSCAN",
              "NETSCAN-REGISTER",
              "ACME",
              "NETIMPORT",
              "EST-UPDATE",
              "UNKNOWN",
              "LOCALSCAN-REGISTER"
            ],
            "description": "The code of the event to raise in the discovery events",
            "example": "NETSCAN"
          },
          "campaign": {
            "type": "string",
            "description": "The name of the discovery campaign concerned by the event",
            "example": "Discovery-DMZ01"
          },
          "sessionId": {
            "nullable": true,
            "type": "string",
            "description": "The ID of the discovery feed session",
            "example": "63fce2e13000003c008797c4"
          },
          "status": {
            "type": "string",
            "enum": [
              "success",
              "warning",
              "failure"
            ],
            "description": "The type of event to raise",
            "example": "failure"
          },
          "errorCode": {
            "type": "string",
            "nullable": true,
            "description": "The error code of the event",
            "example": "DISC-FEED-002"
          },
          "errorMessage": {
            "type": "string",
            "nullable": true,
            "description": "The error message of the event",
            "example": "Invalid Discovery Feed"
          },
          "timestamp": {
            "type": "integer",
            "format": "epoch",
            "nullable": true,
            "description": "When did the event occur (Unix timestamp in milliseconds)",
            "example": 1600050000000
          },
          "removeAt": {
            "nullable": true,
            "type": "integer",
            "format": "epoch"
          },
          "clientVersion": {
            "type": "string",
            "nullable": true,
            "description": "The version of the discovery client that raised the event",
            "example": "Horizon Client/1.6"
          },
          "clientIp": {
            "type": "string",
            "nullable": true,
            "description": "The IP of the machine where the Horizon client is running from",
            "example": "127.0.0.1"
          },
          "clientId": {
            "type": "string",
            "nullable": true,
            "example": "28fd6b8ec75ce39029509c3e76ecd3c0bb160776df89a4a12f4a097862268721"
          },
          "actorId": {
            "type": "string",
            "nullable": true,
            "example": "horizon-client",
            "description": "The identifier of the principal that was used when the event was raised"
          },
          "certificateId": {
            "nullable": true,
            "type": "string",
            "description": "The ID of the certificate concerned by the event (in Horizon)",
            "example": "5f5f9b3b9b0b1d0311c3b0a2"
          },
          "hostname": {
            "type": "string",
            "nullable": true,
            "description": "The hostname concerned by the event",
            "example": "horizon.evertrust.fr"
          },
          "ip": {
            "type": "string",
            "nullable": true,
            "description": "The IP address concerned by the event",
            "example": "127.0.0.1"
          },
          "port": {
            "type": "integer",
            "format": "int32",
            "nullable": true,
            "description": "The TCP port concerned by the event",
            "example": 443
          },
          "source": {
            "type": "string",
            "nullable": true,
            "description": "The type of discovery that raised the event",
            "example": "netscan"
          }
        },
        "required": [
          "code",
          "campaign",
          "status"
        ]
      },
      "DiscFeed004": {
        "title": "DISC-FEED-004",
        "description": "Invalid Discovery Feed",
        "allOf": [
          {
            "$ref": "#/components/schemas/BasicError"
          }
        ],
        "properties": {
          "error": {
            "enum": [
              "DISC-FEED-004"
            ]
          },
          "message": {
            "enum": [
              "Invalid Discovery Feed"
            ]
          },
          "title": {
            "enum": [
              "Invalid Discovery Feed"
            ]
          }
        },
        "required": [
          "error",
          "message",
          "title"
        ]
      },
      "DiscoveryFeed": {
        "properties": {
          "campaign": {
            "type": "string",
            "description": "The name of the discovery campaign to feed into",
            "example": "Discovery-DMZ01"
          },
          "sessionId": {
            "nullable": true,
            "type": "string",
            "description": "The ID of the previously opened discovery feed session",
            "example": "5f7b1b3b9b0b1d0001b9b0b1"
          },
          "code": {
            "type": "string",
            "nullable": true,
            "enum": [
              "NETSCAN",
              "IMPORTSCAN-UPDATE",
              "NETSCAN-UPDATE",
              "IMPORTSCAN-REGISTER",
              "LOCALIMPORT-REGISTER",
              "LOCALSCAN-UPDATE",
              "ACME-UPDATE",
              "WEBRA-UPDATE",
              "LOCALIMPORT",
              "WEBRA-REGISTER",
              "SESSION-START",
              "NETIMPORT-REGISTER",
              "ACME-REGISTER",
              "EST-REGISTER",
              "NETIMPORT-UPDATE",
              "SESSION-END",
              "WEBRA",
              "LOCALIMPORT-UPDATE",
              "EST",
              "IMPORTSCAN",
              "LOCALSCAN",
              "NETSCAN-REGISTER",
              "ACME",
              "NETIMPORT",
              "EST-UPDATE",
              "UNKNOWN",
              "LOCALSCAN-REGISTER"
            ],
            "description": "The code of the event to raise in the discovery events",
            "example": "NETSCAN-REGISTER"
          },
          "certificate": {
            "type": "string",
            "description": "The PEM-encoded certificate to feed the discovery campaign with",
            "example": "-----BEGIN CERTIFICATE-----..."
          },
          "hostDiscoveryData": {
            "allOf": [
              {
                "$ref": "#/components/schemas/HostDiscoveryData"
              }
            ],
            "description": "The host discovery data to feed the discovery campaign with (discovery metadata)"
          },
          "metadata": {
            "type": "array",
            "nullable": true,
            "items": {
              "$ref": "#/components/schemas/CertificateMetadata"
            },
            "description": "The list of certificate metadata to feed the discovery campaign with"
          },
          "privateKey": {
            "nullable": true,
            "type": "string",
            "format": "PKCS#8 PEM encoded",
            "description": "The PEM-encoded private key to feed the discovery campaign with",
            "example": "-----BEGIN PRIVATE KEY-----..."
          }
        },
        "required": [
          "campaign",
          "certificate",
          "hostDiscoveryData"
        ]
      },
      "DiscFeed002": {
        "title": "DISC-FEED-002",
        "description": "Invalid Discovery Feed",
        "allOf": [
          {
            "$ref": "#/components/schemas/BasicError"
          }
        ],
        "properties": {
          "error": {
            "enum": [
              "DISC-FEED-002"
            ]
          },
          "message": {
            "enum": [
              "Invalid Discovery Feed"
            ]
          },
          "title": {
            "enum": [
              "Invalid Discovery Feed"
            ]
          }
        },
        "required": [
          "error",
          "message",
          "title"
        ]
      },
      "DiscFeed003": {
        "title": "DISC-FEED-003",
        "description": "Invalid Discovery feed session",
        "allOf": [
          {
            "$ref": "#/components/schemas/BasicError"
          }
        ],
        "properties": {
          "error": {
            "enum": [
              "DISC-FEED-003"
            ]
          },
          "message": {
            "enum": [
              "Invalid Discovery feed session"
            ]
          },
          "title": {
            "enum": [
              "Invalid Discovery feed session"
            ]
          }
        },
        "required": [
          "error",
          "message",
          "title"
        ]
      },
      "Identity": {
        "title": "Identity",
        "description": "The principal's identity",
        "properties": {
          "identifier": {
            "type": "string",
            "description": "The principal's identifier",
            "example": "administrator"
          },
          "email": {
            "type": "string",
            "nullable": true,
            "description": "The principal's e-mail",
            "example": "administrator@horizon.evertrust.fr"
          },
          "name": {
            "type": "string",
            "nullable": true,
            "description": "The principal's name",
            "example": "Administrator"
          },
          "identityProviderType": {
            "type": "string",
            "nullable": true,
            "enum": [
              "Local",
              "OpenId",
              "X509"
            ],
            "description": "The identity provider's type this principal is registered on",
            "example": "Local"
          },
          "identityProviderName": {
            "type": "string",
            "nullable": true,
            "description": "The identity provider's name this principal is registered on",
            "example": "local"
          },
          "certificate": {
            "nullable": true,
            "type": "string",
            "description": "The principal's certificate (in case of `X509` identity provider)"
          }
        },
        "required": [
          "identifier"
        ]
      },
      "LocalizedStringResponse": {
        "title": "LocalizedString",
        "properties": {
          "lang": {
            "description": "The ISO 3166-1 (2-letters) code of the language used for the value",
            "example": "en",
            "type": "string"
          },
          "value": {
            "description": "The localized value",
            "example": "Value In English",
            "type": "string"
          }
        },
        "required": [
          "lang",
          "value"
        ]
      },
      "PrincipalResponse": {
        "title": "Principal",
        "properties": {
          "identity": {
            "allOf": [
              {
                "$ref": "#/components/schemas/Identity"
              }
            ]
          },
          "permissions": {
            "type": "array",
            "nullable": true,
            "items": {
              "$ref": "#/components/schemas/Permission"
            },
            "description": "The permissions of the principal"
          },
          "roles": {
            "type": "array",
            "nullable": true,
            "items": {
              "type": "string",
              "description": "The role name"
            },
            "description": "The roles of the principal",
            "example": [
              "SuperAdmin",
              "WebRA_Approver"
            ]
          },
          "teams": {
            "type": "array",
            "nullable": true,
            "items": {
              "type": "string",
              "example": "team_001"
            },
            "description": "The teams of the principal"
          },
          "teamInfos": {
            "type": "array",
            "nullable": true,
            "items": {
              "type": "object",
              "description": "The team information",
              "properties": {
                "name": {
                  "type": "string",
                  "example": "team_001"
                },
                "displayName": {
                  "type": "array",
                  "items": {
                    "allOf": [
                      {
                        "$ref": "#/components/schemas/LocalizedStringResponse"
                      }
                    ]
                  }
                },
                "description": {
                  "type": "array",
                  "items": {
                    "allOf": [
                      {
                        "$ref": "#/components/schemas/LocalizedStringResponse"
                      }
                    ]
                  }
                },
                "externallyManaged": {
                  "type": "boolean",
                  "description": "`true` if this team is externally managed (SCIM,...)"
                },
                "manager": {
                  "type": "boolean",
                  "description": "`true` if the principal is a manager of this team"
                }
              }
            }
          },
          "preferences": {
            "type": "object",
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/PrincipalInfoPreferences"
              }
            ],
            "description": "The UI preferences of the principal"
          },
          "customDashboards": {
            "type": "array",
            "nullable": true,
            "items": {
              "$ref": "#/components/schemas/Dashboard"
            },
            "description": "The custom dashboards of the principal"
          }
        },
        "required": [
          "identity"
        ]
      },
      "DNSDatasourceResponse": {
        "title": "DNS Datasource",
        "properties": {
          "_id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/Id"
              }
            ]
          },
          "type": {
            "description": "Type of datasource",
            "type": "string",
            "enum": [
              "dns"
            ]
          },
          "name": {
            "type": "string",
            "example": "DNS_Datasource",
            "description": "Name of the datasource"
          },
          "displayName": {
            "description": "The localized name of the datasource",
            "type": "array",
            "nullable": true,
            "items": {
              "$ref": "#/components/schemas/LocalizedString"
            }
          },
          "description": {
            "description": "Description of the datasource",
            "example": "Use this datasource to get DNS values...",
            "type": "string"
          },
          "host": {
            "nullable": true,
            "description": "Ip of the DNS server. If empty, Horizon Server DNS is used",
            "example": "36.54.12.2",
            "type": "string"
          },
          "port": {
            "type": "integer",
            "description": "Port on which to join the DNS server",
            "example": 68,
            "default": 53,
            "nullable": true
          },
          "timeout": {
            "nullable": true,
            "type": "string",
            "format": "Finite Duration",
            "pattern": "^([0-9]+) *(ms|millisecond|milliseconds|s|second|seconds|m|minute|minutes|h|hour|hours|d|day|days)$",
            "example": "5 seconds",
            "default": "10 seconds",
            "description": "Timeout for the DNS request"
          },
          "recordTypes": {
            "type": "array",
            "description": "Type of DNS records to fetch. All available record types are fetched if null",
            "nullable": true,
            "items": {
              "type": "string",
              "description": "The record type to fetch",
              "enum": [
                "a",
                "aaaa",
                "cname",
                "ptr",
                "txt"
              ]
            }
          },
          "lookup": {
            "example": "{{host}}",
            "allOf": [
              {
                "$ref": "#/components/schemas/TemplateString"
              }
            ],
            "description": "Host to lookup"
          }
        },
        "required": [
          "_id",
          "name",
          "type",
          "lookup"
        ]
      },
      "DataSourceOutput": {
        "title": "Datasource Output",
        "properties": {
          "key": {
            "example": "cn",
            "description": "Key of the output",
            "type": "string"
          },
          "multi": {
            "default": false,
            "nullable": true,
            "description": "Determine if this attribute is multivalued",
            "type": "boolean"
          },
          "selected": {
            "default": true,
            "nullable": true,
            "type": "boolean",
            "description": "Determine if the attribute is selected on future fetches"
          }
        },
        "required": [
          "key"
        ]
      },
      "LDAPDatasourceResponse": {
        "title": "LDAP Datasource",
        "properties": {
          "_id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/Id"
              }
            ]
          },
          "type": {
            "description": "Type of datasource",
            "type": "string",
            "enum": [
              "ldap"
            ]
          },
          "name": {
            "type": "string",
            "example": "LDAP_Datasource",
            "description": "Name of the datasource"
          },
          "displayName": {
            "description": "The localized name of the datasource",
            "type": "array",
            "nullable": true,
            "items": {
              "$ref": "#/components/schemas/LocalizedString"
            }
          },
          "description": {
            "description": "Description of the datasource",
            "example": "Use this datasource to get LDAP values...",
            "type": "string"
          },
          "credentials": {
            "description": "Name of the `password` [credentials](#tag/security.credentials) to use for LDAP Authentication",
            "type": "string",
            "example": "LDAP_Credentials"
          },
          "hostname": {
            "description": "Hostname of the LDAP server",
            "example": "36.54.12.2",
            "type": "string"
          },
          "port": {
            "type": "integer",
            "description": "Port on which to join the LDAP server",
            "example": 3389,
            "default": 389,
            "nullable": true
          },
          "proxy": {
            "type": "string",
            "nullable": true,
            "example": "LDAP_Proxy",
            "description": "Name of the proxy to use to reach the LDAP server"
          },
          "timeout": {
            "type": "string",
            "format": "Finite Duration",
            "pattern": "^([0-9]+) *(ms|millisecond|milliseconds|s|second|seconds|m|minute|minutes|h|hour|hours|d|day|days)$",
            "example": "5 seconds",
            "description": "Timeout for the LDAP request"
          },
          "secure": {
            "type": "boolean",
            "description": "Use secure LDAP connection"
          },
          "disableHostnameValidation": {
            "type": "boolean",
            "description": "Disable hostname validation for the LDAP connection",
            "nullable": true,
            "default": false
          },
          "baseDn": {
            "example": "dc=evertrust,dc=lab",
            "description": "LDAP Base DN",
            "allOf": [
              {
                "$ref": "#/components/schemas/TemplateString"
              }
            ]
          },
          "filter": {
            "description": "LDAP Filter",
            "example": "(cn={{cn}})",
            "allOf": [
              {
                "$ref": "#/components/schemas/TemplateString"
              }
            ]
          },
          "attributes": {
            "description": "List of attributes to fetch for this datasource",
            "nullable": true,
            "type": "array",
            "items": {
              "allOf": [
                {
                  "$ref": "#/components/schemas/DataSourceOutput"
                }
              ]
            }
          }
        },
        "required": [
          "_id",
          "name",
          "type",
          "hostname",
          "credentials",
          "timeout",
          "secure",
          "baseDn",
          "filter"
        ]
      },
      "RESTDatasourceResponse": {
        "title": "REST Datasource",
        "properties": {
          "_id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/Id"
              }
            ]
          },
          "type": {
            "description": "Type of datasource",
            "type": "string",
            "enum": [
              "rest"
            ]
          },
          "name": {
            "type": "string",
            "example": "REST_Datasource",
            "description": "Name of the datasource"
          },
          "displayName": {
            "description": "The localized name of the datasource",
            "type": "array",
            "nullable": true,
            "items": {
              "$ref": "#/components/schemas/LocalizedString"
            }
          },
          "description": {
            "description": "Description of the datasource",
            "example": "Use this datasource to get REST values...",
            "type": "string"
          },
          "credentials": {
            "description": "Name of the [credentials](#tag/security.credentials) to use for authentication",
            "type": "string",
            "example": "REST_Credentials"
          },
          "method": {
            "type": "string",
            "description": "The HTTP method to use for the request",
            "example": "GET"
          },
          "url": {
            "type": "string",
            "description": "The URL to request",
            "example": "https://horizon.evertrust.fr/api/v1/test",
            "allOf": [
              {
                "$ref": "#/components/schemas/TemplateString"
              }
            ]
          },
          "authenticationType": {
            "type": "string",
            "description": "The authentication type to use while making the REST call. Is linked to `credentials`.",
            "example": "bearer",
            "enum": [
              "noauth",
              "basic",
              "x509",
              "bearer",
              "custom"
            ]
          },
          "headers": {
            "description": "The headers of the request",
            "nullable": true,
            "type": "array",
            "items": {
              "title": "header",
              "type": "object",
              "properties": {
                "name": {
                  "example": "Content-Type",
                  "description": "The header name",
                  "type": "string"
                },
                "value": {
                  "example": "application/json",
                  "description": "The header value",
                  "type": "string",
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/TemplateString"
                    }
                  ]
                }
              }
            }
          },
          "payloadType": {
            "nullable": true,
            "type": "string",
            "example": "json",
            "description": "For UI purposes in order to format the body correctly"
          },
          "payload": {
            "nullable": true,
            "type": "string",
            "example": "Hello {{certificate.dn.cn.1}}.",
            "description": "The body of the request",
            "allOf": [
              {
                "$ref": "#/components/schemas/TemplateString"
              }
            ]
          },
          "expectedHttpCodes": {
            "type": "array",
            "description": "The success HTTP codes for the request. If the return code is not in this list, the request will be considered failed.",
            "example": [
              200,
              204
            ],
            "items": {
              "type": "integer"
            }
          },
          "proxy": {
            "nullable": true,
            "type": "string",
            "example": "ProxyForInternet",
            "description": "Name of a Proxy to use while making the request"
          },
          "timeout": {
            "type": "string",
            "format": "Finite Duration",
            "pattern": "^([0-9]+) *(ms|millisecond|milliseconds|s|second|seconds|m|minute|minutes|h|hour|hours|d|day|days)$",
            "example": "30 s",
            "description": "Timeout for the HTTP request."
          },
          "attributes": {
            "description": "List of attributes to fetch for this datasource",
            "nullable": true,
            "type": "array",
            "items": {
              "allOf": [
                {
                  "$ref": "#/components/schemas/DataSourceOutput"
                }
              ]
            }
          }
        },
        "required": [
          "_id",
          "name",
          "type",
          "method",
          "url",
          "authenticationType",
          "timeout",
          "expectedHttpCodes"
        ]
      },
      "Ds001": {
        "allOf": [
          {
            "$ref": "#/components/schemas/BasicError"
          }
        ],
        "description": "Unexpected error",
        "properties": {
          "error": {
            "enum": [
              "DS-001"
            ]
          },
          "message": {
            "enum": [
              "Unexpected error"
            ]
          },
          "title": {
            "enum": [
              "Unexpected error"
            ]
          }
        },
        "title": "DS-001",
        "required": [
          "error",
          "message",
          "title"
        ]
      },
      "DNSDatasource": {
        "title": "DNS Datasource",
        "properties": {
          "type": {
            "description": "Type of datasource",
            "type": "string",
            "enum": [
              "dns"
            ]
          },
          "name": {
            "type": "string",
            "example": "DNS_Datasource",
            "description": "Name of the datasource"
          },
          "displayName": {
            "description": "The localized name of the datasource",
            "type": "array",
            "nullable": true,
            "items": {
              "$ref": "#/components/schemas/LocalizedString"
            }
          },
          "description": {
            "description": "Description of the datasource",
            "example": "Use this datasource to get DNS values...",
            "type": "string"
          },
          "host": {
            "nullable": true,
            "description": "Ip of the DNS server. If empty, Horizon Server DNS is used",
            "example": "36.54.12.2",
            "type": "string"
          },
          "port": {
            "type": "integer",
            "description": "Port on which to join the DNS server",
            "example": 68,
            "default": 53,
            "nullable": true
          },
          "timeout": {
            "nullable": true,
            "type": "string",
            "format": "Finite Duration",
            "pattern": "^([0-9]+) *(ms|millisecond|milliseconds|s|second|seconds|m|minute|minutes|h|hour|hours|d|day|days)$",
            "example": "5 seconds",
            "default": "10 seconds",
            "description": "Timeout for the DNS request"
          },
          "recordTypes": {
            "type": "array",
            "description": "Type of DNS records to fetch. All available record types are fetched if null",
            "nullable": true,
            "items": {
              "type": "string",
              "description": "The record type to fetch",
              "enum": [
                "a",
                "aaaa",
                "cname",
                "ptr",
                "txt"
              ]
            }
          },
          "lookup": {
            "example": "{{host}}",
            "allOf": [
              {
                "$ref": "#/components/schemas/TemplateString"
              }
            ],
            "description": "Host to lookup"
          }
        },
        "required": [
          "name",
          "type",
          "lookup"
        ]
      },
      "LDAPDatasource": {
        "title": "LDAP Datasource",
        "properties": {
          "type": {
            "description": "Type of datasource",
            "type": "string",
            "enum": [
              "ldap"
            ]
          },
          "name": {
            "type": "string",
            "example": "LDAP_Datasource",
            "description": "Name of the datasource"
          },
          "displayName": {
            "description": "The localized name of the datasource",
            "type": "array",
            "nullable": true,
            "items": {
              "$ref": "#/components/schemas/LocalizedString"
            }
          },
          "description": {
            "description": "Description of the datasource",
            "example": "Use this datasource to get LDAP values...",
            "type": "string"
          },
          "credentials": {
            "description": "Name of the `password` [credentials](#tag/security.credentials) to use for LDAP Authentication",
            "type": "string",
            "example": "LDAP_Credentials"
          },
          "hostname": {
            "description": "Hostname of the LDAP server",
            "example": "36.54.12.2",
            "type": "string"
          },
          "port": {
            "type": "integer",
            "description": "Port on which to join the LDAP server",
            "example": 3389,
            "default": 389,
            "nullable": true
          },
          "proxy": {
            "type": "string",
            "nullable": true,
            "example": "LDAP_Proxy",
            "description": "Name of the proxy to use to reach the LDAP server"
          },
          "timeout": {
            "type": "string",
            "format": "Finite Duration",
            "pattern": "^([0-9]+) *(ms|millisecond|milliseconds|s|second|seconds|m|minute|minutes|h|hour|hours|d|day|days)$",
            "example": "5 seconds",
            "description": "Timeout for the LDAP request"
          },
          "secure": {
            "type": "boolean",
            "description": "Use secure LDAP connection"
          },
          "disableHostnameValidation": {
            "type": "boolean",
            "description": "Disable hostname validation for the LDAP connection",
            "nullable": true,
            "default": false
          },
          "baseDn": {
            "example": "dc=evertrust,dc=lab",
            "description": "LDAP Base DN",
            "allOf": [
              {
                "$ref": "#/components/schemas/TemplateString"
              }
            ]
          },
          "filter": {
            "description": "LDAP Filter",
            "example": "(cn={{cn}})",
            "allOf": [
              {
                "$ref": "#/components/schemas/TemplateString"
              }
            ]
          },
          "attributes": {
            "description": "List of attributes to fetch for this datasource",
            "nullable": true,
            "type": "array",
            "items": {
              "allOf": [
                {
                  "$ref": "#/components/schemas/DataSourceOutput"
                }
              ]
            }
          }
        },
        "required": [
          "name",
          "type",
          "hostname",
          "credentials",
          "timeout",
          "secure",
          "baseDn",
          "filter"
        ]
      },
      "RESTDatasource": {
        "title": "REST Datasource",
        "properties": {
          "type": {
            "description": "Type of datasource",
            "type": "string",
            "enum": [
              "rest"
            ]
          },
          "name": {
            "type": "string",
            "example": "REST_Datasource",
            "description": "Name of the datasource"
          },
          "displayName": {
            "description": "The localized name of the datasource",
            "type": "array",
            "nullable": true,
            "items": {
              "$ref": "#/components/schemas/LocalizedString"
            }
          },
          "description": {
            "description": "Description of the datasource",
            "example": "Use this datasource to get REST values...",
            "type": "string"
          },
          "credentials": {
            "description": "Name of the [credentials](#tag/security.credentials) to use for authentication",
            "type": "string",
            "example": "REST_Credentials"
          },
          "method": {
            "type": "string",
            "description": "The HTTP method to use for the request",
            "example": "GET"
          },
          "url": {
            "type": "string",
            "description": "The URL to request",
            "example": "https://horizon.evertrust.fr/api/v1/test",
            "allOf": [
              {
                "$ref": "#/components/schemas/TemplateString"
              }
            ]
          },
          "authenticationType": {
            "type": "string",
            "description": "The authentication type to use while making the REST call. Is linked to `credentials`.",
            "example": "bearer",
            "enum": [
              "noauth",
              "basic",
              "x509",
              "bearer",
              "custom"
            ]
          },
          "headers": {
            "description": "The headers of the request",
            "nullable": true,
            "type": "array",
            "items": {
              "title": "header",
              "type": "object",
              "properties": {
                "name": {
                  "example": "Content-Type",
                  "description": "The header name",
                  "type": "string"
                },
                "value": {
                  "example": "application/json",
                  "description": "The header value",
                  "type": "string",
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/TemplateString"
                    }
                  ]
                }
              }
            }
          },
          "payloadType": {
            "nullable": true,
            "type": "string",
            "example": "json",
            "description": "For UI purposes in order to format the body correctly"
          },
          "payload": {
            "nullable": true,
            "type": "string",
            "example": "Hello {{certificate.dn.cn.1}}.",
            "description": "The body of the request",
            "allOf": [
              {
                "$ref": "#/components/schemas/TemplateString"
              }
            ]
          },
          "expectedHttpCodes": {
            "type": "array",
            "description": "The success HTTP codes for the request. If the return code is not in this list, the request will be considered failed.",
            "example": [
              200,
              204
            ],
            "items": {
              "type": "integer"
            }
          },
          "proxy": {
            "nullable": true,
            "type": "string",
            "example": "ProxyForInternet",
            "description": "Name of a Proxy to use while making the request"
          },
          "timeout": {
            "type": "string",
            "format": "Finite Duration",
            "pattern": "^([0-9]+) *(ms|millisecond|milliseconds|s|second|seconds|m|minute|minutes|h|hour|hours|d|day|days)$",
            "example": "30 s",
            "description": "Timeout for the HTTP request."
          },
          "attributes": {
            "description": "List of attributes to fetch for this datasource",
            "nullable": true,
            "type": "array",
            "items": {
              "allOf": [
                {
                  "$ref": "#/components/schemas/DataSourceOutput"
                }
              ]
            }
          }
        },
        "required": [
          "name",
          "type",
          "method",
          "url",
          "authenticationType",
          "timeout",
          "expectedHttpCodes"
        ]
      },
      "Ds002": {
        "allOf": [
          {
            "$ref": "#/components/schemas/BasicError"
          }
        ],
        "description": "Invalid DataSource",
        "properties": {
          "error": {
            "enum": [
              "DS-002"
            ]
          },
          "message": {
            "enum": [
              "Invalid DataSource"
            ]
          },
          "title": {
            "enum": [
              "Invalid DataSource"
            ]
          }
        },
        "title": "DS-002",
        "required": [
          "error",
          "message",
          "title"
        ]
      },
      "Ds003": {
        "allOf": [
          {
            "$ref": "#/components/schemas/BasicError"
          }
        ],
        "description": "DataSource not found",
        "properties": {
          "error": {
            "enum": [
              "DS-003"
            ]
          },
          "message": {
            "enum": [
              "DataSource not found"
            ]
          },
          "title": {
            "enum": [
              "DataSource not found"
            ]
          }
        },
        "title": "DS-003",
        "required": [
          "error",
          "message",
          "title"
        ]
      },
      "Ds004": {
        "allOf": [
          {
            "$ref": "#/components/schemas/BasicError"
          }
        ],
        "description": "DataSource already exists",
        "properties": {
          "error": {
            "enum": [
              "DS-004"
            ]
          },
          "message": {
            "enum": [
              "DataSource already exists"
            ]
          },
          "title": {
            "enum": [
              "DataSource already exists"
            ]
          }
        },
        "title": "DS-004",
        "required": [
          "error",
          "message",
          "title"
        ]
      },
      "DataSourceTestRequest": {
        "title": "Datasource Test Request",
        "properties": {
          "ds": {
            "description": "Datasource to test",
            "oneOf": [
              {
                "$ref": "#/components/schemas/DNSDatasource"
              },
              {
                "$ref": "#/components/schemas/LDAPDatasource"
              },
              {
                "$ref": "#/components/schemas/RESTDatasource"
              }
            ]
          },
          "context": {
            "nullable": true,
            "type": "array",
            "description": "Context to interpret dynamic values from",
            "items": {
              "allOf": [
                {
                  "$ref": "#/components/schemas/MapEntry"
                }
              ]
            }
          }
        },
        "required": [
          "ds"
        ]
      },
      "DataSourceResult": {
        "properties": {
          "name": {
            "example": "Datasource_name",
            "description": "Name of the executed datasource",
            "type": "string"
          },
          "type": {
            "type": "string",
            "description": "Type of the datasource executed"
          },
          "status": {
            "description": "Status of the execution. `success` if the datasource data was fetched correctly, `failure` if an error occured and `ignored` if inputs were not all filled, resulting in no request being sent",
            "enum": [
              "success",
              "ignored",
              "failure"
            ],
            "type": "string"
          },
          "dictionary": {
            "type": "array",
            "items": {
              "allOf": [
                {
                  "$ref": "#/components/schemas/MapEntry"
                }
              ]
            },
            "description": "Data fetched from the datasource"
          },
          "error": {
            "nullable": true,
            "description": "If `status` is `failure`, the error message",
            "type": "string",
            "example": null
          }
        }
      },
      "DNSDataSourceResultResponse": {
        "title": "DNS Datasource Result",
        "allOf": [
          {
            "$ref": "#/components/schemas/DataSourceResult"
          }
        ],
        "properties": {
          "type": {
            "enum": [
              "dns"
            ]
          },
          "computedLookupValues": {
            "nullable": true,
            "type": "array",
            "description": "Lookup values that were requested on the datasource",
            "items": {
              "type": "string",
              "example": "google.com"
            }
          }
        },
        "required": [
          "name",
          "status",
          "dictionary",
          "type"
        ]
      },
      "LDAPDataSourceResultResponse": {
        "title": "LDAP Datasource Result",
        "allOf": [
          {
            "$ref": "#/components/schemas/DataSourceResult"
          }
        ],
        "properties": {
          "type": {
            "enum": [
              "ldap"
            ]
          },
          "computedDN": {
            "nullable": true,
            "type": "string",
            "description": "DN that was requested on the LDAP server",
            "example": "(cn=test)"
          },
          "computedFilter": {
            "nullable": true,
            "type": "string",
            "description": "Filter that was requested on the LDAP server",
            "example": "dc=evertrust"
          }
        },
        "required": [
          "name",
          "status",
          "dictionary",
          "type"
        ]
      },
      "RESTDataSourceResultResponse": {
        "title": "REST Datasource Result",
        "allOf": [
          {
            "$ref": "#/components/schemas/DataSourceResult"
          }
        ],
        "properties": {
          "type": {
            "enum": [
              "rest"
            ]
          },
          "computedUrl": {
            "nullable": true,
            "type": "string",
            "example": "https://horizon.com",
            "description": "Url that was requested"
          },
          "computedPayload": {
            "nullable": true,
            "type": "string",
            "example": "{ \"test\": \"value\" }",
            "description": "Url that was requested"
          },
          "computedHeaders": {
            "nullable": true,
            "type": "array",
            "description": "Headers that were sent",
            "items": {
              "title": "Header",
              "type": "object",
              "properties": {
                "name": {
                  "type": "string",
                  "description": "Header name",
                  "example": "Content-Type"
                },
                "value": {
                  "type": "string",
                  "description": "Header value",
                  "example": "application/json"
                }
              },
              "required": [
                "name",
                "value"
              ]
            }
          },
          "responseCode": {
            "nullable": true,
            "type": "integer",
            "example": 200,
            "description": "Received response code"
          },
          "responseHeaders": {
            "nullable": true,
            "type": "array",
            "description": "Headers that were received",
            "items": {
              "title": "Header",
              "type": "object",
              "properties": {
                "name": {
                  "type": "string",
                  "description": "Header name",
                  "example": "Content-Type"
                },
                "value": {
                  "type": "string",
                  "description": "Header value",
                  "example": "application/json"
                }
              },
              "required": [
                "name",
                "value"
              ]
            }
          },
          "responseBody": {
            "nullable": true,
            "type": "string",
            "example": "{\"response\": 200}",
            "description": "Received response body"
          }
        },
        "required": [
          "name",
          "status",
          "dictionary",
          "type"
        ]
      },
      "Ds006": {
        "allOf": [
          {
            "$ref": "#/components/schemas/BasicError"
          }
        ],
        "description": "Invalid DataSource Test Request",
        "properties": {
          "error": {
            "enum": [
              "DS-006"
            ]
          },
          "message": {
            "enum": [
              "Invalid DataSource Test Request"
            ]
          },
          "title": {
            "enum": [
              "Invalid DataSource Test Request"
            ]
          }
        },
        "title": "DS-006",
        "required": [
          "error",
          "message",
          "title"
        ]
      },
      "Ds005": {
        "allOf": [
          {
            "$ref": "#/components/schemas/BasicError"
          }
        ],
        "description": "Referenced DataSource",
        "properties": {
          "error": {
            "enum": [
              "DS-005"
            ]
          },
          "message": {
            "enum": [
              "Referenced DataSource"
            ]
          },
          "title": {
            "enum": [
              "Referenced DataSource"
            ]
          }
        },
        "title": "DS-005",
        "required": [
          "error",
          "message",
          "title"
        ]
      },
      "DsFlow002": {
        "allOf": [
          {
            "$ref": "#/components/schemas/BasicError"
          }
        ],
        "description": "Invalid DataSource Flow",
        "properties": {
          "error": {
            "enum": [
              "DS-FLOW-002"
            ]
          },
          "message": {
            "enum": [
              "Invalid DataSource Flow"
            ]
          },
          "title": {
            "enum": [
              "Invalid DataSource Flow"
            ]
          }
        },
        "title": "DS-FLOW-002",
        "required": [
          "error",
          "message",
          "title"
        ]
      },
      "DsFlow001": {
        "allOf": [
          {
            "$ref": "#/components/schemas/BasicError"
          }
        ],
        "description": "Unexpected error",
        "properties": {
          "error": {
            "enum": [
              "DS-FLOW-001"
            ]
          },
          "message": {
            "enum": [
              "Unexpected error"
            ]
          },
          "title": {
            "enum": [
              "Unexpected error"
            ]
          }
        },
        "title": "DS-FLOW-001",
        "required": [
          "error",
          "message",
          "title"
        ]
      },
      "DataSourceType": {
        "type": "string",
        "description": "Type of the datasource",
        "enum": [
          "rest",
          "ldap",
          "dns"
        ]
      },
      "DataSourceFlowTemplateEntryResponse": {
        "title": "Datasource Flow Template Entry",
        "properties": {
          "name": {
            "example": "Datasource_name",
            "description": "Name of the datasource",
            "type": "string"
          },
          "type": {
            "allOf": [
              {
                "$ref": "#/components/schemas/DataSourceType"
              }
            ]
          },
          "displayName": {
            "nullable": true,
            "description": "Display name of the datasource",
            "type": "array",
            "items": {
              "allOf": [
                {
                  "$ref": "#/components/schemas/LocalizedString"
                }
              ]
            }
          },
          "description": {
            "nullable": true,
            "type": "string",
            "description": "Description of the datasource"
          },
          "inputs": {
            "nullable": true,
            "description": "List of inputs to use for this datasource",
            "type": "array",
            "items": {
              "allOf": [
                {
                  "$ref": "#/components/schemas/DataSourceInput"
                }
              ]
            }
          },
          "stopOnSuccess": {
            "type": "boolean",
            "default": false,
            "description": "Stop the execution if this datasource's execution is successful"
          },
          "outputs": {
            "nullable": true,
            "description": "List of outputs for this datasource",
            "type": "array",
            "items": {
              "allOf": [
                {
                  "$ref": "#/components/schemas/DataSourceOutput"
                }
              ]
            }
          }
        }
      },
      "HorizonExportableItemsSeq": {
        "type": "array",
        "nullable": true,
        "items": {
          "type": "object",
          "title": "Horizon Exportable Item",
          "properties": {
            "name": {
              "type": "string"
            },
            "displayName": {
              "type": "array",
              "nullable": true,
              "items": {
                "$ref": "#/components/schemas/LocalizedStringResponse"
              }
            },
            "description": {
              "type": "array",
              "nullable": true,
              "items": {
                "$ref": "#/components/schemas/LocalizedStringResponse"
              }
            },
            "detail": {
              "type": "string",
              "nullable": true
            }
          },
          "required": [
            "name"
          ]
        }
      },
      "HorizonExportableItems": {
        "title": "Horizon Exported Items",
        "type": "object",
        "properties": {
          "cas": {
            "allOf": [
              {
                "$ref": "#/components/schemas/HorizonExportableItemsSeq"
              }
            ]
          },
          "pkiQueues": {
            "allOf": [
              {
                "$ref": "#/components/schemas/HorizonExportableItemsSeq"
              }
            ]
          },
          "pkiConnectors": {
            "allOf": [
              {
                "$ref": "#/components/schemas/HorizonExportableItemsSeq"
              }
            ]
          },
          "roles": {
            "allOf": [
              {
                "$ref": "#/components/schemas/HorizonExportableItemsSeq"
              }
            ]
          },
          "teams": {
            "allOf": [
              {
                "$ref": "#/components/schemas/HorizonExportableItemsSeq"
              }
            ]
          },
          "passwordPolicies": {
            "allOf": [
              {
                "$ref": "#/components/schemas/HorizonExportableItemsSeq"
              }
            ]
          },
          "scimProfiles": {
            "allOf": [
              {
                "$ref": "#/components/schemas/HorizonExportableItemsSeq"
              }
            ]
          },
          "notifications": {
            "allOf": [
              {
                "$ref": "#/components/schemas/HorizonExportableItemsSeq"
              }
            ]
          },
          "datasources": {
            "allOf": [
              {
                "$ref": "#/components/schemas/HorizonExportableItemsSeq"
              }
            ]
          },
          "discoveryCampaigns": {
            "allOf": [
              {
                "$ref": "#/components/schemas/HorizonExportableItemsSeq"
              }
            ]
          },
          "thirdParties": {
            "allOf": [
              {
                "$ref": "#/components/schemas/HorizonExportableItemsSeq"
              }
            ]
          },
          "reports": {
            "allOf": [
              {
                "$ref": "#/components/schemas/HorizonExportableItemsSeq"
              }
            ]
          },
          "triggers": {
            "allOf": [
              {
                "$ref": "#/components/schemas/HorizonExportableItemsSeq"
              }
            ]
          },
          "automations": {
            "allOf": [
              {
                "$ref": "#/components/schemas/HorizonExportableItemsSeq"
              }
            ]
          },
          "executions": {
            "allOf": [
              {
                "$ref": "#/components/schemas/HorizonExportableItemsSeq"
              }
            ]
          },
          "profiles": {
            "allOf": [
              {
                "$ref": "#/components/schemas/HorizonExportableItemsSeq"
              }
            ]
          },
          "forestMappings": {
            "allOf": [
              {
                "$ref": "#/components/schemas/HorizonExportableItemsSeq"
              }
            ]
          },
          "labels": {
            "allOf": [
              {
                "$ref": "#/components/schemas/HorizonExportableItemsSeq"
              }
            ]
          },
          "proxies": {
            "allOf": [
              {
                "$ref": "#/components/schemas/HorizonExportableItemsSeq"
              }
            ]
          }
        }
      },
      "ConfExport001": {
        "allOf": [
          {
            "$ref": "#/components/schemas/BasicError"
          }
        ],
        "description": "Unexpected error",
        "properties": {
          "error": {
            "enum": [
              "CONF-EXPORT-001"
            ]
          },
          "message": {
            "enum": [
              "Unexpected error"
            ]
          },
          "title": {
            "enum": [
              "Unexpected error"
            ]
          }
        },
        "title": "CONF-EXPORT-001",
        "required": [
          "error",
          "message",
          "title"
        ]
      },
      "CertificateAuthorityExportResponse": {
        "title": "Certificate Authority",
        "allOf": [
          {
            "$ref": "#/components/schemas/CertificateAuthority"
          }
        ],
        "properties": {
          "_id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/Id"
              }
            ]
          },
          "certificate": {
            "type": "string"
          }
        },
        "required": [
          "_id",
          "name",
          "certificate",
          "trustedForClientAuthentication",
          "trustedForServerAuthentication",
          "outdatedRevocationStatusPolicy",
          "public"
        ]
      },
      "ReportScheduledTaskResponse": {
        "oneOf": [
          {
            "$ref": "#/components/schemas/LinkReportScheduledTaskResponse"
          },
          {
            "$ref": "#/components/schemas/AttachmentReportScheduledTaskResponse"
          }
        ]
      },
      "HorizonExportItems": {
        "title": "Horizon Exportable Items",
        "type": "object",
        "properties": {
          "cas": {
            "type": "array",
            "items": {
              "allOf": [
                {
                  "$ref": "#/components/schemas/CertificateAuthorityExportResponse"
                }
              ]
            }
          },
          "pkiQueues": {
            "type": "array",
            "items": {
              "allOf": [
                {
                  "$ref": "#/components/schemas/PKIQueueResponse"
                }
              ]
            }
          },
          "pkiConnectors": {
            "type": "array",
            "items": {
              "allOf": [
                {
                  "$ref": "#/components/schemas/PKIResponses"
                }
              ]
            }
          },
          "roles": {
            "type": "array",
            "items": {
              "allOf": [
                {
                  "$ref": "#/components/schemas/RoleResponse"
                }
              ]
            }
          },
          "teams": {
            "type": "array",
            "items": {
              "allOf": [
                {
                  "$ref": "#/components/schemas/TeamResponse"
                }
              ]
            }
          },
          "passwordPolicies": {
            "type": "array",
            "items": {
              "allOf": [
                {
                  "$ref": "#/components/schemas/PasswordPolicyResponse"
                }
              ]
            }
          },
          "scimProfiles": {
            "type": "array",
            "items": {
              "allOf": [
                {
                  "$ref": "#/components/schemas/ScimProfileResponse"
                }
              ]
            }
          },
          "notifications": {
            "type": "array",
            "items": {
              "oneOf": [
                {
                  "$ref": "#/components/schemas/EmailNotificationResponse"
                },
                {
                  "$ref": "#/components/schemas/WebhookNotificationResponse"
                },
                {
                  "$ref": "#/components/schemas/RESTResponse"
                }
              ]
            }
          },
          "datasources": {
            "type": "array",
            "items": {
              "oneOf": [
                {
                  "$ref": "#/components/schemas/DNSDatasourceResponse"
                },
                {
                  "$ref": "#/components/schemas/RESTDatasourceResponse"
                },
                {
                  "$ref": "#/components/schemas/LDAPDatasourceResponse"
                }
              ]
            }
          },
          "discoveryCampaigns": {
            "type": "array",
            "items": {
              "allOf": [
                {
                  "$ref": "#/components/schemas/DiscoveryCampaignResponse"
                }
              ]
            }
          },
          "thirdParties": {
            "type": "array",
            "items": {
              "allOf": [
                {
                  "$ref": "#/components/schemas/ThirdPartyConnectorResponses"
                }
              ]
            }
          },
          "reports": {
            "type": "array",
            "items": {
              "allOf": [
                {
                  "$ref": "#/components/schemas/ReportScheduledTaskResponse"
                }
              ]
            }
          },
          "triggers": {
            "type": "array",
            "items": {
              "oneOf": [
                {
                  "$ref": "#/components/schemas/AzureKeyVaultTriggerResponse"
                },
                {
                  "$ref": "#/components/schemas/F5ClientTriggerResponse"
                },
                {
                  "$ref": "#/components/schemas/F5AS3TriggerResponse"
                },
                {
                  "$ref": "#/components/schemas/AWSTriggerResponse"
                },
                {
                  "$ref": "#/components/schemas/GCMTriggerResponse"
                },
                {
                  "$ref": "#/components/schemas/LDAPTriggerResponse"
                },
                {
                  "$ref": "#/components/schemas/NetscalerTriggerResponse"
                },
                {
                  "$ref": "#/components/schemas/IntunePKCSTriggerResponse"
                }
              ]
            }
          },
          "automations": {
            "type": "array",
            "items": {
              "allOf": [
                {
                  "$ref": "#/components/schemas/AutomationPolicyResponse"
                }
              ]
            }
          },
          "executions": {
            "type": "array",
            "items": {
              "allOf": [
                {
                  "$ref": "#/components/schemas/ExecutionPolicyResponse"
                }
              ]
            }
          },
          "profiles": {
            "type": "array",
            "items": {
              "allOf": [
                {
                  "$ref": "#/components/schemas/CertificateProfileResponses"
                }
              ]
            }
          },
          "forestMappings": {
            "type": "array",
            "items": {
              "allOf": [
                {
                  "$ref": "#/components/schemas/WcceForestMappingResponse"
                }
              ]
            }
          },
          "labels": {
            "type": "array",
            "items": {
              "allOf": [
                {
                  "$ref": "#/components/schemas/LabelResponse"
                }
              ]
            }
          },
          "proxies": {
            "type": "array",
            "items": {
              "allOf": [
                {
                  "$ref": "#/components/schemas/HttpProxyResponse"
                }
              ]
            }
          }
        }
      },
      "HorizonExport": {
        "title": "Horizon Export",
        "type": "object",
        "properties": {
          "info": {
            "type": "object",
            "properties": {
              "createdAt": {
                "type": "string"
              },
              "version": {
                "type": "string"
              }
            }
          },
          "items": {
            "allOf": [
              {
                "$ref": "#/components/schemas/HorizonExportItems"
              }
            ]
          }
        }
      },
      "ConfExport002": {
        "allOf": [
          {
            "$ref": "#/components/schemas/BasicError"
          }
        ],
        "description": "Invalid export request",
        "properties": {
          "error": {
            "enum": [
              "CONF-EXPORT-002"
            ]
          },
          "message": {
            "enum": [
              "Invalid export request"
            ]
          },
          "title": {
            "enum": [
              "Invalid export request"
            ]
          }
        },
        "title": "CONF-EXPORT-002",
        "required": [
          "error",
          "message",
          "title"
        ]
      },
      "HorizonImportedItemsSummary": {
        "title": "Horizon Imported Items summary",
        "type": "object",
        "properties": {
          "cas": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "pkiQueues": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "pkiConnectors": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "roles": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "teams": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "passwordPolicies": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "scimProfiles": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "notifications": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "datasources": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "discoveryCampaigns": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "thirdParties": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "reports": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "triggers": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "automations": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "executions": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "profiles": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "forestMappings": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "labels": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "proxies": {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        }
      },
      "ConfImport002": {
        "allOf": [
          {
            "$ref": "#/components/schemas/BasicError"
          }
        ],
        "description": "Invalid import",
        "properties": {
          "error": {
            "enum": [
              "CONF-IMPORT-002"
            ]
          },
          "message": {
            "enum": [
              "Invalid import"
            ]
          },
          "title": {
            "enum": [
              "Invalid import"
            ]
          }
        },
        "title": "CONF-IMPORT-002",
        "required": [
          "error",
          "message",
          "title"
        ]
      },
      "ConfImport001": {
        "allOf": [
          {
            "$ref": "#/components/schemas/BasicError"
          }
        ],
        "description": "Unexpected error",
        "properties": {
          "error": {
            "enum": [
              "CONF-IMPORT-001"
            ]
          },
          "message": {
            "enum": [
              "Unexpected error"
            ]
          },
          "title": {
            "enum": [
              "Unexpected error"
            ]
          }
        },
        "title": "CONF-IMPORT-001",
        "required": [
          "error",
          "message",
          "title"
        ]
      }
    }
  },
  "x-tagGroups": [
    {
      "name": "Lifecycle APIs",
      "tags": [
        "certificate",
        "request"
      ]
    },
    {
      "name": "Identity management",
      "tags": [
        "security.identity.local",
        "security.identity.provider",
        "security.passwordpolicy",
        "security.principal",
        "security.principalinfo",
        "security.role",
        "security.team",
        "team",
        "security.scimprofile"
      ]
    },
    {
      "name": "Discovery APIs",
      "tags": [
        "discovery.campaign",
        "discovery.feed"
      ]
    },
    {
      "name": "Configuration APIs",
      "tags": [
        "ca",
        "trustchain",
        "cache",
        "pki.queue",
        "pki.connector",
        "security.credentials",
        "trigger",
        "scheduler.task",
        "automation.execution",
        "automation.policy",
        "certificate.profile",
        "thirdparty.connector",
        "datasource",
        "wcce",
        "http.httpproxy",
        "system.configuration",
        "event",
        "discovery.event",
        "certificate.label",
        "archive",
        "certificate.grading.policy",
        "certificate.grading.ruleset",
        "adoc",
        "license",
        "report.csv",
        "configurations.export"
      ]
    },
    {
      "name": "Analytics APIs",
      "tags": [
        "certificate.analytics",
        "event.analytics",
        "discovery.event.analytics"
      ]
    },
    {
      "name": "Utility APIs",
      "tags": [
        "templatestring",
        "rfc5280",
        "datasource.flow"
      ]
    },
    {
      "name": "Automation APIs",
      "tags": [
        "automation.lifecycle"
      ]
    },
    {
      "name": "Multitenancy APIs",
      "tags": [
        "security.tenant"
      ]
    }
  ]
}