{
  "openapi": "3.1.0",
  "info": {
    "title": "PingOne Protect",
    "version": "1.0.0"
  },
  "paths": {
    "/pingone/prepare": {
      "post": {
        "tags": [
          "PingOne Protect"
        ],
        "summary": "Prepare",
        "operationId": "prepare_pingone_prepare_post",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Common"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Prepared"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "402": {
            "description": "Payment Required",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "413": {
            "description": "Request Entity Too Large",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "415": {
            "description": "Unsupported Media Type",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "428": {
            "description": "Precondition Required",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "429": {
            "description": "Too Many Requests",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "502": {
            "description": "Bad Gateway",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "security": [
          {
            "AccountBearer": []
          }
        ]
      }
    },
    "/pingone/protect": {
      "post": {
        "tags": [
          "PingOne Protect"
        ],
        "summary": "Protect",
        "operationId": "protect_pingone_protect_post",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Protect"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Generated"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "402": {
            "description": "Payment Required",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "413": {
            "description": "Request Entity Too Large",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "415": {
            "description": "Unsupported Media Type",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "428": {
            "description": "Precondition Required",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "429": {
            "description": "Too Many Requests",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "502": {
            "description": "Bad Gateway",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "security": [
          {
            "AccountBearer": []
          }
        ]
      }
    }
  },
  "components": {
    "schemas": {
      "Behavioral": {
        "properties": {
          "mouse": {
            "$ref": "#/components/schemas/Interactions"
          },
          "keyboard": {
            "$ref": "#/components/schemas/Interactions"
          },
          "touch": {
            "$ref": "#/components/schemas/Interactions"
          },
          "indirect": {
            "$ref": "#/components/schemas/Events"
          },
          "mouseSummary": {
            "$ref": "#/components/schemas/Events"
          },
          "eventCounters": {
            "additionalProperties": {
              "type": "integer",
              "minimum": 0
            },
            "type": "object",
            "title": "Eventcounters"
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "mouse",
          "keyboard",
          "touch",
          "indirect",
          "mouseSummary",
          "eventCounters"
        ],
        "title": "Behavioral"
      },
      "Common": {
        "properties": {
          "profile": {
            "type": "string",
            "format": "uuid",
            "title": "Profile"
          },
          "user_agent": {
            "type": "string",
            "maxLength": 1024,
            "minLength": 1,
            "title": "User Agent"
          },
          "session": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Session"
          },
          "website": {
            "$ref": "#/components/schemas/Website"
          },
          "timezone": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Timezone"
          },
          "script": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 2097152
              },
              {
                "type": "null"
              }
            ],
            "title": "Script"
          },
          "sdk_config": {
            "anyOf": [
              {
                "additionalProperties": {
                  "$ref": "#/components/schemas/JsonValue"
                },
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "title": "Sdk Config"
          },
          "token_host": {
            "type": "string",
            "title": "Token Host",
            "default": "https://apps.pingone.com"
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "profile",
          "user_agent",
          "website"
        ],
        "title": "Common"
      },
      "ErrorResponse": {
        "properties": {
          "code": {
            "type": "string",
            "title": "Code",
            "description": "The error category used to choose your next action."
          },
          "message": {
            "type": "string",
            "title": "Message",
            "description": "A safe explanation of the error."
          },
          "request_id": {
            "type": "string",
            "title": "Request Id",
            "description": "The identifier to include when contacting support."
          }
        },
        "type": "object",
        "required": [
          "code",
          "message",
          "request_id"
        ],
        "title": "ErrorResponse"
      },
      "Events": {
        "properties": {
          "events": {
            "items": {
              "$ref": "#/components/schemas/JsonValue"
            },
            "type": "array",
            "title": "Events"
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "events"
        ],
        "title": "Events"
      },
      "Generated": {
        "properties": {
          "data": {
            "type": "string",
            "title": "Data"
          },
          "sdk_version": {
            "type": "string",
            "title": "Sdk Version"
          },
          "device_id": {
            "type": "string",
            "title": "Device Id"
          },
          "session": {
            "type": "string",
            "title": "Session"
          },
          "request_id": {
            "type": "string",
            "title": "Request Id"
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "data",
          "sdk_version",
          "device_id",
          "session",
          "request_id"
        ],
        "title": "Generated"
      },
      "Interactions": {
        "properties": {
          "count": {
            "type": "integer",
            "minimum": 0,
            "title": "Count"
          },
          "interactions": {
            "items": {
              "$ref": "#/components/schemas/JsonValue"
            },
            "type": "array",
            "title": "Interactions"
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "count",
          "interactions"
        ],
        "title": "Interactions"
      },
      "JsonValue": {},
      "Prepared": {
        "properties": {
          "session": {
            "type": "string",
            "title": "Session"
          },
          "request_id": {
            "type": "string",
            "title": "Request Id"
          },
          "sdk_version": {
            "type": "string",
            "title": "Sdk Version"
          },
          "request": {
            "$ref": "#/components/schemas/TargetRequest"
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "session",
          "request_id",
          "sdk_version",
          "request"
        ],
        "title": "Prepared"
      },
      "Protect": {
        "properties": {
          "profile": {
            "type": "string",
            "format": "uuid",
            "title": "Profile"
          },
          "user_agent": {
            "type": "string",
            "maxLength": 1024,
            "minLength": 1,
            "title": "User Agent"
          },
          "session": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Session"
          },
          "website": {
            "$ref": "#/components/schemas/Website"
          },
          "timezone": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Timezone"
          },
          "script": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 2097152
              },
              {
                "type": "null"
              }
            ],
            "title": "Script"
          },
          "sdk_config": {
            "anyOf": [
              {
                "additionalProperties": {
                  "$ref": "#/components/schemas/JsonValue"
                },
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "title": "Sdk Config"
          },
          "token_host": {
            "type": "string",
            "title": "Token Host",
            "default": "https://apps.pingone.com"
          },
          "client_token": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 65536,
                "minLength": 1
              },
              {
                "type": "null"
              }
            ],
            "title": "Client Token"
          },
          "token_response": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 262144,
                "minLength": 1
              },
              {
                "type": "null"
              }
            ],
            "title": "Token Response"
          },
          "jwt_device_attributes": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 262144,
                "minLength": 1
              },
              {
                "type": "null"
              }
            ],
            "title": "Jwt Device Attributes"
          },
          "jwt_agent_payload": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 262144,
                "minLength": 1
              },
              {
                "type": "null"
              }
            ],
            "title": "Jwt Agent Payload"
          },
          "behavioral": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/Behavioral"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "profile",
          "user_agent",
          "website"
        ],
        "title": "Protect"
      },
      "TargetRequest": {
        "properties": {
          "role": {
            "type": "string",
            "title": "Role"
          },
          "method": {
            "type": "string",
            "title": "Method"
          },
          "url": {
            "type": "string",
            "title": "Url"
          },
          "headers": {
            "additionalProperties": {
              "type": "string"
            },
            "type": "object",
            "title": "Headers"
          },
          "body": {
            "type": "null",
            "title": "Body"
          },
          "credentials": {
            "type": "string",
            "title": "Credentials"
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "role",
          "method",
          "url",
          "headers",
          "credentials"
        ],
        "title": "TargetRequest"
      },
      "Website": {
        "properties": {
          "url": {
            "type": "string",
            "title": "Url"
          },
          "html": {
            "type": "string",
            "title": "Html",
            "default": ""
          },
          "document_id": {
            "anyOf": [
              {
                "type": "string",
                "format": "uuid"
              },
              {
                "type": "null"
              }
            ],
            "title": "Document Id"
          },
          "started_at_ms": {
            "anyOf": [
              {
                "type": "integer",
                "minimum": 0
              },
              {
                "type": "null"
              }
            ],
            "title": "Started At Ms"
          },
          "referrer": {
            "type": "string",
            "title": "Referrer",
            "default": ""
          },
          "history_length": {
            "anyOf": [
              {
                "type": "integer",
                "minimum": 1
              },
              {
                "type": "null"
              }
            ],
            "title": "History Length"
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "url"
        ],
        "title": "Website"
      }
    },
    "securitySchemes": {
      "AccountBearer": {
        "type": "http",
        "scheme": "bearer",
        "bearerFormat": "ng_…"
      }
    }
  }
}