{
  "openapi": "3.1.0",
  "info": {
    "title": "Cradl API",
    "version": "2026-07-02T07:54:37Z"
  },
  "servers": [
    {
      "url": "https://api.cradl.ai/{basePath}",
      "variables": {
        "basePath": {
          "default": "v1"
        }
      }
    }
  ],
  "paths": {
    "/actions": {
      "get": {
        "parameters": [
          {
            "in": "query",
            "name": "nextToken",
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "maxResults",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Actions"
                }
              }
            },
            "description": "200 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "400 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "403 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "404 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "415": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "415 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "500 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "security": [
          {
            "OAuth2": [
              "actions:read"
            ]
          }
        ],
        "x-mint": {
          "metadata": {
            "title": "List Actions",
            "description": "List Actions",
            "og:title": "List Actions"
          }
        }
      },
      "post": {
        "parameters": [
          {
            "in": "header",
            "name": "Content-Type",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PostActions"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Action"
                }
              }
            },
            "description": "200 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "400 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "403 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "404 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "415": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "415 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "500 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "security": [
          {
            "OAuth2": [
              "actions:write"
            ]
          }
        ],
        "x-mint": {
          "metadata": {
            "title": "Create Action",
            "description": "Create Action",
            "og:title": "Create Action"
          }
        }
      }
    },
    "/actions/{actionId}": {
      "delete": {
        "parameters": [
          {
            "in": "path",
            "name": "actionId",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Action"
                }
              }
            },
            "description": "200 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "400 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "403 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "404 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "415": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "415 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "500 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "security": [
          {
            "OAuth2": [
              "actions:read"
            ]
          }
        ],
        "x-mint": {
          "metadata": {
            "title": "Delete Action",
            "description": "Delete Action",
            "og:title": "Delete Action"
          }
        }
      },
      "get": {
        "parameters": [
          {
            "in": "path",
            "name": "actionId",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Action"
                }
              }
            },
            "description": "200 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "400 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "403 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "404 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "415": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "415 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "500 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "security": [
          {
            "OAuth2": [
              "actions:read"
            ]
          }
        ],
        "x-mint": {
          "metadata": {
            "title": "Get Action",
            "description": "Get Action",
            "og:title": "Get Action"
          }
        }
      },
      "patch": {
        "parameters": [
          {
            "in": "header",
            "name": "Content-Type",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "actionId",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PatchActionId"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Action"
                }
              }
            },
            "description": "200 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "400 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "403 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "404 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "415": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "415 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "500 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "security": [
          {
            "OAuth2": [
              "actions:write"
            ]
          }
        ],
        "x-mint": {
          "metadata": {
            "title": "Update Action",
            "description": "Update Action",
            "og:title": "Update Action"
          }
        }
      }
    },
    "/actions/{actionId}/runs": {
      "get": {
        "parameters": [
          {
            "in": "query",
            "name": "status",
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "nextToken",
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "maxResults",
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "actionId",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ActionRuns"
                }
              }
            },
            "description": "200 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "400 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "403 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "404 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "415": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "415 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "500 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "security": [
          {
            "OAuth2": [
              "actions.runs:read"
            ]
          }
        ],
        "x-mint": {
          "metadata": {
            "title": "List Action Runs",
            "description": "List Action Runs",
            "og:title": "List Action Runs"
          }
        }
      },
      "post": {
        "parameters": [
          {
            "in": "header",
            "name": "Content-Type",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "actionId",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PostActionRuns"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ActionRun"
                }
              }
            },
            "description": "200 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "400 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "403 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "404 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "415": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "415 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "500 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "security": [
          {
            "OAuth2": [
              "actions.runs:write"
            ]
          }
        ],
        "x-mint": {
          "metadata": {
            "title": "Create Action Run",
            "description": "Create Action Run",
            "og:title": "Create Action Run"
          }
        }
      }
    },
    "/actions/{actionId}/runs/{runId}": {
      "get": {
        "parameters": [
          {
            "in": "path",
            "name": "runId",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "actionId",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ActionRun"
                }
              }
            },
            "description": "200 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "400 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "403 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "404 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "415": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "415 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "500 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "security": [
          {
            "OAuth2": [
              "actions.runs:read"
            ]
          }
        ],
        "x-mint": {
          "metadata": {
            "title": "Get Action Run",
            "description": "Get Action Run",
            "og:title": "Get Action Run"
          }
        }
      },
      "patch": {
        "parameters": [
          {
            "in": "header",
            "name": "Content-Type",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "runId",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "actionId",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PatchActionRunId"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ActionRun"
                }
              }
            },
            "description": "200 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "400 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "403 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "404 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "415": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "415 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "500 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "security": [
          {
            "OAuth2": [
              "actions.runs:write"
            ]
          }
        ],
        "x-mint": {
          "metadata": {
            "title": "Update Action Run",
            "description": "Update Action Run",
            "og:title": "Update Action Run"
          }
        }
      }
    },
    "/agents": {
      "get": {
        "parameters": [
          {
            "in": "query",
            "name": "nextToken",
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "maxResults",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Agents"
                }
              }
            },
            "description": "200 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "400 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "403 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "404 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "415": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "415 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "500 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "security": [
          {
            "OAuth2": [
              "agents:read"
            ]
          }
        ],
        "x-mint": {
          "metadata": {
            "title": "List Agents",
            "description": "List Agents",
            "og:title": "List Agents"
          }
        }
      },
      "post": {
        "parameters": [
          {
            "in": "header",
            "name": "Content-Type",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PostAgents"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Agent"
                }
              }
            },
            "description": "200 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "400 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "403 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "404 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "415": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "415 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "500 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "security": [
          {
            "OAuth2": [
              "agents:write"
            ]
          }
        ],
        "x-mint": {
          "metadata": {
            "title": "Create Agent",
            "description": "Create Agent",
            "og:title": "Create Agent"
          }
        }
      }
    },
    "/agents/{agentId}": {
      "delete": {
        "parameters": [
          {
            "in": "path",
            "name": "agentId",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Agent"
                }
              }
            },
            "description": "200 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "400 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "403 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "404 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "415": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "415 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "500 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "security": [
          {
            "OAuth2": [
              "agents:read"
            ]
          }
        ],
        "x-mint": {
          "metadata": {
            "title": "Delete Agent",
            "description": "Delete Agent",
            "og:title": "Delete Agent"
          }
        }
      },
      "get": {
        "parameters": [
          {
            "in": "path",
            "name": "agentId",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Agent"
                }
              }
            },
            "description": "200 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "400 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "403 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "404 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "415": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "415 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "500 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "security": [
          {
            "OAuth2": [
              "agents:read"
            ]
          }
        ],
        "x-mint": {
          "metadata": {
            "title": "Get Agent",
            "description": "Get Agent",
            "og:title": "Get Agent"
          }
        }
      },
      "patch": {
        "parameters": [
          {
            "in": "path",
            "name": "agentId",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "header",
            "name": "Content-Type",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PatchAgentId"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Agent"
                }
              }
            },
            "description": "200 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "400 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "403 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "404 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "415": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "415 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "500 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "security": [
          {
            "OAuth2": [
              "agents:write"
            ]
          }
        ],
        "x-mint": {
          "metadata": {
            "title": "Update Agent",
            "description": "Update Agent",
            "og:title": "Update Agent"
          }
        }
      }
    },
    "/agents/{agentId}/runs": {
      "get": {
        "parameters": [
          {
            "in": "query",
            "name": "history",
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "createdTimeAfter",
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "nextToken",
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "sort",
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "updatedTimeAfter",
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "agentId",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "createdTimeBefore",
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "status",
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "maxResults",
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "updatedTimeBefore",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AgentRuns"
                }
              }
            },
            "description": "200 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "400 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "403 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "404 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "415": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "415 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "500 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "security": [
          {
            "OAuth2": [
              "agents.runs:read"
            ]
          }
        ],
        "x-mint": {
          "metadata": {
            "title": "List Agent Runs",
            "description": "List Agent Runs",
            "og:title": "List Agent Runs"
          }
        }
      },
      "post": {
        "parameters": [
          {
            "in": "path",
            "name": "agentId",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "header",
            "name": "Content-Type",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PostAgentRuns"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AgentRun"
                }
              }
            },
            "description": "200 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "400 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "403 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "404 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "415": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "415 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "500 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "security": [
          {
            "OAuth2": [
              "agents.runs:write"
            ]
          }
        ],
        "x-mint": {
          "metadata": {
            "title": "Create Agent Run",
            "description": "Create Agent Run",
            "og:title": "Create Agent Run"
          }
        }
      }
    },
    "/agents/{agentId}/runs/{runId}": {
      "delete": {
        "parameters": [
          {
            "in": "path",
            "name": "agentId",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "runId",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AgentRun"
                }
              }
            },
            "description": "200 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "400 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "403 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "404 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "415": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "415 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "500 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "security": [
          {
            "OAuth2": [
              "agents.runs:read"
            ]
          }
        ],
        "x-mint": {
          "metadata": {
            "title": "Delete Agent Run",
            "description": "Delete Agent Run",
            "og:title": "Delete Agent Run"
          }
        }
      },
      "get": {
        "parameters": [
          {
            "in": "path",
            "name": "agentId",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "runId",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AgentRun"
                }
              }
            },
            "description": "200 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "400 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "403 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "404 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "415": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "415 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "500 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "security": [
          {
            "OAuth2": [
              "agents.runs:read"
            ]
          }
        ],
        "x-mint": {
          "metadata": {
            "title": "Get Agent Run",
            "description": "Get Agent Run",
            "og:title": "Get Agent Run"
          }
        }
      },
      "patch": {
        "parameters": [
          {
            "in": "path",
            "name": "agentId",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "header",
            "name": "Content-Type",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "runId",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PatchAgentRunId"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AgentRun"
                }
              }
            },
            "description": "200 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "400 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "403 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "404 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "415": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "415 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "500 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "security": [
          {
            "OAuth2": [
              "agents.runs:write"
            ]
          }
        ],
        "x-mint": {
          "metadata": {
            "title": "Update Agent Run",
            "description": "Update Agent Run",
            "og:title": "Update Agent Run"
          }
        }
      }
    },
    "/agents/{agentId}/statistics": {
      "get": {
        "parameters": [
          {
            "in": "path",
            "name": "agentId",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "before",
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "after",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AgentStatistics"
                }
              }
            },
            "description": "200 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "400 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "403 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "404 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "415": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "415 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "500 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "security": [
          {
            "OAuth2": [
              "agents.statistics:read"
            ]
          }
        ],
        "x-mint": {
          "metadata": {
            "title": "List Agent Statistics",
            "description": "List Agent Statistics",
            "og:title": "List Agent Statistics"
          }
        }
      }
    },
    "/appClients": {
      "get": {
        "parameters": [
          {
            "in": "query",
            "name": "nextToken",
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "maxResults",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AppClients"
                }
              }
            },
            "description": "200 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "400 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "403 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "404 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "415": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "415 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "500 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "security": [
          {
            "OAuth2": [
              "appclients:read"
            ]
          }
        ],
        "x-mint": {
          "metadata": {
            "title": "List Appclients",
            "description": "List Appclients",
            "og:title": "List Appclients"
          }
        }
      },
      "post": {
        "parameters": [
          {
            "in": "header",
            "name": "Content-Type",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PostAppClients"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AppClient"
                }
              }
            },
            "description": "200 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "400 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "403 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "404 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "415": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "415 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "500 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "security": [
          {
            "OAuth2": [
              "appclients:write"
            ]
          }
        ],
        "x-mint": {
          "metadata": {
            "title": "Create Appclient",
            "description": "Create Appclient",
            "og:title": "Create Appclient"
          }
        }
      }
    },
    "/appClients/{appClientId}": {
      "delete": {
        "parameters": [
          {
            "in": "path",
            "name": "appClientId",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AppClient"
                }
              }
            },
            "description": "200 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "400 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "403 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "404 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "415": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "415 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "500 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "security": [
          {
            "OAuth2": [
              "appclients:read"
            ]
          }
        ],
        "x-mint": {
          "metadata": {
            "title": "Delete Appclient",
            "description": "Delete Appclient",
            "og:title": "Delete Appclient"
          }
        }
      },
      "get": {
        "parameters": [
          {
            "in": "path",
            "name": "appClientId",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AppClient"
                }
              }
            },
            "description": "200 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "400 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "403 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "404 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "415": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "415 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "500 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "security": [
          {
            "OAuth2": [
              "appclients:read"
            ]
          }
        ],
        "x-mint": {
          "metadata": {
            "title": "Get Appclient",
            "description": "Get Appclient",
            "og:title": "Get Appclient"
          }
        }
      },
      "patch": {
        "parameters": [
          {
            "in": "path",
            "name": "appClientId",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "header",
            "name": "Content-Type",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PatchAppClientId"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AppClient"
                }
              }
            },
            "description": "200 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "400 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "403 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "404 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "415": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "415 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "500 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "security": [
          {
            "OAuth2": [
              "appclients:write"
            ]
          }
        ],
        "x-mint": {
          "metadata": {
            "title": "Update Appclient",
            "description": "Update Appclient",
            "og:title": "Update Appclient"
          }
        }
      }
    },
    "/documents": {
      "delete": {
        "parameters": [
          {
            "in": "query",
            "name": "consentId",
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "datasetId",
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "nextToken",
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "maxResults",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Documents"
                }
              }
            },
            "description": "200 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "400 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "403 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "404 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "415": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "415 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "500 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "security": [
          {
            "OAuth2": [
              "documents:write"
            ]
          }
        ],
        "x-mint": {
          "metadata": {
            "title": "Delete Document",
            "description": "Delete Document",
            "og:title": "Delete Document"
          }
        }
      },
      "get": {
        "parameters": [
          {
            "in": "query",
            "name": "datasetId",
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "nextToken",
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "order",
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "documentId",
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "consentId",
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "maxResults",
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "sortBy",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Documents"
                }
              }
            },
            "description": "200 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "400 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "403 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "404 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "415": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "415 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "500 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "security": [
          {
            "OAuth2": [
              "documents:read"
            ]
          }
        ],
        "x-mint": {
          "metadata": {
            "title": "List Documents",
            "description": "List Documents",
            "og:title": "List Documents"
          }
        }
      },
      "post": {
        "parameters": [
          {
            "in": "header",
            "name": "Content-Type",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PostDocuments"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Document"
                }
              }
            },
            "description": "200 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "400 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "403 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "404 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "415": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "415 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "500 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "security": [
          {
            "OAuth2": [
              "documents:write"
            ]
          }
        ],
        "x-mint": {
          "metadata": {
            "title": "Create Document",
            "description": "Create Document",
            "og:title": "Create Document"
          }
        }
      }
    },
    "/documents/{documentId}": {
      "delete": {
        "parameters": [
          {
            "in": "path",
            "name": "documentId",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Document"
                }
              }
            },
            "description": "200 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "400 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "403 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "404 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "415": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "415 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "500 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "security": [
          {
            "OAuth2": [
              "documents:read"
            ]
          }
        ],
        "x-mint": {
          "metadata": {
            "title": "Delete Document",
            "description": "Delete Document",
            "og:title": "Delete Document"
          }
        }
      },
      "get": {
        "parameters": [
          {
            "in": "path",
            "name": "documentId",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Document"
                }
              }
            },
            "description": "200 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "400 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "403 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "404 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "415": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "415 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "500 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "security": [
          {
            "OAuth2": [
              "documents:read"
            ]
          }
        ],
        "x-mint": {
          "metadata": {
            "title": "Get Document",
            "description": "Get Document",
            "og:title": "Get Document"
          }
        }
      },
      "patch": {
        "parameters": [
          {
            "in": "header",
            "name": "Content-Type",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "documentId",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PatchDocumentId"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Document"
                }
              }
            },
            "description": "200 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "400 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "403 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "404 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "415": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "415 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "500 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "security": [
          {
            "OAuth2": [
              "documents:write"
            ]
          }
        ],
        "x-mint": {
          "metadata": {
            "title": "Update Document",
            "description": "Update Document",
            "og:title": "Update Document"
          }
        }
      }
    },
    "/functions": {
      "get": {
        "parameters": [
          {
            "in": "query",
            "name": "owner",
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "nextToken",
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "maxResults",
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "sortBy",
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "order",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Functions"
                }
              }
            },
            "description": "200 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "400 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "403 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "404 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "415": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "415 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "500 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "security": [
          {
            "OAuth2": [
              "agents:read"
            ]
          }
        ],
        "x-mint": {
          "metadata": {
            "title": "List Functions",
            "description": "List Functions",
            "og:title": "List Functions"
          }
        }
      },
      "post": {
        "parameters": [
          {
            "in": "header",
            "name": "Content-Type",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PostFunctions"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Function"
                }
              }
            },
            "description": "200 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "400 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "403 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "404 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "415": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "415 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "500 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "security": [
          {
            "OAuth2": [
              "agents:write"
            ]
          }
        ],
        "x-mint": {
          "metadata": {
            "title": "Create Function",
            "description": "Create Function",
            "og:title": "Create Function"
          }
        }
      }
    },
    "/functions/{functionId}": {
      "delete": {
        "parameters": [
          {
            "in": "path",
            "name": "functionId",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Function"
                }
              }
            },
            "description": "200 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "400 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "403 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "404 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "415": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "415 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "500 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "security": [
          {
            "OAuth2": [
              "appclients:read"
            ]
          }
        ],
        "x-mint": {
          "metadata": {
            "title": "Delete Function",
            "description": "Delete Function",
            "og:title": "Delete Function"
          }
        }
      },
      "get": {
        "parameters": [
          {
            "in": "path",
            "name": "functionId",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Function"
                }
              }
            },
            "description": "200 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "400 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "403 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "404 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "415": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "415 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "500 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "security": [
          {
            "OAuth2": [
              "appclients:read"
            ]
          }
        ],
        "x-mint": {
          "metadata": {
            "title": "Get Function",
            "description": "Get Function",
            "og:title": "Get Function"
          }
        }
      },
      "patch": {
        "parameters": [
          {
            "in": "header",
            "name": "Content-Type",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "functionId",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PatchFunctionId"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Function"
                }
              }
            },
            "description": "200 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "400 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "403 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "404 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "415": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "415 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "500 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "security": [
          {
            "OAuth2": [
              "appclients:write"
            ]
          }
        ],
        "x-mint": {
          "metadata": {
            "title": "Update Function",
            "description": "Update Function",
            "og:title": "Update Function"
          }
        }
      }
    },
    "/hooks": {
      "get": {
        "parameters": [
          {
            "in": "query",
            "name": "nextToken",
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "maxResults",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Hooks"
                }
              }
            },
            "description": "200 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "400 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "403 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "404 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "415": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "415 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "500 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "security": [
          {
            "OAuth2": [
              "hooks:read"
            ]
          }
        ],
        "x-mint": {
          "metadata": {
            "title": "List Hooks",
            "description": "List Hooks",
            "og:title": "List Hooks"
          }
        }
      },
      "post": {
        "parameters": [
          {
            "in": "header",
            "name": "Content-Type",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PostHooks"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Hook"
                }
              }
            },
            "description": "200 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "400 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "403 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "404 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "415": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "415 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "500 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "security": [
          {
            "OAuth2": [
              "hooks:write"
            ]
          }
        ],
        "x-mint": {
          "metadata": {
            "title": "Create Hook",
            "description": "Create Hook",
            "og:title": "Create Hook"
          }
        }
      }
    },
    "/hooks/{hookId}": {
      "delete": {
        "parameters": [
          {
            "in": "path",
            "name": "hookId",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Hook"
                }
              }
            },
            "description": "200 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "400 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "403 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "404 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "415": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "415 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "500 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "security": [
          {
            "OAuth2": [
              "hooks:read"
            ]
          }
        ],
        "x-mint": {
          "metadata": {
            "title": "Delete Hook",
            "description": "Delete Hook",
            "og:title": "Delete Hook"
          }
        }
      },
      "get": {
        "parameters": [
          {
            "in": "path",
            "name": "hookId",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Hook"
                }
              }
            },
            "description": "200 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "400 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "403 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "404 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "415": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "415 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "500 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "security": [
          {
            "OAuth2": [
              "hooks:read"
            ]
          }
        ],
        "x-mint": {
          "metadata": {
            "title": "Get Hook",
            "description": "Get Hook",
            "og:title": "Get Hook"
          }
        }
      },
      "patch": {
        "parameters": [
          {
            "in": "header",
            "name": "Content-Type",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "hookId",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PatchHookId"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Hook"
                }
              }
            },
            "description": "200 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "400 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "403 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "404 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "415": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "415 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "500 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "security": [
          {
            "OAuth2": [
              "hooks:write"
            ]
          }
        ],
        "x-mint": {
          "metadata": {
            "title": "Update Hook",
            "description": "Update Hook",
            "og:title": "Update Hook"
          }
        }
      }
    },
    "/hooks/{hookId}/runs": {
      "get": {
        "parameters": [
          {
            "in": "query",
            "name": "status",
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "nextToken",
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "maxResults",
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "hookId",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HookRuns"
                }
              }
            },
            "description": "200 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "400 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "403 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "404 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "415": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "415 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "500 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "security": [
          {
            "OAuth2": [
              "hooks.runs:read"
            ]
          }
        ],
        "x-mint": {
          "metadata": {
            "title": "List Hook Runs",
            "description": "List Hook Runs",
            "og:title": "List Hook Runs"
          }
        }
      },
      "post": {
        "parameters": [
          {
            "in": "header",
            "name": "Content-Type",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "hookId",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PostHookRuns"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HookRun"
                }
              }
            },
            "description": "200 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "400 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "403 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "404 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "415": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "415 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "500 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "security": [
          {
            "OAuth2": [
              "hooks.runs:write"
            ]
          }
        ],
        "x-mint": {
          "metadata": {
            "title": "Create Hook Run",
            "description": "Create Hook Run",
            "og:title": "Create Hook Run"
          }
        }
      }
    },
    "/hooks/{hookId}/runs/{runId}": {
      "get": {
        "parameters": [
          {
            "in": "path",
            "name": "hookId",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "runId",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HookRun"
                }
              }
            },
            "description": "200 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "400 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "403 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "404 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "415": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "415 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "500 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "security": [
          {
            "OAuth2": [
              "hooks.runs:read"
            ]
          }
        ],
        "x-mint": {
          "metadata": {
            "title": "Get Hook Run",
            "description": "Get Hook Run",
            "og:title": "Get Hook Run"
          }
        }
      },
      "patch": {
        "parameters": [
          {
            "in": "header",
            "name": "Content-Type",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "hookId",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "runId",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PatchHookRunId"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HookRun"
                }
              }
            },
            "description": "200 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "400 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "403 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "404 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "415": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "415 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "500 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "security": [
          {
            "OAuth2": [
              "hooks.runs:write"
            ]
          }
        ],
        "x-mint": {
          "metadata": {
            "title": "Update Hook Run",
            "description": "Update Hook Run",
            "og:title": "Update Hook Run"
          }
        }
      }
    },
    "/logs": {
      "get": {
        "parameters": [
          {
            "in": "query",
            "name": "workflowId",
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "nextToken",
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "order",
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "transitionExecutionId",
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "transitionId",
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "maxResults",
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "workflowExecutionId",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Logs"
                }
              }
            },
            "description": "200 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "400 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "403 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "404 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "415": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "415 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "500 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "security": [
          {
            "OAuth2": [
              "logs:read"
            ]
          }
        ],
        "x-mint": {
          "metadata": {
            "title": "List Logs",
            "description": "List Logs",
            "og:title": "List Logs"
          }
        }
      }
    },
    "/logs/{logId}": {
      "get": {
        "parameters": [
          {
            "in": "path",
            "name": "logId",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Log"
                }
              }
            },
            "description": "200 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "400 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "403 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "404 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "415": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "415 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "500 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "security": [
          {
            "OAuth2": [
              "logs:read"
            ]
          }
        ],
        "x-mint": {
          "metadata": {
            "title": "Get Log",
            "description": "Get Log",
            "og:title": "Get Log"
          }
        }
      }
    },
    "/models": {
      "get": {
        "parameters": [
          {
            "in": "query",
            "name": "owner",
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "nextToken",
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "maxResults",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Models"
                }
              }
            },
            "description": "200 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "400 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "403 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "404 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "415": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "415 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "500 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "security": [
          {
            "OAuth2": [
              "models:read"
            ]
          }
        ],
        "x-mint": {
          "metadata": {
            "title": "List Models",
            "description": "List Models",
            "og:title": "List Models"
          }
        }
      },
      "post": {
        "parameters": [
          {
            "in": "header",
            "name": "Content-Type",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PostModels"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Model"
                }
              }
            },
            "description": "200 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "400 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "403 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "404 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "415": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "415 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "500 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "security": [
          {
            "OAuth2": [
              "models:write"
            ]
          }
        ],
        "x-mint": {
          "metadata": {
            "title": "Create Model",
            "description": "Create Model",
            "og:title": "Create Model"
          }
        }
      }
    },
    "/models/{modelId}": {
      "delete": {
        "parameters": [
          {
            "in": "path",
            "name": "modelId",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Model"
                }
              }
            },
            "description": "200 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "400 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "403 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "404 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "415": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "415 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "500 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "security": [
          {
            "OAuth2": [
              "models:read"
            ]
          }
        ],
        "x-mint": {
          "metadata": {
            "title": "Delete Model",
            "description": "Delete Model",
            "og:title": "Delete Model"
          }
        }
      },
      "get": {
        "parameters": [
          {
            "in": "query",
            "name": "statisticsLastNDays",
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "modelId",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Model"
                }
              }
            },
            "description": "200 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "400 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "403 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "404 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "415": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "415 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "500 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "security": [
          {
            "OAuth2": [
              "models:read"
            ]
          }
        ],
        "x-mint": {
          "metadata": {
            "title": "Get Model",
            "description": "Get Model",
            "og:title": "Get Model"
          }
        }
      },
      "patch": {
        "parameters": [
          {
            "in": "header",
            "name": "Content-Type",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "modelId",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PatchModelId"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Model"
                }
              }
            },
            "description": "200 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "400 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "403 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "404 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "415": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "415 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "500 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "security": [
          {
            "OAuth2": [
              "models:write"
            ]
          }
        ],
        "x-mint": {
          "metadata": {
            "title": "Update Model",
            "description": "Update Model",
            "og:title": "Update Model"
          }
        }
      }
    },
    "/organizations": {
      "get": {
        "parameters": [
          {
            "in": "query",
            "name": "nextToken",
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "maxResults",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Organizations"
                }
              }
            },
            "description": "200 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "400 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "403 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "404 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "415": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "415 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "500 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "security": [
          {
            "OAuth2": [
              "organizations:read"
            ]
          }
        ],
        "x-mint": {
          "metadata": {
            "title": "List Organizations",
            "description": "List Organizations",
            "og:title": "List Organizations"
          }
        }
      },
      "post": {
        "parameters": [
          {
            "in": "header",
            "name": "Content-Type",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PostOrganizations"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Organization"
                }
              }
            },
            "description": "200 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "400 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "403 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "404 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "415": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "415 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "500 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "security": [
          {
            "OAuth2": [
              "organizations:write"
            ]
          }
        ],
        "x-mint": {
          "metadata": {
            "title": "Create Organization",
            "description": "Create Organization",
            "og:title": "Create Organization"
          }
        }
      }
    },
    "/organizations/{organizationId}": {
      "get": {
        "parameters": [
          {
            "in": "path",
            "name": "organizationId",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Organization"
                }
              }
            },
            "description": "200 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "400 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "403 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "404 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "415": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "415 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "500 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "security": [
          {
            "OAuth2": [
              "organizations:read"
            ]
          }
        ],
        "x-mint": {
          "metadata": {
            "title": "Get Organization",
            "description": "Get Organization",
            "og:title": "Get Organization"
          }
        }
      },
      "patch": {
        "parameters": [
          {
            "in": "header",
            "name": "Content-Type",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "organizationId",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PatchOrganizationId"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Organization"
                }
              }
            },
            "description": "200 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "400 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "403 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "404 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "415": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "415 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "500 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "security": [
          {
            "OAuth2": [
              "organizations:write"
            ]
          }
        ],
        "x-mint": {
          "metadata": {
            "title": "Update Organization",
            "description": "Update Organization",
            "og:title": "Update Organization"
          }
        }
      }
    },
    "/predictions": {
      "get": {
        "parameters": [
          {
            "in": "query",
            "name": "nextToken",
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "maxResults",
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "sortBy",
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "order",
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "modelId",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Predictions"
                }
              }
            },
            "description": "200 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "400 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "403 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "404 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "415": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "415 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "500 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "security": [
          {
            "OAuth2": [
              "predictions:read"
            ]
          }
        ],
        "x-mint": {
          "metadata": {
            "title": "List Predictions",
            "description": "List Predictions",
            "og:title": "List Predictions"
          }
        }
      },
      "post": {
        "parameters": [
          {
            "in": "header",
            "name": "Content-Type",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PostPredictions"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Prediction"
                }
              }
            },
            "description": "200 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "400 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "403 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "404 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "415": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "415 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "500 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "security": [
          {
            "OAuth2": [
              "predictions:write"
            ]
          }
        ],
        "x-mint": {
          "metadata": {
            "title": "Create Prediction",
            "description": "Create Prediction",
            "og:title": "Create Prediction"
          }
        }
      }
    },
    "/predictions/{predictionId}": {
      "get": {
        "parameters": [
          {
            "in": "path",
            "name": "predictionId",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Prediction"
                }
              }
            },
            "description": "200 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "400 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "403 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "404 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "415": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "415 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "500 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "security": [
          {
            "OAuth2": [
              "predictions:read"
            ]
          }
        ],
        "x-mint": {
          "metadata": {
            "title": "Get Prediction",
            "description": "Get Prediction",
            "og:title": "Get Prediction"
          }
        }
      }
    },
    "/roles": {
      "get": {
        "parameters": [
          {
            "in": "query",
            "name": "nextToken",
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "maxResults",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Roles"
                }
              }
            },
            "description": "200 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "400 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "403 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "404 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "415": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "415 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "500 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "security": [
          {
            "OAuth2": [
              "workflows:read"
            ]
          }
        ],
        "x-mint": {
          "metadata": {
            "title": "List Roles",
            "description": "List Roles",
            "og:title": "List Roles"
          }
        }
      },
      "post": {
        "parameters": [
          {
            "in": "header",
            "name": "Content-Type",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PostRoles"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Role"
                }
              }
            },
            "description": "200 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "400 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "403 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "404 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "415": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "415 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "500 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "security": [
          {
            "OAuth2": [
              "workflows:write"
            ]
          }
        ],
        "x-mint": {
          "metadata": {
            "title": "Create Role",
            "description": "Create Role",
            "og:title": "Create Role"
          }
        }
      }
    },
    "/roles/{roleId}": {
      "delete": {
        "parameters": [
          {
            "in": "path",
            "name": "roleId",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Role"
                }
              }
            },
            "description": "200 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "400 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "403 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "404 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "415": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "415 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "500 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "security": [
          {
            "OAuth2": [
              "models:read"
            ]
          }
        ],
        "x-mint": {
          "metadata": {
            "title": "Delete Role",
            "description": "Delete Role",
            "og:title": "Delete Role"
          }
        }
      },
      "get": {
        "parameters": [
          {
            "in": "path",
            "name": "roleId",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Role"
                }
              }
            },
            "description": "200 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "400 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "403 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "404 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "415": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "415 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "500 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "security": [
          {
            "OAuth2": [
              "models:read"
            ]
          }
        ],
        "x-mint": {
          "metadata": {
            "title": "Get Role",
            "description": "Get Role",
            "og:title": "Get Role"
          }
        }
      },
      "patch": {
        "parameters": [
          {
            "in": "header",
            "name": "Content-Type",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "roleId",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PatchRoleId"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Role"
                }
              }
            },
            "description": "200 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "400 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "403 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "404 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "415": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "415 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "500 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "security": [
          {
            "OAuth2": [
              "models:write"
            ]
          }
        ],
        "x-mint": {
          "metadata": {
            "title": "Update Role",
            "description": "Update Role",
            "og:title": "Update Role"
          }
        }
      }
    },
    "/users": {
      "get": {
        "parameters": [
          {
            "in": "query",
            "name": "nextToken",
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "maxResults",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Users"
                }
              }
            },
            "description": "200 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "400 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "403 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "404 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "415": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "415 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "500 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "security": [
          {
            "OAuth2": [
              "users:read"
            ]
          }
        ],
        "x-mint": {
          "metadata": {
            "title": "List Users",
            "description": "List Users",
            "og:title": "List Users"
          }
        }
      },
      "post": {
        "parameters": [
          {
            "in": "header",
            "name": "Content-Type",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PostUsers"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/User"
                }
              }
            },
            "description": "200 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "400 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "403 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "404 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "415": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "415 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "500 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "security": [
          {
            "OAuth2": [
              "users:write"
            ]
          }
        ],
        "x-mint": {
          "metadata": {
            "title": "Create User",
            "description": "Create User",
            "og:title": "Create User"
          }
        }
      }
    },
    "/users/{userId}": {
      "delete": {
        "parameters": [
          {
            "in": "path",
            "name": "userId",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/User"
                }
              }
            },
            "description": "200 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "400 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "403 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "404 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "415": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "415 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "500 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "security": [
          {
            "OAuth2": [
              "users:read"
            ]
          }
        ],
        "x-mint": {
          "metadata": {
            "title": "Delete User",
            "description": "Delete User",
            "og:title": "Delete User"
          }
        }
      },
      "get": {
        "parameters": [
          {
            "in": "path",
            "name": "userId",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/User"
                }
              }
            },
            "description": "200 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "400 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "403 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "404 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "415": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "415 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "500 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "security": [
          {
            "OAuth2": [
              "users:read"
            ]
          }
        ],
        "x-mint": {
          "metadata": {
            "title": "Get User",
            "description": "Get User",
            "og:title": "Get User"
          }
        }
      },
      "patch": {
        "parameters": [
          {
            "in": "header",
            "name": "Content-Type",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "userId",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PatchUserId"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/User"
                }
              }
            },
            "description": "200 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "400 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "403 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "404 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "415": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "415 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "500 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "security": [
          {
            "OAuth2": [
              "users:write"
            ]
          }
        ],
        "x-mint": {
          "metadata": {
            "title": "Update User",
            "description": "Update User",
            "og:title": "Update User"
          }
        }
      }
    },
    "/validations": {
      "get": {
        "parameters": [
          {
            "in": "query",
            "name": "nextToken",
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "maxResults",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Validations"
                }
              }
            },
            "description": "200 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "400 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "403 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "404 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "415": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "415 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "500 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "security": [
          {
            "OAuth2": [
              "validations:read"
            ]
          }
        ],
        "x-mint": {
          "metadata": {
            "title": "List Validations",
            "description": "List Validations",
            "og:title": "List Validations"
          }
        }
      },
      "post": {
        "parameters": [
          {
            "in": "header",
            "name": "Content-Type",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PostValidations"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Validation"
                }
              }
            },
            "description": "200 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "400 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "403 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "404 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "415": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "415 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "500 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "security": [
          {
            "OAuth2": [
              "validations:write"
            ]
          }
        ],
        "x-mint": {
          "metadata": {
            "title": "Create Validation",
            "description": "Create Validation",
            "og:title": "Create Validation"
          }
        }
      }
    },
    "/validations/{validationId}": {
      "delete": {
        "parameters": [
          {
            "in": "path",
            "name": "validationId",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Validation"
                }
              }
            },
            "description": "200 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "400 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "403 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "404 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "415": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "415 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "500 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "security": [
          {
            "OAuth2": [
              "validations:read"
            ]
          }
        ],
        "x-mint": {
          "metadata": {
            "title": "Delete Validation",
            "description": "Delete Validation",
            "og:title": "Delete Validation"
          }
        }
      },
      "get": {
        "parameters": [
          {
            "in": "path",
            "name": "validationId",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Validation"
                }
              }
            },
            "description": "200 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "400 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "403 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "404 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "415": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "415 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "500 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "security": [
          {
            "OAuth2": [
              "validations:read"
            ]
          }
        ],
        "x-mint": {
          "metadata": {
            "title": "Get Validation",
            "description": "Get Validation",
            "og:title": "Get Validation"
          }
        }
      },
      "patch": {
        "parameters": [
          {
            "in": "header",
            "name": "Content-Type",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "validationId",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PatchValidationId"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Validation"
                }
              }
            },
            "description": "200 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "400 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "403 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "404 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "415": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "415 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "500 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "security": [
          {
            "OAuth2": [
              "validations:write"
            ]
          }
        ],
        "x-mint": {
          "metadata": {
            "title": "Update Validation",
            "description": "Update Validation",
            "og:title": "Update Validation"
          }
        }
      }
    },
    "/validations/{validationId}/tasks": {
      "get": {
        "parameters": [
          {
            "in": "query",
            "name": "status",
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "nextToken",
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "maxResults",
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "validationId",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationTasks"
                }
              }
            },
            "description": "200 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "400 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "403 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "404 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "415": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "415 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "500 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "security": [
          {
            "OAuth2": [
              "validations.tasks:read"
            ]
          }
        ],
        "x-mint": {
          "metadata": {
            "title": "List Validation Tasks",
            "description": "List Validation Tasks",
            "og:title": "List Validation Tasks"
          }
        }
      },
      "post": {
        "parameters": [
          {
            "in": "header",
            "name": "Content-Type",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "validationId",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PostValidationTasks"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationTask"
                }
              }
            },
            "description": "200 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "400 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "403 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "404 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "415": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "415 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "500 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "security": [
          {
            "OAuth2": [
              "validations.tasks:write"
            ]
          }
        ],
        "x-mint": {
          "metadata": {
            "title": "Create Validation Task",
            "description": "Create Validation Task",
            "og:title": "Create Validation Task"
          }
        }
      }
    },
    "/validations/{validationId}/tasks/{taskId}": {
      "get": {
        "parameters": [
          {
            "in": "path",
            "name": "taskId",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "validationId",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationTask"
                }
              }
            },
            "description": "200 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "400 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "403 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "404 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "415": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "415 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "500 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "security": [
          {
            "OAuth2": [
              "validations.tasks:read"
            ]
          }
        ],
        "x-mint": {
          "metadata": {
            "title": "Get Validation Task",
            "description": "Get Validation Task",
            "og:title": "Get Validation Task"
          }
        }
      },
      "patch": {
        "parameters": [
          {
            "in": "header",
            "name": "Content-Type",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "taskId",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "validationId",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PatchValidationTaskId"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationTask"
                }
              }
            },
            "description": "200 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "400 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "403 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "404 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "415": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "415 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "description": "500 response",
            "headers": {
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "security": [
          {
            "OAuth2": [
              "validations.tasks:write"
            ]
          }
        ],
        "x-mint": {
          "metadata": {
            "title": "Update Validation Task",
            "description": "Update Validation Task",
            "og:title": "Update Validation Task"
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "PatchActionId": {
        "title": "PATCH /actions/actionId",
        "minProperties": 1,
        "type": "object",
        "properties": {
          "metadata": {
            "type": "object"
          },
          "functionId": {
            "pattern": "^((cradl|las):organization:[a-z0-9-_]+/)?cradl:function:[a-z0-9-_]+$",
            "type": "string"
          },
          "name": {
            "maxLength": 4096,
            "type": "string",
            "nullable": true
          },
          "description": {
            "maxLength": 4096,
            "type": "string",
            "nullable": true
          },
          "connectionId": {
            "pattern": "^cradl:connection:[a-f0-9]{32}$",
            "type": "string",
            "nullable": true
          },
          "secretId": {
            "pattern": "^(cradl|las):secret:[a-f0-9]{32}$",
            "type": "string",
            "nullable": true
          },
          "config": {
            "type": "object"
          },
          "enabled": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "PostAgentRuns": {
        "title": "POST /agents/{agentId}/runs",
        "type": "object",
        "properties": {
          "variables": {
            "type": "object",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "Users": {
        "title": "users",
        "required": [
          "nextToken",
          "users"
        ],
        "type": "object",
        "properties": {
          "nextToken": {
            "maxLength": 4096,
            "type": "string",
            "nullable": true
          },
          "users": {
            "type": "array",
            "items": {
              "required": [
                "createdBy",
                "createdTime",
                "description",
                "metadata",
                "name",
                "updatedBy",
                "updatedTime",
                "userId"
              ],
              "type": "object",
              "properties": {
                "updatedTime": {
                  "pattern": "^[0-9]{4}-?[0-9]{2}-?[0-9]{2}( |T)?[0-9]{2}:?[0-9]{2}:?[0-9]{2}(.[0-9]{1,6})?(Z|[+][0-9]{2}(:|)[0-9]{2})$",
                  "type": "string",
                  "nullable": true
                },
                "metadata": {
                  "type": "object",
                  "nullable": true
                },
                "updatedBy": {
                  "maxLength": 4096,
                  "type": "string",
                  "nullable": true
                },
                "roleIds": {
                  "type": "array",
                  "items": {
                    "pattern": "^(cradl|las):role:[0-9A-Za-z-_]{1,32}$",
                    "type": "string"
                  },
                  "nullable": true
                },
                "statusReason": {
                  "maxLength": 4096,
                  "type": "string",
                  "nullable": true
                },
                "createdBy": {
                  "maxLength": 4096,
                  "type": "string"
                },
                "profileId": {
                  "pattern": "^(cradl|las):profile:[a-f0-9]{32}$",
                  "type": "string",
                  "nullable": true
                },
                "name": {
                  "maxLength": 4096,
                  "type": "string",
                  "nullable": true
                },
                "createdTime": {
                  "pattern": "^[0-9]{4}-?[0-9]{2}-?[0-9]{2}( |T)?[0-9]{2}:?[0-9]{2}:?[0-9]{2}(.[0-9]{1,6})?(Z|[+][0-9]{2}(:|)[0-9]{2})$",
                  "type": "string"
                },
                "description": {
                  "maxLength": 4096,
                  "type": "string",
                  "nullable": true
                },
                "userId": {
                  "pattern": "^(cradl|las):user:[0-9A-Za-z-_]+$",
                  "type": "string"
                },
                "status": {
                  "type": "string",
                  "enum": [
                    "inactive",
                    "active",
                    "invite_pending"
                  ]
                }
              },
              "additionalProperties": false
            }
          }
        },
        "additionalProperties": false
      },
      "Document": {
        "title": "document",
        "required": [
          "createdBy",
          "createdTime",
          "description",
          "documentId",
          "metadata",
          "name",
          "retentionInDays",
          "updatedBy",
          "updatedTime"
        ],
        "type": "object",
        "properties": {
          "updatedTime": {
            "pattern": "^[0-9]{4}-?[0-9]{2}-?[0-9]{2}( |T)?[0-9]{2}:?[0-9]{2}:?[0-9]{2}(.[0-9]{1,6})?(Z|[+][0-9]{2}(:|)[0-9]{2})$",
            "type": "string",
            "nullable": true
          },
          "contentMD5": {
            "maxLength": 4096,
            "type": "string",
            "nullable": true
          },
          "metadata": {
            "type": "object",
            "nullable": true
          },
          "retentionInDays": {
            "maximum": 1825,
            "minimum": 1,
            "type": "integer"
          },
          "ocrFileUrl": {
            "pattern": "^http://localhost.*|^https://.*",
            "type": "string",
            "nullable": true
          },
          "updatedBy": {
            "maxLength": 4096,
            "type": "string",
            "nullable": true
          },
          "description": {
            "maxLength": 4096,
            "type": "string",
            "nullable": true
          },
          "agentRunId": {
            "pattern": "^((cradl|las):organization:[a-z0-9-_]+/)?cradl:agent:[a-z0-9-_]+/cradl:run:[a-z0-9-_]+$",
            "type": "string",
            "nullable": true
          },
          "content": {
            "maxLength": 6250000,
            "minLength": 1,
            "type": "string",
            "nullable": true
          },
          "groundTruth": {
            "type": "array",
            "items": {
              "required": [
                "label",
                "value"
              ],
              "type": "object",
              "properties": {
                "pages": {
                  "maxItems": 10,
                  "type": "array",
                  "items": {
                    "type": "integer"
                  }
                },
                "rawValue": {
                  "anyOf": [
                    {
                      "maxLength": 1024,
                      "minLength": 0,
                      "type": "string",
                      "nullable": true
                    },
                    {
                      "type": "boolean",
                      "nullable": true
                    },
                    {
                      "type": "number",
                      "nullable": true
                    }
                  ]
                },
                "confidence": {
                  "maximum": 1,
                  "minimum": 0,
                  "type": "number"
                },
                "label": {
                  "maxLength": 36,
                  "minLength": 1,
                  "pattern": "^[0-9A-Za-z-_]+$",
                  "type": "string"
                },
                "value": {
                  "anyOf": [
                    {
                      "maxLength": 1024,
                      "minLength": 0,
                      "type": "string",
                      "nullable": true
                    },
                    {
                      "type": "boolean",
                      "nullable": true
                    },
                    {
                      "type": "number",
                      "nullable": true
                    },
                    {
                      "$ref": "#/components/schemas/groundTruthList",
                      "nullable": true
                    }
                  ]
                }
              },
              "additionalProperties": false
            }
          },
          "consentId": {
            "pattern": "^las:consent:[a-f0-9]{32}$",
            "type": "string"
          },
          "createdBy": {
            "maxLength": 4096,
            "type": "string"
          },
          "name": {
            "maxLength": 4096,
            "type": "string",
            "nullable": true
          },
          "createdTime": {
            "pattern": "^[0-9]{4}-?[0-9]{2}-?[0-9]{2}( |T)?[0-9]{2}:?[0-9]{2}:?[0-9]{2}(.[0-9]{1,6})?(Z|[+][0-9]{2}(:|)[0-9]{2})$",
            "type": "string"
          },
          "datasetId": {
            "pattern": "^(cradl|las):dataset:[a-f0-9]{32}$",
            "type": "string"
          },
          "documentId": {
            "pattern": "^(cradl|las):document:[a-f0-9]{32}$",
            "type": "string"
          },
          "fileUrl": {
            "pattern": "^http://localhost.*|^https://.*",
            "type": "string",
            "nullable": true
          },
          "contentType": {
            "type": "string",
            "enum": [
              "application/pdf",
              "image/jpeg",
              "image/png",
              "image/tiff",
              "image/webp",
              "message/rfc822"
            ],
            "nullable": true
          },
          "annotationFileUrl": {
            "pattern": "^http://localhost.*|^https://.*",
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "AgentRun": {
        "title": "run",
        "required": [
          "agentId",
          "runId"
        ],
        "type": "object",
        "properties": {
          "updatedTime": {
            "pattern": "^[0-9]{4}-?[0-9]{2}-?[0-9]{2}( |T)?[0-9]{2}:?[0-9]{2}:?[0-9]{2}(.[0-9]{1,6})?(Z|[+][0-9]{2}(:|)[0-9]{2})$",
            "type": "string",
            "nullable": true
          },
          "agentId": {
            "pattern": "^cradl:agent:[a-f0-9]{32}$",
            "type": "string"
          },
          "updatedBy": {
            "maxLength": 4096,
            "type": "string",
            "nullable": true
          },
          "createdBy": {
            "maxLength": 4096,
            "type": "string",
            "nullable": true
          },
          "createdTime": {
            "pattern": "^[0-9]{4}-?[0-9]{2}-?[0-9]{2}( |T)?[0-9]{2}:?[0-9]{2}:?[0-9]{2}(.[0-9]{1,6})?(Z|[+][0-9]{2}(:|)[0-9]{2})$",
            "type": "string",
            "nullable": true
          },
          "id": {
            "pattern": "^((cradl|las):organization:[a-z0-9-_]+/)?cradl:agent:[a-z0-9-_]+/cradl:run:[a-z0-9-_]+$",
            "type": "string"
          },
          "runId": {
            "pattern": "^cradl:run:[a-f0-9]{32}$",
            "type": "string"
          },
          "variablesFileUrl": {
            "pattern": "^http://localhost.*|^https://.*",
            "type": "string",
            "nullable": true
          },
          "events": {
            "type": "array",
            "items": {
              "type": "object"
            }
          },
          "resourceIds": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "status": {
            "type": "string",
            "enum": [
              "archived",
              "exported",
              "pending-export",
              "pending-predictions",
              "ready-for-review",
              "review-completed",
              "succeeded-predictions",
              "error",
              "running",
              "completed",
              "review-in-progress"
            ]
          }
        },
        "additionalProperties": false
      },
      "PatchDocumentId": {
        "title": "PATCH /documents/{documentId}",
        "minProperties": 1,
        "type": "object",
        "properties": {
          "groundTruth": {
            "type": "array",
            "items": {
              "required": [
                "label",
                "value"
              ],
              "type": "object",
              "properties": {
                "pages": {
                  "maxItems": 10,
                  "type": "array",
                  "items": {
                    "type": "integer"
                  }
                },
                "rawValue": {
                  "anyOf": [
                    {
                      "maxLength": 1024,
                      "minLength": 0,
                      "type": "string",
                      "nullable": true
                    },
                    {
                      "type": "boolean",
                      "nullable": true
                    },
                    {
                      "type": "number",
                      "nullable": true
                    }
                  ]
                },
                "confidence": {
                  "maximum": 1,
                  "minimum": 0,
                  "type": "number"
                },
                "label": {
                  "maxLength": 36,
                  "minLength": 1,
                  "pattern": "^[0-9A-Za-z-_]+$",
                  "type": "string"
                },
                "value": {
                  "anyOf": [
                    {
                      "maxLength": 1024,
                      "minLength": 0,
                      "type": "string",
                      "nullable": true
                    },
                    {
                      "type": "boolean",
                      "nullable": true
                    },
                    {
                      "type": "number",
                      "nullable": true
                    },
                    {
                      "$ref": "#/components/schemas/groundTruthList",
                      "nullable": true
                    }
                  ]
                }
              },
              "additionalProperties": false
            },
            "nullable": true
          },
          "metadata": {
            "type": "object"
          },
          "retentionInDays": {
            "maximum": 1825,
            "minimum": 1,
            "type": "integer"
          },
          "name": {
            "maxLength": 4096,
            "type": "string",
            "nullable": true
          },
          "description": {
            "maxLength": 4096,
            "type": "string",
            "nullable": true
          },
          "datasetId": {
            "pattern": "^(cradl|las):dataset:[a-f0-9]{32}$",
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "PatchAppClientId": {
        "title": "PATCH /appClients/{appClientId}",
        "minProperties": 1,
        "type": "object",
        "properties": {
          "metadata": {
            "type": "object"
          },
          "roleIds": {
            "type": "array",
            "items": {
              "pattern": "^(cradl|las):role:[0-9A-Za-z-_]{1,32}$",
              "type": "string"
            }
          },
          "name": {
            "maxLength": 4096,
            "type": "string",
            "nullable": true
          },
          "description": {
            "maxLength": 4096,
            "type": "string",
            "nullable": true
          },
          "loginUrls": {
            "type": "array",
            "items": {
              "pattern": "^http://localhost.*|^https://.*",
              "type": "string"
            }
          },
          "defaultLoginUrl": {
            "pattern": "^http://localhost.*|^https://.*",
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "PatchActionRunId": {
        "title": "PATCH /actions/{actionId}/runs/{runId}",
        "minProperties": 1,
        "type": "object",
        "properties": {
          "output": {
            "type": "object"
          },
          "metadata": {
            "type": "object"
          },
          "status": {
            "type": "string",
            "enum": [
              "failed",
              "succeeded"
            ]
          }
        },
        "additionalProperties": false
      },
      "Validations": {
        "title": "validations",
        "required": [
          "nextToken",
          "validations"
        ],
        "type": "object",
        "properties": {
          "nextToken": {
            "maxLength": 4096,
            "type": "string",
            "nullable": true
          },
          "validations": {
            "type": "array",
            "items": {
              "required": [
                "createdBy",
                "createdTime",
                "description",
                "metadata",
                "name",
                "updatedBy",
                "updatedTime",
                "validationId"
              ],
              "type": "object",
              "properties": {
                "updatedTime": {
                  "pattern": "^[0-9]{4}-?[0-9]{2}-?[0-9]{2}( |T)?[0-9]{2}:?[0-9]{2}:?[0-9]{2}(.[0-9]{1,6})?(Z|[+][0-9]{2}(:|)[0-9]{2})$",
                  "type": "string",
                  "nullable": true
                },
                "metadata": {
                  "type": "object",
                  "nullable": true
                },
                "validationId": {
                  "pattern": "^cradl:validation:[a-f0-9]{32}$",
                  "type": "string"
                },
                "updatedBy": {
                  "maxLength": 4096,
                  "type": "string",
                  "nullable": true
                },
                "createdBy": {
                  "maxLength": 4096,
                  "type": "string"
                },
                "name": {
                  "maxLength": 4096,
                  "type": "string",
                  "nullable": true
                },
                "createdTime": {
                  "pattern": "^[0-9]{4}-?[0-9]{2}-?[0-9]{2}( |T)?[0-9]{2}:?[0-9]{2}:?[0-9]{2}(.[0-9]{1,6})?(Z|[+][0-9]{2}(:|)[0-9]{2})$",
                  "type": "string"
                },
                "description": {
                  "maxLength": 4096,
                  "type": "string",
                  "nullable": true
                },
                "id": {
                  "pattern": "^((cradl|las):organization:[a-z0-9-_]+/)?cradl:validation:[a-z0-9-_]+$",
                  "type": "string"
                },
                "config": {
                  "type": "object",
                  "nullable": true
                },
                "enabled": {
                  "type": "boolean"
                }
              },
              "additionalProperties": false
            }
          }
        },
        "additionalProperties": false
      },
      "PostValidationTasks": {
        "title": "POST /validations/{validationId}/tasks",
        "type": "object",
        "properties": {
          "input": {
            "type": "object"
          },
          "metadata": {
            "type": "object"
          },
          "name": {
            "maxLength": 4096,
            "type": "string",
            "nullable": true
          },
          "description": {
            "maxLength": 4096,
            "type": "string",
            "nullable": true
          },
          "agentRunId": {
            "pattern": "^((cradl|las):organization:[a-z0-9-_]+/)?cradl:agent:[a-z0-9-_]+/cradl:run:[a-z0-9-_]+$",
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "PostActions": {
        "title": "POST /actions",
        "type": "object",
        "properties": {
          "metadata": {
            "type": "object"
          },
          "functionId": {
            "pattern": "^((cradl|las):organization:[a-z0-9-_]+/)?cradl:function:[a-z0-9-_]+$",
            "type": "string"
          },
          "name": {
            "maxLength": 4096,
            "type": "string",
            "nullable": true
          },
          "description": {
            "maxLength": 4096,
            "type": "string",
            "nullable": true
          },
          "connectionId": {
            "pattern": "^cradl:connection:[a-f0-9]{32}$",
            "type": "string",
            "nullable": true
          },
          "secretId": {
            "pattern": "^(cradl|las):secret:[a-f0-9]{32}$",
            "type": "string",
            "nullable": true
          },
          "config": {
            "type": "object"
          },
          "enabled": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "ActionRun": {
        "title": "run",
        "required": [
          "actionId",
          "createdBy",
          "createdTime",
          "description",
          "metadata",
          "name",
          "runId",
          "updatedBy",
          "updatedTime"
        ],
        "type": "object",
        "properties": {
          "updatedTime": {
            "pattern": "^[0-9]{4}-?[0-9]{2}-?[0-9]{2}( |T)?[0-9]{2}:?[0-9]{2}:?[0-9]{2}(.[0-9]{1,6})?(Z|[+][0-9]{2}(:|)[0-9]{2})$",
            "type": "string",
            "nullable": true
          },
          "metadata": {
            "type": "object",
            "nullable": true
          },
          "updatedBy": {
            "maxLength": 4096,
            "type": "string",
            "nullable": true
          },
          "warnings": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "nullable": true
          },
          "description": {
            "maxLength": 4096,
            "type": "string",
            "nullable": true
          },
          "history": {
            "type": "array",
            "items": {
              "type": "object"
            }
          },
          "agentRunId": {
            "pattern": "^((cradl|las):organization:[a-z0-9-_]+/)?cradl:agent:[a-z0-9-_]+/cradl:run:[a-z0-9-_]+$",
            "type": "string",
            "nullable": true
          },
          "output": {
            "type": "object",
            "nullable": true
          },
          "input": {
            "type": "object",
            "nullable": true
          },
          "noAgentRunUpdate": {
            "type": "boolean"
          },
          "createdBy": {
            "maxLength": 4096,
            "type": "string"
          },
          "name": {
            "maxLength": 4096,
            "type": "string",
            "nullable": true
          },
          "actionId": {
            "pattern": "^cradl:action:[a-f0-9]{32}$",
            "type": "string"
          },
          "createdTime": {
            "pattern": "^[0-9]{4}-?[0-9]{2}-?[0-9]{2}( |T)?[0-9]{2}:?[0-9]{2}:?[0-9]{2}(.[0-9]{1,6})?(Z|[+][0-9]{2}(:|)[0-9]{2})$",
            "type": "string"
          },
          "logId": {
            "pattern": "^(cradl|las):log:[a-f0-9]{32}$",
            "type": "string",
            "nullable": true
          },
          "id": {
            "pattern": "^((cradl|las):organization:[a-z0-9-_]+/)?cradl:action:[a-z0-9-_]+/cradl:run:[a-z0-9-_]+$",
            "type": "string"
          },
          "runId": {
            "pattern": "^cradl:run:[a-f0-9]{32}$",
            "type": "string"
          },
          "errors": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "nullable": true
          },
          "status": {
            "type": "string",
            "enum": [
              "failed",
              "ignored",
              "running",
              "succeeded"
            ]
          }
        },
        "additionalProperties": false
      },
      "AgentStatistics": {
        "title": "statistics",
        "required": [
          "agentId"
        ],
        "type": "object",
        "properties": {
          "agentId": {
            "pattern": "^cradl:agent:[a-f0-9]{32}$",
            "type": "string"
          },
          "statistics": {
            "type": "object"
          }
        },
        "additionalProperties": false
      },
      "Agent": {
        "title": "agent",
        "required": [
          "agentId",
          "createdBy",
          "createdTime",
          "description",
          "metadata",
          "name",
          "updatedBy",
          "updatedTime"
        ],
        "type": "object",
        "properties": {
          "updatedTime": {
            "pattern": "^[0-9]{4}-?[0-9]{2}-?[0-9]{2}( |T)?[0-9]{2}:?[0-9]{2}:?[0-9]{2}(.[0-9]{1,6})?(Z|[+][0-9]{2}(:|)[0-9]{2})$",
            "type": "string",
            "nullable": true
          },
          "agentId": {
            "pattern": "^cradl:agent:[a-f0-9]{32}$",
            "type": "string"
          },
          "metadata": {
            "type": "object",
            "nullable": true
          },
          "updatedBy": {
            "maxLength": 4096,
            "type": "string",
            "nullable": true
          },
          "statusReason": {
            "maxLength": 4096,
            "type": "string",
            "nullable": true
          },
          "createdBy": {
            "maxLength": 4096,
            "type": "string"
          },
          "name": {
            "maxLength": 4096,
            "type": "string",
            "nullable": true
          },
          "createdTime": {
            "pattern": "^[0-9]{4}-?[0-9]{2}-?[0-9]{2}( |T)?[0-9]{2}:?[0-9]{2}:?[0-9]{2}(.[0-9]{1,6})?(Z|[+][0-9]{2}(:|)[0-9]{2})$",
            "type": "string"
          },
          "description": {
            "maxLength": 4096,
            "type": "string",
            "nullable": true
          },
          "id": {
            "pattern": "^((cradl|las):organization:[a-z0-9-_]+/)?cradl:agent:[a-z0-9-_]+$",
            "type": "string"
          },
          "resourceIds": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "status": {
            "type": "string",
            "enum": [
              "inactive",
              "active"
            ]
          }
        },
        "additionalProperties": false
      },
      "ValidationTask": {
        "title": "task",
        "required": [
          "createdBy",
          "createdTime",
          "description",
          "input",
          "metadata",
          "name",
          "taskId",
          "updatedBy",
          "updatedTime",
          "validationId"
        ],
        "type": "object",
        "properties": {
          "updatedTime": {
            "pattern": "^[0-9]{4}-?[0-9]{2}-?[0-9]{2}( |T)?[0-9]{2}:?[0-9]{2}:?[0-9]{2}(.[0-9]{1,6})?(Z|[+][0-9]{2}(:|)[0-9]{2})$",
            "type": "string",
            "nullable": true
          },
          "metadata": {
            "type": "object",
            "nullable": true
          },
          "validationId": {
            "pattern": "^cradl:validation:[a-f0-9]{32}$",
            "type": "string"
          },
          "updatedBy": {
            "maxLength": 4096,
            "type": "string",
            "nullable": true
          },
          "warnings": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "nullable": true
          },
          "description": {
            "maxLength": 4096,
            "type": "string",
            "nullable": true
          },
          "history": {
            "type": "array",
            "items": {
              "type": "object"
            }
          },
          "agentRunId": {
            "pattern": "^((cradl|las):organization:[a-z0-9-_]+/)?cradl:agent:[a-z0-9-_]+/cradl:run:[a-z0-9-_]+$",
            "type": "string",
            "nullable": true
          },
          "enabled": {
            "type": "boolean"
          },
          "output": {
            "type": "object",
            "nullable": true
          },
          "input": {
            "type": "object"
          },
          "createdBy": {
            "maxLength": 4096,
            "type": "string"
          },
          "name": {
            "maxLength": 4096,
            "type": "string",
            "nullable": true
          },
          "createdTime": {
            "pattern": "^[0-9]{4}-?[0-9]{2}-?[0-9]{2}( |T)?[0-9]{2}:?[0-9]{2}:?[0-9]{2}(.[0-9]{1,6})?(Z|[+][0-9]{2}(:|)[0-9]{2})$",
            "type": "string"
          },
          "logId": {
            "pattern": "^(cradl|las):log:[a-f0-9]{32}$",
            "type": "string",
            "nullable": true
          },
          "id": {
            "pattern": "^((cradl|las):organization:[a-z0-9-_]+/)?cradl:validation:[a-z0-9-_]+/cradl:task:[a-z0-9-_]+$",
            "type": "string"
          },
          "taskId": {
            "pattern": "^cradl:task:[a-f0-9]{32}$",
            "type": "string"
          },
          "errors": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "nullable": true
          },
          "status": {
            "type": "string",
            "enum": [
              "ready",
              "in-progress",
              "succeeded",
              "failed",
              "cancelled"
            ]
          }
        },
        "additionalProperties": false
      },
      "Actions": {
        "title": "actions",
        "required": [
          "actions",
          "nextToken"
        ],
        "type": "object",
        "properties": {
          "nextToken": {
            "maxLength": 4096,
            "type": "string",
            "nullable": true
          },
          "actions": {
            "type": "array",
            "items": {
              "required": [
                "actionId",
                "createdBy",
                "createdTime",
                "description",
                "metadata",
                "name",
                "updatedBy",
                "updatedTime"
              ],
              "type": "object",
              "properties": {
                "updatedTime": {
                  "pattern": "^[0-9]{4}-?[0-9]{2}-?[0-9]{2}( |T)?[0-9]{2}:?[0-9]{2}:?[0-9]{2}(.[0-9]{1,6})?(Z|[+][0-9]{2}(:|)[0-9]{2})$",
                  "type": "string",
                  "nullable": true
                },
                "agentId": {
                  "pattern": "^cradl:agent:[a-f0-9]{32}$",
                  "type": "string",
                  "nullable": true
                },
                "metadata": {
                  "type": "object",
                  "nullable": true
                },
                "updatedBy": {
                  "maxLength": 4096,
                  "type": "string",
                  "nullable": true
                },
                "description": {
                  "maxLength": 4096,
                  "type": "string",
                  "nullable": true
                },
                "secretId": {
                  "pattern": "^(cradl|las):secret:[a-f0-9]{32}$",
                  "type": "string",
                  "nullable": true
                },
                "enabled": {
                  "type": "boolean"
                },
                "functionId": {
                  "pattern": "^((cradl|las):organization:[a-z0-9-_]+/)?cradl:function:[a-z0-9-_]+$",
                  "type": "string"
                },
                "createdBy": {
                  "maxLength": 4096,
                  "type": "string"
                },
                "name": {
                  "maxLength": 4096,
                  "type": "string",
                  "nullable": true
                },
                "actionId": {
                  "pattern": "^cradl:action:[a-f0-9]{32}$",
                  "type": "string"
                },
                "createdTime": {
                  "pattern": "^[0-9]{4}-?[0-9]{2}-?[0-9]{2}( |T)?[0-9]{2}:?[0-9]{2}:?[0-9]{2}(.[0-9]{1,6})?(Z|[+][0-9]{2}(:|)[0-9]{2})$",
                  "type": "string"
                },
                "connectionId": {
                  "pattern": "^cradl:connection:[a-f0-9]{32}$",
                  "type": "string",
                  "nullable": true
                },
                "id": {
                  "pattern": "^((cradl|las):organization:[a-z0-9-_]+/)?cradl:action:[a-z0-9-_]+$",
                  "type": "string"
                },
                "config": {
                  "type": "object",
                  "nullable": true
                }
              },
              "additionalProperties": false
            }
          }
        },
        "additionalProperties": false
      },
      "Log": {
        "title": "log",
        "required": [
          "logId",
          "resourceId",
          "startTime",
          "workflowExecutionId",
          "workflowId"
        ],
        "type": "object",
        "properties": {
          "resourceId": {
            "pattern": "^((cradl|las):[a-z0-9-_]+:[a-z0-9-_]+)(/((cradl|las):[a-z0-9-_]+:[a-z0-9-_]+))*$",
            "type": "string",
            "nullable": true
          },
          "logId": {
            "pattern": "^(cradl|las):log:[a-f0-9]{32}$",
            "type": "string"
          },
          "workflowExecutionId": {
            "pattern": "^las:workflow-execution:[a-f0-9]{32}$",
            "type": "string",
            "nullable": true
          },
          "startTime": {
            "pattern": "^[0-9]{4}-?[0-9]{2}-?[0-9]{2}( |T)?[0-9]{2}:?[0-9]{2}:?[0-9]{2}(.[0-9]{1,6})?(Z|[+][0-9]{2}(:|)[0-9]{2})$",
            "type": "string",
            "nullable": true
          },
          "workflowId": {
            "pattern": "^las:workflow:[a-f0-9]{32}$",
            "type": "string",
            "nullable": true
          },
          "events": {
            "type": "array",
            "items": {
              "type": "object"
            }
          }
        },
        "additionalProperties": false
      },
      "Roles": {
        "title": "roles",
        "required": [
          "nextToken",
          "roles"
        ],
        "type": "object",
        "properties": {
          "nextToken": {
            "maxLength": 4096,
            "type": "string",
            "nullable": true
          },
          "roles": {
            "type": "array",
            "items": {
              "required": [
                "createdBy",
                "createdTime",
                "description",
                "metadata",
                "name",
                "permissions",
                "roleId",
                "updatedBy",
                "updatedTime"
              ],
              "type": "object",
              "properties": {
                "updatedTime": {
                  "pattern": "^[0-9]{4}-?[0-9]{2}-?[0-9]{2}( |T)?[0-9]{2}:?[0-9]{2}:?[0-9]{2}(.[0-9]{1,6})?(Z|[+][0-9]{2}(:|)[0-9]{2})$",
                  "type": "string",
                  "nullable": true
                },
                "metadata": {
                  "type": "object",
                  "nullable": true
                },
                "updatedBy": {
                  "maxLength": 4096,
                  "type": "string",
                  "nullable": true
                },
                "createdBy": {
                  "maxLength": 4096,
                  "type": "string"
                },
                "roleId": {
                  "pattern": "^(cradl|las):role:[0-9A-Za-z-_]{1,32}$",
                  "type": "string"
                },
                "permissions": {
                  "type": "array",
                  "items": {
                    "required": [
                      "action",
                      "effect",
                      "resourceId"
                    ],
                    "type": "object",
                    "properties": {
                      "resourceId": {
                        "minLength": 1,
                        "type": "string"
                      },
                      "effect": {
                        "type": "string",
                        "enum": [
                          "allow",
                          "deny"
                        ]
                      },
                      "action": {
                        "type": "string",
                        "enum": [
                          "read",
                          "write",
                          "delegate",
                          "*"
                        ]
                      }
                    },
                    "additionalProperties": false
                  }
                },
                "name": {
                  "maxLength": 4096,
                  "type": "string",
                  "nullable": true
                },
                "createdTime": {
                  "pattern": "^[0-9]{4}-?[0-9]{2}-?[0-9]{2}( |T)?[0-9]{2}:?[0-9]{2}:?[0-9]{2}(.[0-9]{1,6})?(Z|[+][0-9]{2}(:|)[0-9]{2})$",
                  "type": "string"
                },
                "description": {
                  "maxLength": 4096,
                  "type": "string",
                  "nullable": true
                }
              },
              "additionalProperties": false
            }
          }
        },
        "additionalProperties": false
      },
      "HookRun": {
        "title": "run",
        "required": [
          "createdBy",
          "createdTime",
          "description",
          "hookId",
          "metadata",
          "name",
          "runId",
          "updatedBy",
          "updatedTime"
        ],
        "type": "object",
        "properties": {
          "updatedTime": {
            "pattern": "^[0-9]{4}-?[0-9]{2}-?[0-9]{2}( |T)?[0-9]{2}:?[0-9]{2}:?[0-9]{2}(.[0-9]{1,6})?(Z|[+][0-9]{2}(:|)[0-9]{2})$",
            "type": "string",
            "nullable": true
          },
          "metadata": {
            "type": "object",
            "nullable": true
          },
          "updatedBy": {
            "maxLength": 4096,
            "type": "string",
            "nullable": true
          },
          "warnings": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "nullable": true
          },
          "description": {
            "maxLength": 4096,
            "type": "string",
            "nullable": true
          },
          "history": {
            "type": "array",
            "items": {
              "type": "object"
            }
          },
          "agentRunId": {
            "pattern": "^((cradl|las):organization:[a-z0-9-_]+/)?cradl:agent:[a-z0-9-_]+/cradl:run:[a-z0-9-_]+$",
            "type": "string",
            "nullable": true
          },
          "output": {
            "type": "object",
            "nullable": true
          },
          "input": {
            "type": "object",
            "nullable": true
          },
          "createdBy": {
            "maxLength": 4096,
            "type": "string"
          },
          "hookId": {
            "pattern": "^((cradl|las):organization:[a-z0-9-_]+/)?cradl:hook:[a-z0-9-_]+$",
            "type": "string"
          },
          "name": {
            "maxLength": 4096,
            "type": "string",
            "nullable": true
          },
          "actionId": {
            "pattern": "^((cradl|las):organization:[a-z0-9-_]+/)?cradl:action:[a-z0-9-_]+$",
            "type": "string",
            "nullable": true
          },
          "createdTime": {
            "pattern": "^[0-9]{4}-?[0-9]{2}-?[0-9]{2}( |T)?[0-9]{2}:?[0-9]{2}:?[0-9]{2}(.[0-9]{1,6})?(Z|[+][0-9]{2}(:|)[0-9]{2})$",
            "type": "string"
          },
          "logId": {
            "pattern": "^(cradl|las):log:[a-f0-9]{32}$",
            "type": "string",
            "nullable": true
          },
          "id": {
            "pattern": "^((cradl|las):organization:[a-z0-9-_]+/)?cradl:hook:[a-z0-9-_]+/cradl:run:[a-z0-9-_]+$",
            "type": "string"
          },
          "runId": {
            "pattern": "^cradl:run:[a-f0-9]{32}$",
            "type": "string"
          },
          "errors": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "nullable": true
          },
          "status": {
            "type": "string",
            "enum": [
              "failed",
              "ignored",
              "running",
              "succeeded"
            ]
          }
        },
        "additionalProperties": false
      },
      "PostAgents": {
        "title": "POST /agents",
        "type": "object",
        "properties": {
          "metadata": {
            "type": "object"
          },
          "name": {
            "maxLength": 4096,
            "type": "string",
            "nullable": true
          },
          "description": {
            "maxLength": 4096,
            "type": "string",
            "nullable": true
          },
          "resourceIds": {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        },
        "additionalProperties": false
      },
      "Documents": {
        "title": "documents",
        "required": [
          "documents",
          "nextToken"
        ],
        "type": "object",
        "properties": {
          "consentId": {
            "type": "array",
            "items": {
              "pattern": "^las:consent:[a-f0-9]{32}$",
              "type": "string"
            }
          },
          "documents": {
            "type": "array",
            "items": {
              "required": [
                "createdBy",
                "createdTime",
                "description",
                "documentId",
                "metadata",
                "name",
                "retentionInDays",
                "updatedBy",
                "updatedTime"
              ],
              "type": "object",
              "properties": {
                "updatedTime": {
                  "pattern": "^[0-9]{4}-?[0-9]{2}-?[0-9]{2}( |T)?[0-9]{2}:?[0-9]{2}:?[0-9]{2}(.[0-9]{1,6})?(Z|[+][0-9]{2}(:|)[0-9]{2})$",
                  "type": "string",
                  "nullable": true
                },
                "contentMD5": {
                  "maxLength": 4096,
                  "type": "string",
                  "nullable": true
                },
                "metadata": {
                  "type": "object",
                  "nullable": true
                },
                "retentionInDays": {
                  "maximum": 1825,
                  "minimum": 1,
                  "type": "integer"
                },
                "ocrFileUrl": {
                  "pattern": "^http://localhost.*|^https://.*",
                  "type": "string",
                  "nullable": true
                },
                "updatedBy": {
                  "maxLength": 4096,
                  "type": "string",
                  "nullable": true
                },
                "description": {
                  "maxLength": 4096,
                  "type": "string",
                  "nullable": true
                },
                "agentRunId": {
                  "pattern": "^((cradl|las):organization:[a-z0-9-_]+/)?cradl:agent:[a-z0-9-_]+/cradl:run:[a-z0-9-_]+$",
                  "type": "string",
                  "nullable": true
                },
                "content": {
                  "maxLength": 6250000,
                  "minLength": 1,
                  "type": "string",
                  "nullable": true
                },
                "groundTruth": {
                  "type": "array",
                  "items": {
                    "required": [
                      "label",
                      "value"
                    ],
                    "type": "object",
                    "properties": {
                      "pages": {
                        "maxItems": 10,
                        "type": "array",
                        "items": {
                          "type": "integer"
                        }
                      },
                      "rawValue": {
                        "anyOf": [
                          {
                            "maxLength": 1024,
                            "minLength": 0,
                            "type": "string",
                            "nullable": true
                          },
                          {
                            "type": "boolean",
                            "nullable": true
                          },
                          {
                            "type": "number",
                            "nullable": true
                          }
                        ]
                      },
                      "confidence": {
                        "maximum": 1,
                        "minimum": 0,
                        "type": "number"
                      },
                      "label": {
                        "maxLength": 36,
                        "minLength": 1,
                        "pattern": "^[0-9A-Za-z-_]+$",
                        "type": "string"
                      },
                      "value": {
                        "anyOf": [
                          {
                            "maxLength": 1024,
                            "minLength": 0,
                            "type": "string",
                            "nullable": true
                          },
                          {
                            "type": "boolean",
                            "nullable": true
                          },
                          {
                            "type": "number",
                            "nullable": true
                          },
                          {
                            "$ref": "#/components/schemas/groundTruthList",
                            "nullable": true
                          }
                        ]
                      }
                    },
                    "additionalProperties": false
                  }
                },
                "consentId": {
                  "pattern": "^las:consent:[a-f0-9]{32}$",
                  "type": "string"
                },
                "createdBy": {
                  "maxLength": 4096,
                  "type": "string"
                },
                "name": {
                  "maxLength": 4096,
                  "type": "string",
                  "nullable": true
                },
                "createdTime": {
                  "pattern": "^[0-9]{4}-?[0-9]{2}-?[0-9]{2}( |T)?[0-9]{2}:?[0-9]{2}:?[0-9]{2}(.[0-9]{1,6})?(Z|[+][0-9]{2}(:|)[0-9]{2})$",
                  "type": "string"
                },
                "datasetId": {
                  "pattern": "^(cradl|las):dataset:[a-f0-9]{32}$",
                  "type": "string"
                },
                "documentId": {
                  "pattern": "^(cradl|las):document:[a-f0-9]{32}$",
                  "type": "string"
                },
                "fileUrl": {
                  "pattern": "^http://localhost.*|^https://.*",
                  "type": "string",
                  "nullable": true
                },
                "contentType": {
                  "type": "string",
                  "enum": [
                    "application/pdf",
                    "image/jpeg",
                    "image/png",
                    "image/tiff",
                    "image/webp",
                    "message/rfc822"
                  ],
                  "nullable": true
                },
                "annotationFileUrl": {
                  "pattern": "^http://localhost.*|^https://.*",
                  "type": "string",
                  "nullable": true
                }
              },
              "additionalProperties": false
            }
          },
          "nextToken": {
            "maxLength": 4096,
            "type": "string",
            "nullable": true
          },
          "datasetId": {
            "type": "array",
            "items": {
              "pattern": "^(cradl|las):dataset:[a-f0-9]{32}$",
              "type": "string"
            }
          },
          "sortBy": {
            "type": "string",
            "enum": [
              "createdTime"
            ]
          },
          "order": {
            "type": "string",
            "enum": [
              "ascending",
              "descending"
            ]
          }
        },
        "additionalProperties": false
      },
      "AppClient": {
        "title": "appClient",
        "required": [
          "appClientId",
          "callbackUrls",
          "clientId",
          "createdBy",
          "createdTime",
          "defaultLoginUrl",
          "description",
          "hasSecret",
          "loginUrls",
          "logoutUrls",
          "metadata",
          "name",
          "updatedBy",
          "updatedTime"
        ],
        "type": "object",
        "properties": {
          "updatedTime": {
            "pattern": "^[0-9]{4}-?[0-9]{2}-?[0-9]{2}( |T)?[0-9]{2}:?[0-9]{2}:?[0-9]{2}(.[0-9]{1,6})?(Z|[+][0-9]{2}(:|)[0-9]{2})$",
            "type": "string",
            "nullable": true
          },
          "hasSecret": {
            "type": "boolean"
          },
          "metadata": {
            "type": "object",
            "nullable": true
          },
          "updatedBy": {
            "maxLength": 4096,
            "type": "string",
            "nullable": true
          },
          "clientId": {
            "type": "string"
          },
          "logoutUrls": {
            "type": "array",
            "items": {
              "pattern": "^http://localhost.*|^https://.*",
              "type": "string"
            },
            "nullable": true
          },
          "description": {
            "maxLength": 4096,
            "type": "string",
            "nullable": true
          },
          "callbackUrls": {
            "type": "array",
            "items": {
              "pattern": "^http://localhost.*|^https://.*",
              "type": "string"
            },
            "nullable": true
          },
          "loginUrls": {
            "type": "array",
            "items": {
              "pattern": "^http://localhost.*|^https://.*",
              "type": "string"
            },
            "nullable": true
          },
          "defaultLoginUrl": {
            "pattern": "^http://localhost.*|^https://.*",
            "type": "string",
            "nullable": true
          },
          "roleIds": {
            "type": "array",
            "items": {
              "pattern": "^(cradl|las):role:[0-9A-Za-z-_]{1,32}$",
              "type": "string"
            },
            "nullable": true
          },
          "createdBy": {
            "maxLength": 4096,
            "type": "string"
          },
          "name": {
            "maxLength": 4096,
            "type": "string",
            "nullable": true
          },
          "mutable": {
            "type": "boolean"
          },
          "createdTime": {
            "pattern": "^[0-9]{4}-?[0-9]{2}-?[0-9]{2}( |T)?[0-9]{2}:?[0-9]{2}:?[0-9]{2}(.[0-9]{1,6})?(Z|[+][0-9]{2}(:|)[0-9]{2})$",
            "type": "string"
          },
          "clientSecret": {
            "type": "string"
          },
          "appClientId": {
            "pattern": "^(cradl|las):app-client:[a-z0-9-_]+$",
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "Models": {
        "title": "models",
        "required": [
          "models",
          "nextToken"
        ],
        "type": "object",
        "properties": {
          "models": {
            "type": "array",
            "items": {
              "required": [
                "createdBy",
                "createdTime",
                "description",
                "fieldConfig",
                "metadata",
                "modelId",
                "name",
                "numberOfDataBundles",
                "numberOfRunningTrainings",
                "organizationId",
                "preprocessConfig",
                "status",
                "trainingId",
                "updatedBy",
                "updatedTime"
              ],
              "type": "object",
              "properties": {
                "updatedTime": {
                  "pattern": "^[0-9]{4}-?[0-9]{2}-?[0-9]{2}( |T)?[0-9]{2}:?[0-9]{2}:?[0-9]{2}(.[0-9]{1,6})?(Z|[+][0-9]{2}(:|)[0-9]{2})$",
                  "type": "string",
                  "nullable": true
                },
                "metadata": {
                  "type": "object",
                  "nullable": true
                },
                "updatedBy": {
                  "maxLength": 4096,
                  "type": "string",
                  "nullable": true
                },
                "llmVersion": {
                  "type": "string",
                  "enum": [
                    "sonnet-4.0",
                    "sonnet-4.5",
                    "sonnet-4.6",
                    "qwen3-vl"
                  ]
                },
                "trainingId": {
                  "pattern": "^las:model-training:[a-z0-9-_]+$",
                  "type": "string",
                  "nullable": true
                },
                "modelId": {
                  "pattern": "^(cradl|las):model:[a-z0-9-_]+$",
                  "type": "string"
                },
                "postprocessConfig": {
                  "oneOf": [
                    {
                      "required": [
                        "strategy"
                      ],
                      "type": "object",
                      "properties": {
                        "strategy": {
                          "type": "string",
                          "enum": [
                            "BEST_FIRST"
                          ]
                        },
                        "outputFormat": {
                          "type": "string",
                          "enum": [
                            "v1",
                            "v2"
                          ]
                        }
                      },
                      "additionalProperties": false
                    },
                    {
                      "required": [
                        "parameters",
                        "strategy"
                      ],
                      "type": "object",
                      "properties": {
                        "strategy": {
                          "type": "string",
                          "enum": [
                            "BEST_N_PAGES"
                          ]
                        },
                        "outputFormat": {
                          "type": "string",
                          "enum": [
                            "v1",
                            "v2"
                          ]
                        },
                        "parameters": {
                          "required": [
                            "n"
                          ],
                          "type": "object",
                          "properties": {
                            "n": {
                              "maximum": 100,
                              "minimum": 1,
                              "type": "integer"
                            },
                            "collapse": {
                              "type": "boolean"
                            }
                          }
                        }
                      },
                      "additionalProperties": false
                    }
                  ]
                },
                "description": {
                  "maxLength": 4096,
                  "type": "string",
                  "nullable": true
                },
                "fieldConfig": {
                  "type": "object",
                  "additionalProperties": false,
                  "patternProperties": {
                    "^[0-9A-Za-z-_]{1,36}$": {
                      "oneOf": [
                        {
                          "type": "object",
                          "properties": {
                            "type": {
                              "type": "string",
                              "enum": [
                                "amount",
                                "date",
                                "digits",
                                "enum",
                                "multi-value",
                                "numeric",
                                "single-value",
                                "string"
                              ]
                            },
                            "maxLength": {
                              "type": "integer",
                              "minimum": 1,
                              "maximum": 1024
                            },
                            "enum": {
                              "maxItems": 500,
                              "minItems": 1,
                              "type": "array",
                              "uniqueItems": true,
                              "items": {
                                "maxLength": 512,
                                "minLength": 1,
                                "type": "string"
                              }
                            },
                            "description": {
                              "type": "string",
                              "maxLength": 4096,
                              "nullable": true
                            },
                            "order": {
                              "type": "number",
                              "nullable": true
                            },
                            "promptHint": {
                              "type": "string",
                              "maxLength": 4096,
                              "nullable": true
                            },
                            "isMultivalue": {
                              "type": "boolean"
                            },
                            "isNullable": {
                              "type": "boolean"
                            },
                            "format": {
                              "type": "string",
                              "maxLength": 4096,
                              "nullable": true
                            },
                            "strict": {
                              "type": "boolean"
                            }
                          },
                          "required": [
                            "type"
                          ]
                        },
                        {
                          "type": "object",
                          "properties": {
                            "type": {
                              "type": "string",
                              "enum": [
                                "lines",
                                "table"
                              ]
                            },
                            "fields": {
                              "type": "object",
                              "additionalProperties": false,
                              "patternProperties": {
                                "^[0-9A-Za-z-_]{1,36}$": {
                                  "type": "object",
                                  "properties": {
                                    "type": {
                                      "type": "string",
                                      "enum": [
                                        "amount",
                                        "date",
                                        "digits",
                                        "enum",
                                        "multi-value",
                                        "numeric",
                                        "single-value",
                                        "string"
                                      ]
                                    },
                                    "maxLength": {
                                      "type": "integer",
                                      "minimum": 1,
                                      "maximum": 1024
                                    },
                                    "enum": {
                                      "maxItems": 500,
                                      "minItems": 1,
                                      "type": "array",
                                      "uniqueItems": true,
                                      "items": {
                                        "maxLength": 512,
                                        "minLength": 1,
                                        "type": "string"
                                      }
                                    },
                                    "description": {
                                      "type": "string",
                                      "maxLength": 4096,
                                      "nullable": true
                                    },
                                    "order": {
                                      "type": "number",
                                      "nullable": true
                                    },
                                    "promptHint": {
                                      "type": "string",
                                      "maxLength": 4096,
                                      "nullable": true
                                    },
                                    "isMultivalue": {
                                      "type": "boolean"
                                    },
                                    "isNullable": {
                                      "type": "boolean"
                                    },
                                    "format": {
                                      "type": "string",
                                      "maxLength": 4096,
                                      "nullable": true
                                    },
                                    "strict": {
                                      "type": "boolean"
                                    }
                                  },
                                  "required": [
                                    "type"
                                  ]
                                }
                              }
                            }
                          },
                          "required": [
                            "fields",
                            "type"
                          ]
                        }
                      ]
                    }
                  },
                  "nullable": true
                },
                "version": {
                  "minimum": 0,
                  "type": "integer"
                },
                "organizationId": {
                  "pattern": "^(cradl|las):organization:[a-z0-9-_]+$",
                  "type": "string"
                },
                "confidenceVersion": {
                  "type": "string",
                  "enum": [
                    "v1",
                    "v2"
                  ]
                },
                "preprocessConfig": {
                  "minProperties": 1,
                  "type": "object",
                  "properties": {
                    "trimMargins": {
                      "type": "boolean"
                    },
                    "startPage": {
                      "type": "integer"
                    },
                    "rotation": {
                      "type": "integer",
                      "enum": [
                        0,
                        90,
                        180,
                        270
                      ]
                    },
                    "useGhostScript": {
                      "type": "boolean"
                    },
                    "pages": {
                      "maxItems": 100,
                      "type": "array",
                      "items": {
                        "type": "integer"
                      }
                    },
                    "usePoppler": {
                      "type": "boolean"
                    },
                    "padToFit": {
                      "type": "boolean"
                    },
                    "useTextDetection": {
                      "type": "boolean"
                    },
                    "maxPages": {
                      "maximum": 100,
                      "minimum": 1,
                      "type": "integer"
                    },
                    "optimizeDimensions": {
                      "type": "boolean"
                    },
                    "deskewImage": {
                      "type": "boolean"
                    },
                    "autoRotate": {
                      "type": "boolean"
                    },
                    "imageQuality": {
                      "type": "string",
                      "enum": [
                        "LOW",
                        "HIGH"
                      ]
                    }
                  },
                  "additionalProperties": false
                },
                "createdBy": {
                  "maxLength": 4096,
                  "type": "string"
                },
                "updatedFieldConfigTime": {
                  "pattern": "^[0-9]{4}-?[0-9]{2}-?[0-9]{2}( |T)?[0-9]{2}:?[0-9]{2}:?[0-9]{2}(.[0-9]{1,6})?(Z|[+][0-9]{2}(:|)[0-9]{2})$",
                  "type": "string",
                  "nullable": true
                },
                "numberOfRunningTrainings": {
                  "minimum": 0,
                  "type": "integer"
                },
                "name": {
                  "maxLength": 4096,
                  "type": "string",
                  "nullable": true
                },
                "numberOfDataBundles": {
                  "minimum": 0,
                  "type": "integer"
                },
                "createdTime": {
                  "pattern": "^[0-9]{4}-?[0-9]{2}-?[0-9]{2}( |T)?[0-9]{2}:?[0-9]{2}:?[0-9]{2}(.[0-9]{1,6})?(Z|[+][0-9]{2}(:|)[0-9]{2})$",
                  "type": "string"
                },
                "statistics": {
                  "type": "object",
                  "nullable": true
                },
                "status": {
                  "type": "string",
                  "enum": [
                    "active",
                    "inactive"
                  ]
                }
              },
              "additionalProperties": false
            }
          },
          "nextToken": {
            "maxLength": 4096,
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "PostValidations": {
        "title": "POST /validations",
        "type": "object",
        "properties": {
          "metadata": {
            "type": "object"
          },
          "name": {
            "maxLength": 4096,
            "type": "string",
            "nullable": true
          },
          "description": {
            "maxLength": 4096,
            "type": "string",
            "nullable": true
          },
          "config": {
            "type": "object"
          },
          "enabled": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "Organization": {
        "title": "organization",
        "required": [
          "createdBy",
          "createdTime",
          "description",
          "documentRetentionInDays",
          "metadata",
          "monthlyNumberOfActiveModelsUsed",
          "monthlyNumberOfDataBundlesAllowed",
          "monthlyNumberOfDataBundlesCreated",
          "monthlyNumberOfDocumentsAllowed",
          "monthlyNumberOfDocumentsCreated",
          "monthlyNumberOfFieldPredictionsUsed",
          "monthlyNumberOfGpuHoursUsed",
          "monthlyNumberOfPredictionsAllowed",
          "monthlyNumberOfPredictionsCreated",
          "monthlyNumberOfTrainingsAllowed",
          "monthlyNumberOfTrainingsCreated",
          "monthlyNumberOfTransformationsAllowed",
          "monthlyNumberOfTransformationsCreated",
          "monthlyNumberOfTransitionExecutionsAllowed",
          "monthlyNumberOfTransitionExecutionsCreated",
          "monthlyNumberOfWorkflowExecutionsAllowed",
          "monthlyNumberOfWorkflowExecutionsCreated",
          "monthlyUsageSummary",
          "name",
          "numberOfAppClientsAllowed",
          "numberOfAppClientsCreated",
          "numberOfAssetsAllowed",
          "numberOfAssetsCreated",
          "numberOfModelsAllowed",
          "numberOfModelsCreated",
          "numberOfSecretsAllowed",
          "numberOfSecretsCreated",
          "numberOfTransitionsAllowed",
          "numberOfTransitionsCreated",
          "numberOfUsersAllowed",
          "numberOfUsersCreated",
          "numberOfWorkflowsAllowed",
          "numberOfWorkflowsCreated",
          "organizationId",
          "paymentMethodId",
          "planId",
          "updatedBy",
          "updatedTime"
        ],
        "type": "object",
        "properties": {
          "numberOfAgentsCreated": {
            "minimum": 0,
            "type": "integer"
          },
          "privileges": {
            "type": "object"
          },
          "metadata": {
            "type": "object",
            "nullable": true
          },
          "monthlyNumberOfAgentRunsCreated": {
            "minimum": 0,
            "type": "integer"
          },
          "deploymentsAllowed": {
            "type": "object"
          },
          "monthlyNumberOfHookRunsCreated": {
            "minimum": 0,
            "type": "integer"
          },
          "numberOfHooksCreated": {
            "minimum": 0,
            "type": "integer"
          },
          "numberOfUsersAllowed": {
            "minimum": 0,
            "type": "integer"
          },
          "monthlyNumberOfPredictionsAllowed": {
            "minimum": 0,
            "type": "integer"
          },
          "numberOfDatasetsAllowed": {
            "minimum": 0,
            "type": "integer"
          },
          "organizationId": {
            "pattern": "^(cradl|las):organization:[a-z0-9-_]+$",
            "type": "string"
          },
          "numberOfModelsCreated": {
            "minimum": 0,
            "type": "integer"
          },
          "numberOfTransitionsCreated": {
            "minimum": 0,
            "type": "integer"
          },
          "monthlyNumberOfDocumentsAllowed": {
            "minimum": 0,
            "type": "integer"
          },
          "numberOfActionsCreated": {
            "minimum": 0,
            "type": "integer"
          },
          "monthlyNumberOfActionRunsAllowed": {
            "minimum": 0,
            "type": "integer"
          },
          "monthlyNumberOfTransformationsCreated": {
            "minimum": 0,
            "type": "integer"
          },
          "createdTime": {
            "pattern": "^[0-9]{4}-?[0-9]{2}-?[0-9]{2}( |T)?[0-9]{2}:?[0-9]{2}:?[0-9]{2}(.[0-9]{1,6})?(Z|[+][0-9]{2}(:|)[0-9]{2})$",
            "type": "string"
          },
          "planId": {
            "pattern": "^(|(cradl|las):organization:[a-z0-9-_]+/)(cradl|las):plan:[a-z0-9-_]+(|:@[a-z0-9-_]+|:[0-9]+)$",
            "type": "string",
            "nullable": true
          },
          "monthlyNumberOfValidationTasksCreated": {
            "minimum": 0,
            "type": "integer"
          },
          "monthlyUsageSummary": {
            "type": "object"
          },
          "updatedTime": {
            "pattern": "^[0-9]{4}-?[0-9]{2}-?[0-9]{2}( |T)?[0-9]{2}:?[0-9]{2}:?[0-9]{2}(.[0-9]{1,6})?(Z|[+][0-9]{2}(:|)[0-9]{2})$",
            "type": "string",
            "nullable": true
          },
          "monthlyNumberOfPagePredictionsAllowed": {
            "minimum": 0,
            "type": "integer"
          },
          "deploymentsCreated": {
            "type": "object"
          },
          "monthlyNumberOfGpuHoursUsed": {
            "minimum": 0,
            "type": "number"
          },
          "updatedBy": {
            "maxLength": 4096,
            "type": "string",
            "nullable": true
          },
          "numberOfAgentsAllowed": {
            "minimum": 0,
            "type": "integer"
          },
          "monthlyNumberOfAgentRunsAllowed": {
            "minimum": 0,
            "type": "integer"
          },
          "monthlyNumberOfWorkflowExecutionsAllowed": {
            "minimum": 0,
            "type": "integer"
          },
          "monthlyNumberOfActiveModelsUsed": {
            "minimum": 0,
            "type": "integer"
          },
          "pictureUrl": {
            "pattern": "^http://localhost.*|^https://.*",
            "type": "string",
            "nullable": true
          },
          "monthlyNumberOfDataBundlesCreated": {
            "minimum": 0,
            "type": "integer"
          },
          "numberOfUsersCreated": {
            "minimum": 0,
            "type": "integer"
          },
          "monthlyNumberOfActionRunsCreated": {
            "minimum": 0,
            "type": "integer"
          },
          "monthlyNumberOfTransitionExecutionsCreated": {
            "minimum": 0,
            "type": "integer"
          },
          "numberOfActionsAllowed": {
            "minimum": 0,
            "type": "integer"
          },
          "numberOfSecretsCreated": {
            "minimum": 0,
            "type": "integer"
          },
          "numberOfValidationsCreated": {
            "minimum": 0,
            "type": "integer"
          },
          "name": {
            "maxLength": 4096,
            "type": "string",
            "nullable": true
          },
          "monthlyNumberOfTransformationsAllowed": {
            "minimum": 0,
            "type": "integer"
          },
          "monthlyNumberOfProductionWorkflowMinutesUsed": {
            "minimum": 0,
            "type": "integer"
          },
          "numberOfAppClientsAllowed": {
            "minimum": 0,
            "type": "integer"
          },
          "code": {
            "maxLength": 4096,
            "type": "string",
            "nullable": true
          },
          "numberOfWorkflowsCreated": {
            "minimum": 0,
            "type": "integer"
          },
          "monthlyNumberOfFieldPredictionsUsed": {
            "minimum": 0,
            "type": "integer"
          },
          "monthlyNumberOfWorkflowExecutionsCreated": {
            "minimum": 0,
            "type": "integer"
          },
          "description": {
            "maxLength": 4096,
            "type": "string",
            "nullable": true
          },
          "monthlyNumberOfDataBundlesAllowed": {
            "minimum": 0,
            "type": "integer"
          },
          "monthlyNumberOfTransitionExecutionsAllowed": {
            "minimum": 0,
            "type": "integer"
          },
          "numberOfSecretsAllowed": {
            "minimum": 0,
            "type": "integer"
          },
          "monthlyNumberOfTrainingsCreated": {
            "minimum": 0,
            "type": "integer"
          },
          "monthlyNumberOfUserMinutesUsed": {
            "minimum": 0,
            "type": "number"
          },
          "numberOfValidationsAllowed": {
            "minimum": 0,
            "type": "integer"
          },
          "paymentMethodId": {
            "pattern": "^(cradl|las):payment-method:[a-f0-9]{32}$",
            "type": "string",
            "nullable": true
          },
          "monthlyNumberOfModelDeploymentUnitsUsed": {
            "minimum": 0,
            "type": "integer"
          },
          "numberOfAppClientsCreated": {
            "minimum": 0,
            "type": "integer"
          },
          "numberOfAssetsCreated": {
            "minimum": 0,
            "type": "integer"
          },
          "numberOfWorkflowsAllowed": {
            "minimum": 0,
            "type": "integer"
          },
          "clientId": {
            "pattern": "^[0-9a-z]+$",
            "type": "string",
            "nullable": true
          },
          "documentRetentionInDays": {
            "maximum": 1825,
            "minimum": 1,
            "type": "integer"
          },
          "numberOfConnectionsAllowed": {
            "minimum": 0,
            "type": "integer"
          },
          "numberOfHooksAllowed": {
            "minimum": 0,
            "type": "integer"
          },
          "monthlyNumberOfHookRunsAllowed": {
            "minimum": 0,
            "type": "integer"
          },
          "monthlyNumberOfPredictionsCreated": {
            "minimum": 0,
            "type": "integer"
          },
          "url": {
            "maxLength": 4096,
            "type": "string",
            "nullable": true
          },
          "numberOfDatasetsCreated": {
            "minimum": 0,
            "type": "integer"
          },
          "monthlyNumberOfPagePredictionsUsed": {
            "minimum": 0,
            "type": "integer"
          },
          "numberOfTransitionsAllowed": {
            "minimum": 0,
            "type": "integer"
          },
          "monthlyNumberOfDocumentsCreated": {
            "minimum": 0,
            "type": "integer"
          },
          "numberOfConnectionsCreated": {
            "minimum": 0,
            "type": "integer"
          },
          "numberOfModelsAllowed": {
            "minimum": 0,
            "type": "integer"
          },
          "createdBy": {
            "maxLength": 4096,
            "type": "string"
          },
          "monthlyNumberOfTrainingsAllowed": {
            "minimum": 0,
            "type": "integer"
          },
          "monthlyNumberOfValidationTasksAllowed": {
            "minimum": 0,
            "type": "integer"
          },
          "useNewScopes": {
            "type": "boolean"
          },
          "numberOfAssetsAllowed": {
            "minimum": 0,
            "type": "integer"
          }
        },
        "additionalProperties": false
      },
      "AppClients": {
        "title": "appClients",
        "required": [
          "appClients",
          "nextToken"
        ],
        "type": "object",
        "properties": {
          "nextToken": {
            "maxLength": 4096,
            "type": "string",
            "nullable": true
          },
          "appClients": {
            "type": "array",
            "items": {
              "required": [
                "appClientId",
                "callbackUrls",
                "clientId",
                "createdBy",
                "createdTime",
                "defaultLoginUrl",
                "description",
                "hasSecret",
                "loginUrls",
                "logoutUrls",
                "metadata",
                "name",
                "updatedBy",
                "updatedTime"
              ],
              "type": "object",
              "properties": {
                "updatedTime": {
                  "pattern": "^[0-9]{4}-?[0-9]{2}-?[0-9]{2}( |T)?[0-9]{2}:?[0-9]{2}:?[0-9]{2}(.[0-9]{1,6})?(Z|[+][0-9]{2}(:|)[0-9]{2})$",
                  "type": "string",
                  "nullable": true
                },
                "hasSecret": {
                  "type": "boolean"
                },
                "metadata": {
                  "type": "object",
                  "nullable": true
                },
                "updatedBy": {
                  "maxLength": 4096,
                  "type": "string",
                  "nullable": true
                },
                "clientId": {
                  "type": "string"
                },
                "logoutUrls": {
                  "type": "array",
                  "items": {
                    "pattern": "^http://localhost.*|^https://.*",
                    "type": "string"
                  },
                  "nullable": true
                },
                "description": {
                  "maxLength": 4096,
                  "type": "string",
                  "nullable": true
                },
                "callbackUrls": {
                  "type": "array",
                  "items": {
                    "pattern": "^http://localhost.*|^https://.*",
                    "type": "string"
                  },
                  "nullable": true
                },
                "loginUrls": {
                  "type": "array",
                  "items": {
                    "pattern": "^http://localhost.*|^https://.*",
                    "type": "string"
                  },
                  "nullable": true
                },
                "defaultLoginUrl": {
                  "pattern": "^http://localhost.*|^https://.*",
                  "type": "string",
                  "nullable": true
                },
                "roleIds": {
                  "type": "array",
                  "items": {
                    "pattern": "^(cradl|las):role:[0-9A-Za-z-_]{1,32}$",
                    "type": "string"
                  },
                  "nullable": true
                },
                "createdBy": {
                  "maxLength": 4096,
                  "type": "string"
                },
                "name": {
                  "maxLength": 4096,
                  "type": "string",
                  "nullable": true
                },
                "mutable": {
                  "type": "boolean"
                },
                "createdTime": {
                  "pattern": "^[0-9]{4}-?[0-9]{2}-?[0-9]{2}( |T)?[0-9]{2}:?[0-9]{2}:?[0-9]{2}(.[0-9]{1,6})?(Z|[+][0-9]{2}(:|)[0-9]{2})$",
                  "type": "string"
                },
                "clientSecret": {
                  "type": "string"
                },
                "appClientId": {
                  "pattern": "^(cradl|las):app-client:[a-z0-9-_]+$",
                  "type": "string"
                }
              },
              "additionalProperties": false
            }
          }
        },
        "additionalProperties": false
      },
      "PostHooks": {
        "title": "POST /hooks",
        "type": "object",
        "properties": {
          "metadata": {
            "type": "object"
          },
          "functionId": {
            "pattern": "^((cradl|las):organization:[a-z0-9-_]+/)?cradl:function:[a-z0-9-_]+$",
            "type": "string"
          },
          "falseActionId": {
            "pattern": "^((cradl|las):organization:[a-z0-9-_]+/)?cradl:action:[a-z0-9-_]+$",
            "type": "string"
          },
          "trueActionId": {
            "pattern": "^((cradl|las):organization:[a-z0-9-_]+/)?cradl:action:[a-z0-9-_]+$",
            "type": "string"
          },
          "name": {
            "maxLength": 4096,
            "type": "string",
            "nullable": true
          },
          "description": {
            "maxLength": 4096,
            "type": "string",
            "nullable": true
          },
          "trigger": {
            "type": "string",
            "enum": [
              "ActionRun has Completed",
              "Document is Created",
              "Email is Received",
              "Prediction is Created",
              "ValidationTask has Completed",
              "ValidationTask is Created"
            ]
          },
          "config": {
            "type": "object"
          },
          "enabled": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "PatchRoleId": {
        "title": "PATCH /roles/{roleId}",
        "minProperties": 1,
        "type": "object",
        "properties": {
          "metadata": {
            "type": "object"
          },
          "permissions": {
            "type": "array",
            "items": {
              "required": [
                "action",
                "effect",
                "resourceId"
              ],
              "type": "object",
              "properties": {
                "resourceId": {
                  "minLength": 1,
                  "type": "string"
                },
                "effect": {
                  "type": "string",
                  "enum": [
                    "allow",
                    "deny"
                  ]
                },
                "action": {
                  "type": "string",
                  "enum": [
                    "read",
                    "write",
                    "delegate",
                    "*"
                  ]
                }
              },
              "additionalProperties": false
            }
          },
          "name": {
            "maxLength": 4096,
            "type": "string",
            "nullable": true
          },
          "description": {
            "maxLength": 4096,
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "Hook": {
        "title": "hook",
        "required": [
          "createdBy",
          "createdTime",
          "description",
          "hookId",
          "metadata",
          "name",
          "updatedBy",
          "updatedTime"
        ],
        "type": "object",
        "properties": {
          "updatedTime": {
            "pattern": "^[0-9]{4}-?[0-9]{2}-?[0-9]{2}( |T)?[0-9]{2}:?[0-9]{2}:?[0-9]{2}(.[0-9]{1,6})?(Z|[+][0-9]{2}(:|)[0-9]{2})$",
            "type": "string",
            "nullable": true
          },
          "metadata": {
            "type": "object",
            "nullable": true
          },
          "updatedBy": {
            "maxLength": 4096,
            "type": "string",
            "nullable": true
          },
          "description": {
            "maxLength": 4096,
            "type": "string",
            "nullable": true
          },
          "trigger": {
            "type": "string",
            "enum": [
              "ActionRun has Completed",
              "Document is Created",
              "Email is Received",
              "Prediction is Created",
              "ValidationTask has Completed",
              "ValidationTask is Created"
            ]
          },
          "enabled": {
            "type": "boolean"
          },
          "functionId": {
            "pattern": "^((cradl|las):organization:[a-z0-9-_]+/)?cradl:function:[a-z0-9-_]+$",
            "type": "string",
            "nullable": true
          },
          "falseActionId": {
            "pattern": "^((cradl|las):organization:[a-z0-9-_]+/)?cradl:action:[a-z0-9-_]+$",
            "type": "string",
            "nullable": true
          },
          "createdBy": {
            "maxLength": 4096,
            "type": "string"
          },
          "trueActionId": {
            "pattern": "^((cradl|las):organization:[a-z0-9-_]+/)?cradl:action:[a-z0-9-_]+$",
            "type": "string",
            "nullable": true
          },
          "hookId": {
            "pattern": "^cradl:hook:[a-f0-9]{32}$",
            "type": "string"
          },
          "name": {
            "maxLength": 4096,
            "type": "string",
            "nullable": true
          },
          "createdTime": {
            "pattern": "^[0-9]{4}-?[0-9]{2}-?[0-9]{2}( |T)?[0-9]{2}:?[0-9]{2}:?[0-9]{2}(.[0-9]{1,6})?(Z|[+][0-9]{2}(:|)[0-9]{2})$",
            "type": "string"
          },
          "id": {
            "pattern": "^((cradl|las):organization:[a-z0-9-_]+/)?cradl:hook:[a-z0-9-_]+$",
            "type": "string"
          },
          "config": {
            "type": "object",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "PatchModelId": {
        "title": "PATCH /models/modelId",
        "minProperties": 1,
        "type": "object",
        "properties": {
          "metadata": {
            "type": "object"
          },
          "confidenceVersion": {
            "type": "string",
            "enum": [
              "v1",
              "v2"
            ]
          },
          "llmVersion": {
            "type": "string",
            "enum": [
              "sonnet-4.0",
              "sonnet-4.5",
              "sonnet-4.6",
              "qwen3-vl"
            ]
          },
          "preprocessConfig": {
            "minProperties": 1,
            "type": "object",
            "properties": {
              "trimMargins": {
                "type": "boolean"
              },
              "startPage": {
                "type": "integer"
              },
              "rotation": {
                "type": "integer",
                "enum": [
                  0,
                  90,
                  180,
                  270
                ]
              },
              "useGhostScript": {
                "type": "boolean"
              },
              "pages": {
                "maxItems": 100,
                "type": "array",
                "items": {
                  "type": "integer"
                }
              },
              "usePoppler": {
                "type": "boolean"
              },
              "padToFit": {
                "type": "boolean"
              },
              "useTextDetection": {
                "type": "boolean"
              },
              "maxPages": {
                "maximum": 100,
                "minimum": 1,
                "type": "integer"
              },
              "optimizeDimensions": {
                "type": "boolean"
              },
              "deskewImage": {
                "type": "boolean"
              },
              "autoRotate": {
                "type": "boolean"
              },
              "imageQuality": {
                "type": "string",
                "enum": [
                  "LOW",
                  "HIGH"
                ]
              }
            },
            "additionalProperties": false
          },
          "trainingId": {
            "pattern": "^las:model-training:[a-z0-9-_]+$",
            "type": "string",
            "nullable": true
          },
          "postprocessConfig": {
            "oneOf": [
              {
                "required": [
                  "strategy"
                ],
                "type": "object",
                "properties": {
                  "strategy": {
                    "type": "string",
                    "enum": [
                      "BEST_FIRST"
                    ]
                  },
                  "outputFormat": {
                    "type": "string",
                    "enum": [
                      "v1",
                      "v2"
                    ]
                  }
                },
                "additionalProperties": false
              },
              {
                "required": [
                  "parameters",
                  "strategy"
                ],
                "type": "object",
                "properties": {
                  "strategy": {
                    "type": "string",
                    "enum": [
                      "BEST_N_PAGES"
                    ]
                  },
                  "outputFormat": {
                    "type": "string",
                    "enum": [
                      "v1",
                      "v2"
                    ]
                  },
                  "parameters": {
                    "required": [
                      "n"
                    ],
                    "type": "object",
                    "properties": {
                      "n": {
                        "maximum": 100,
                        "minimum": 1,
                        "type": "integer"
                      },
                      "collapse": {
                        "type": "boolean"
                      }
                    }
                  }
                },
                "additionalProperties": false
              }
            ]
          },
          "name": {
            "maxLength": 4096,
            "type": "string",
            "nullable": true
          },
          "description": {
            "maxLength": 4096,
            "type": "string",
            "nullable": true
          },
          "fieldConfig": {
            "type": "object",
            "additionalProperties": false,
            "patternProperties": {
              "^[0-9A-Za-z-_]{1,36}$": {
                "oneOf": [
                  {
                    "type": "object",
                    "properties": {
                      "type": {
                        "type": "string",
                        "enum": [
                          "amount",
                          "date",
                          "digits",
                          "enum",
                          "multi-value",
                          "numeric",
                          "single-value",
                          "string"
                        ]
                      },
                      "maxLength": {
                        "type": "integer",
                        "minimum": 1,
                        "maximum": 1024
                      },
                      "enum": {
                        "maxItems": 500,
                        "minItems": 1,
                        "type": "array",
                        "uniqueItems": true,
                        "items": {
                          "maxLength": 512,
                          "minLength": 1,
                          "type": "string"
                        }
                      },
                      "description": {
                        "type": "string",
                        "maxLength": 4096,
                        "nullable": true
                      },
                      "order": {
                        "type": "number",
                        "nullable": true
                      },
                      "promptHint": {
                        "type": "string",
                        "maxLength": 4096,
                        "nullable": true
                      },
                      "isMultivalue": {
                        "type": "boolean"
                      },
                      "isNullable": {
                        "type": "boolean"
                      },
                      "format": {
                        "type": "string",
                        "maxLength": 4096,
                        "nullable": true
                      },
                      "strict": {
                        "type": "boolean"
                      }
                    },
                    "required": [
                      "type"
                    ]
                  },
                  {
                    "type": "object",
                    "properties": {
                      "type": {
                        "type": "string",
                        "enum": [
                          "lines",
                          "table"
                        ]
                      },
                      "fields": {
                        "type": "object",
                        "additionalProperties": false,
                        "patternProperties": {
                          "^[0-9A-Za-z-_]{1,36}$": {
                            "type": "object",
                            "properties": {
                              "type": {
                                "type": "string",
                                "enum": [
                                  "amount",
                                  "date",
                                  "digits",
                                  "enum",
                                  "multi-value",
                                  "numeric",
                                  "single-value",
                                  "string"
                                ]
                              },
                              "maxLength": {
                                "type": "integer",
                                "minimum": 1,
                                "maximum": 1024
                              },
                              "enum": {
                                "maxItems": 500,
                                "minItems": 1,
                                "type": "array",
                                "uniqueItems": true,
                                "items": {
                                  "maxLength": 512,
                                  "minLength": 1,
                                  "type": "string"
                                }
                              },
                              "description": {
                                "type": "string",
                                "maxLength": 4096,
                                "nullable": true
                              },
                              "order": {
                                "type": "number",
                                "nullable": true
                              },
                              "promptHint": {
                                "type": "string",
                                "maxLength": 4096,
                                "nullable": true
                              },
                              "isMultivalue": {
                                "type": "boolean"
                              },
                              "isNullable": {
                                "type": "boolean"
                              },
                              "format": {
                                "type": "string",
                                "maxLength": 4096,
                                "nullable": true
                              },
                              "strict": {
                                "type": "boolean"
                              }
                            },
                            "required": [
                              "type"
                            ]
                          }
                        }
                      }
                    },
                    "required": [
                      "fields",
                      "type"
                    ]
                  }
                ]
              }
            }
          }
        },
        "additionalProperties": false
      },
      "Functions": {
        "title": "functions",
        "required": [
          "functions",
          "nextToken"
        ],
        "type": "object",
        "properties": {
          "functions": {
            "type": "array",
            "items": {
              "required": [
                "createdBy",
                "createdTime",
                "description",
                "functionId",
                "metadata",
                "name",
                "updatedBy",
                "updatedTime"
              ],
              "type": "object",
              "properties": {
                "updatedTime": {
                  "pattern": "^[0-9]{4}-?[0-9]{2}-?[0-9]{2}( |T)?[0-9]{2}:?[0-9]{2}:?[0-9]{2}(.[0-9]{1,6})?(Z|[+][0-9]{2}(:|)[0-9]{2})$",
                  "type": "string",
                  "nullable": true
                },
                "metadata": {
                  "type": "object",
                  "nullable": true
                },
                "updatedBy": {
                  "maxLength": 4096,
                  "type": "string",
                  "nullable": true
                },
                "managedCodeId": {
                  "pattern": "^cradl:managed-code:[0-9A-Za-z-_]+$",
                  "type": "string",
                  "nullable": true
                },
                "description": {
                  "maxLength": 4096,
                  "type": "string",
                  "nullable": true
                },
                "runtime": {
                  "type": "string",
                  "enum": [
                    "python",
                    "nodejs"
                  ]
                },
                "organizationId": {
                  "pattern": "^(cradl|las):organization:[a-z0-9-_]+$",
                  "type": "string"
                },
                "functionId": {
                  "pattern": "^cradl:function:[a-z0-9-_]+$",
                  "type": "string"
                },
                "createdBy": {
                  "maxLength": 4096,
                  "type": "string"
                },
                "name": {
                  "maxLength": 4096,
                  "type": "string",
                  "nullable": true
                },
                "createdTime": {
                  "pattern": "^[0-9]{4}-?[0-9]{2}-?[0-9]{2}( |T)?[0-9]{2}:?[0-9]{2}:?[0-9]{2}(.[0-9]{1,6})?(Z|[+][0-9]{2}(:|)[0-9]{2})$",
                  "type": "string"
                },
                "fileUrl": {
                  "pattern": "^http://localhost.*|^https://.*",
                  "type": "string",
                  "nullable": true
                },
                "id": {
                  "pattern": "^((cradl|las):organization:[a-z0-9-_]+/)?cradl:function:[a-z0-9-_]+$",
                  "type": "string"
                }
              },
              "additionalProperties": false
            }
          },
          "nextToken": {
            "maxLength": 4096,
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "PostUsers": {
        "title": "POST /users",
        "required": [
          "email"
        ],
        "type": "object",
        "properties": {
          "metadata": {
            "type": "object"
          },
          "roleIds": {
            "type": "array",
            "items": {
              "pattern": "^(cradl|las):role:[0-9A-Za-z-_]{1,32}$",
              "type": "string"
            }
          },
          "name": {
            "maxLength": 4096,
            "type": "string",
            "nullable": true
          },
          "description": {
            "maxLength": 4096,
            "type": "string",
            "nullable": true
          },
          "appClientId": {
            "pattern": "^(cradl|las):app-client:[a-z0-9-_]+$",
            "type": "string"
          },
          "email": {
            "pattern": "^[A-Za-z0-9][-+._A-Za-z0-9]*@([-_.A-Za-z0-9]+\\.)+[A-Za-z]{2,}$",
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "PostDocuments": {
        "title": "POST /documents",
        "type": "object",
        "properties": {
          "groundTruth": {
            "type": "array",
            "items": {
              "required": [
                "label",
                "value"
              ],
              "type": "object",
              "properties": {
                "pages": {
                  "maxItems": 10,
                  "type": "array",
                  "items": {
                    "type": "integer"
                  }
                },
                "rawValue": {
                  "anyOf": [
                    {
                      "maxLength": 1024,
                      "minLength": 0,
                      "type": "string",
                      "nullable": true
                    },
                    {
                      "type": "boolean",
                      "nullable": true
                    },
                    {
                      "type": "number",
                      "nullable": true
                    }
                  ]
                },
                "confidence": {
                  "maximum": 1,
                  "minimum": 0,
                  "type": "number"
                },
                "label": {
                  "maxLength": 36,
                  "minLength": 1,
                  "pattern": "^[0-9A-Za-z-_]+$",
                  "type": "string"
                },
                "value": {
                  "anyOf": [
                    {
                      "maxLength": 1024,
                      "minLength": 0,
                      "type": "string",
                      "nullable": true
                    },
                    {
                      "type": "boolean",
                      "nullable": true
                    },
                    {
                      "type": "number",
                      "nullable": true
                    },
                    {
                      "$ref": "#/components/schemas/groundTruthList",
                      "nullable": true
                    }
                  ]
                }
              },
              "additionalProperties": false
            }
          },
          "metadata": {
            "type": "object"
          },
          "consentId": {
            "pattern": "^las:consent:[a-f0-9]{32}$",
            "type": "string"
          },
          "retentionInDays": {
            "maximum": 1825,
            "minimum": 1,
            "type": "integer"
          },
          "name": {
            "maxLength": 4096,
            "type": "string",
            "nullable": true
          },
          "description": {
            "maxLength": 4096,
            "type": "string",
            "nullable": true
          },
          "datasetId": {
            "pattern": "^(cradl|las):dataset:[a-f0-9]{32}$",
            "type": "string"
          },
          "agentRunId": {
            "pattern": "^((cradl|las):organization:[a-z0-9-_]+/)?cradl:agent:[a-z0-9-_]+/cradl:run:[a-z0-9-_]+$",
            "type": "string"
          },
          "contentType": {
            "type": "string",
            "enum": [
              "application/pdf",
              "image/jpeg",
              "image/png",
              "image/tiff",
              "image/webp",
              "message/rfc822"
            ],
            "nullable": true
          },
          "content": {
            "maxLength": 6250000,
            "minLength": 1,
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "Organizations": {
        "title": "organizations",
        "required": [
          "nextToken",
          "organizations"
        ],
        "type": "object",
        "properties": {
          "nextToken": {
            "maxLength": 4096,
            "type": "string",
            "nullable": true
          },
          "organizations": {
            "type": "array",
            "items": {
              "required": [
                "createdBy",
                "createdTime",
                "description",
                "documentRetentionInDays",
                "metadata",
                "monthlyNumberOfActiveModelsUsed",
                "monthlyNumberOfDataBundlesAllowed",
                "monthlyNumberOfDataBundlesCreated",
                "monthlyNumberOfDocumentsAllowed",
                "monthlyNumberOfDocumentsCreated",
                "monthlyNumberOfFieldPredictionsUsed",
                "monthlyNumberOfGpuHoursUsed",
                "monthlyNumberOfPredictionsAllowed",
                "monthlyNumberOfPredictionsCreated",
                "monthlyNumberOfTrainingsAllowed",
                "monthlyNumberOfTrainingsCreated",
                "monthlyNumberOfTransformationsAllowed",
                "monthlyNumberOfTransformationsCreated",
                "monthlyNumberOfTransitionExecutionsAllowed",
                "monthlyNumberOfTransitionExecutionsCreated",
                "monthlyNumberOfWorkflowExecutionsAllowed",
                "monthlyNumberOfWorkflowExecutionsCreated",
                "monthlyUsageSummary",
                "name",
                "numberOfAppClientsAllowed",
                "numberOfAppClientsCreated",
                "numberOfAssetsAllowed",
                "numberOfAssetsCreated",
                "numberOfModelsAllowed",
                "numberOfModelsCreated",
                "numberOfSecretsAllowed",
                "numberOfSecretsCreated",
                "numberOfTransitionsAllowed",
                "numberOfTransitionsCreated",
                "numberOfUsersAllowed",
                "numberOfUsersCreated",
                "numberOfWorkflowsAllowed",
                "numberOfWorkflowsCreated",
                "organizationId",
                "paymentMethodId",
                "planId",
                "updatedBy",
                "updatedTime"
              ],
              "type": "object",
              "properties": {
                "numberOfAgentsCreated": {
                  "minimum": 0,
                  "type": "integer"
                },
                "privileges": {
                  "type": "object"
                },
                "metadata": {
                  "type": "object",
                  "nullable": true
                },
                "monthlyNumberOfAgentRunsCreated": {
                  "minimum": 0,
                  "type": "integer"
                },
                "deploymentsAllowed": {
                  "type": "object"
                },
                "monthlyNumberOfHookRunsCreated": {
                  "minimum": 0,
                  "type": "integer"
                },
                "numberOfHooksCreated": {
                  "minimum": 0,
                  "type": "integer"
                },
                "numberOfUsersAllowed": {
                  "minimum": 0,
                  "type": "integer"
                },
                "monthlyNumberOfPredictionsAllowed": {
                  "minimum": 0,
                  "type": "integer"
                },
                "numberOfDatasetsAllowed": {
                  "minimum": 0,
                  "type": "integer"
                },
                "organizationId": {
                  "pattern": "^(cradl|las):organization:[a-z0-9-_]+$",
                  "type": "string"
                },
                "numberOfModelsCreated": {
                  "minimum": 0,
                  "type": "integer"
                },
                "numberOfTransitionsCreated": {
                  "minimum": 0,
                  "type": "integer"
                },
                "monthlyNumberOfDocumentsAllowed": {
                  "minimum": 0,
                  "type": "integer"
                },
                "numberOfActionsCreated": {
                  "minimum": 0,
                  "type": "integer"
                },
                "monthlyNumberOfActionRunsAllowed": {
                  "minimum": 0,
                  "type": "integer"
                },
                "monthlyNumberOfTransformationsCreated": {
                  "minimum": 0,
                  "type": "integer"
                },
                "createdTime": {
                  "pattern": "^[0-9]{4}-?[0-9]{2}-?[0-9]{2}( |T)?[0-9]{2}:?[0-9]{2}:?[0-9]{2}(.[0-9]{1,6})?(Z|[+][0-9]{2}(:|)[0-9]{2})$",
                  "type": "string"
                },
                "planId": {
                  "pattern": "^(|(cradl|las):organization:[a-z0-9-_]+/)(cradl|las):plan:[a-z0-9-_]+(|:@[a-z0-9-_]+|:[0-9]+)$",
                  "type": "string",
                  "nullable": true
                },
                "monthlyNumberOfValidationTasksCreated": {
                  "minimum": 0,
                  "type": "integer"
                },
                "monthlyUsageSummary": {
                  "type": "object"
                },
                "updatedTime": {
                  "pattern": "^[0-9]{4}-?[0-9]{2}-?[0-9]{2}( |T)?[0-9]{2}:?[0-9]{2}:?[0-9]{2}(.[0-9]{1,6})?(Z|[+][0-9]{2}(:|)[0-9]{2})$",
                  "type": "string",
                  "nullable": true
                },
                "monthlyNumberOfPagePredictionsAllowed": {
                  "minimum": 0,
                  "type": "integer"
                },
                "deploymentsCreated": {
                  "type": "object"
                },
                "monthlyNumberOfGpuHoursUsed": {
                  "minimum": 0,
                  "type": "number"
                },
                "updatedBy": {
                  "maxLength": 4096,
                  "type": "string",
                  "nullable": true
                },
                "numberOfAgentsAllowed": {
                  "minimum": 0,
                  "type": "integer"
                },
                "monthlyNumberOfAgentRunsAllowed": {
                  "minimum": 0,
                  "type": "integer"
                },
                "monthlyNumberOfWorkflowExecutionsAllowed": {
                  "minimum": 0,
                  "type": "integer"
                },
                "monthlyNumberOfActiveModelsUsed": {
                  "minimum": 0,
                  "type": "integer"
                },
                "pictureUrl": {
                  "pattern": "^http://localhost.*|^https://.*",
                  "type": "string",
                  "nullable": true
                },
                "monthlyNumberOfDataBundlesCreated": {
                  "minimum": 0,
                  "type": "integer"
                },
                "numberOfUsersCreated": {
                  "minimum": 0,
                  "type": "integer"
                },
                "monthlyNumberOfActionRunsCreated": {
                  "minimum": 0,
                  "type": "integer"
                },
                "monthlyNumberOfTransitionExecutionsCreated": {
                  "minimum": 0,
                  "type": "integer"
                },
                "numberOfActionsAllowed": {
                  "minimum": 0,
                  "type": "integer"
                },
                "numberOfSecretsCreated": {
                  "minimum": 0,
                  "type": "integer"
                },
                "numberOfValidationsCreated": {
                  "minimum": 0,
                  "type": "integer"
                },
                "name": {
                  "maxLength": 4096,
                  "type": "string",
                  "nullable": true
                },
                "monthlyNumberOfTransformationsAllowed": {
                  "minimum": 0,
                  "type": "integer"
                },
                "monthlyNumberOfProductionWorkflowMinutesUsed": {
                  "minimum": 0,
                  "type": "integer"
                },
                "numberOfAppClientsAllowed": {
                  "minimum": 0,
                  "type": "integer"
                },
                "code": {
                  "maxLength": 4096,
                  "type": "string",
                  "nullable": true
                },
                "numberOfWorkflowsCreated": {
                  "minimum": 0,
                  "type": "integer"
                },
                "monthlyNumberOfFieldPredictionsUsed": {
                  "minimum": 0,
                  "type": "integer"
                },
                "monthlyNumberOfWorkflowExecutionsCreated": {
                  "minimum": 0,
                  "type": "integer"
                },
                "description": {
                  "maxLength": 4096,
                  "type": "string",
                  "nullable": true
                },
                "monthlyNumberOfDataBundlesAllowed": {
                  "minimum": 0,
                  "type": "integer"
                },
                "monthlyNumberOfTransitionExecutionsAllowed": {
                  "minimum": 0,
                  "type": "integer"
                },
                "numberOfSecretsAllowed": {
                  "minimum": 0,
                  "type": "integer"
                },
                "monthlyNumberOfTrainingsCreated": {
                  "minimum": 0,
                  "type": "integer"
                },
                "monthlyNumberOfUserMinutesUsed": {
                  "minimum": 0,
                  "type": "number"
                },
                "numberOfValidationsAllowed": {
                  "minimum": 0,
                  "type": "integer"
                },
                "paymentMethodId": {
                  "pattern": "^(cradl|las):payment-method:[a-f0-9]{32}$",
                  "type": "string",
                  "nullable": true
                },
                "monthlyNumberOfModelDeploymentUnitsUsed": {
                  "minimum": 0,
                  "type": "integer"
                },
                "numberOfAppClientsCreated": {
                  "minimum": 0,
                  "type": "integer"
                },
                "numberOfAssetsCreated": {
                  "minimum": 0,
                  "type": "integer"
                },
                "numberOfWorkflowsAllowed": {
                  "minimum": 0,
                  "type": "integer"
                },
                "clientId": {
                  "pattern": "^[0-9a-z]+$",
                  "type": "string",
                  "nullable": true
                },
                "documentRetentionInDays": {
                  "maximum": 1825,
                  "minimum": 1,
                  "type": "integer"
                },
                "numberOfConnectionsAllowed": {
                  "minimum": 0,
                  "type": "integer"
                },
                "numberOfHooksAllowed": {
                  "minimum": 0,
                  "type": "integer"
                },
                "monthlyNumberOfHookRunsAllowed": {
                  "minimum": 0,
                  "type": "integer"
                },
                "monthlyNumberOfPredictionsCreated": {
                  "minimum": 0,
                  "type": "integer"
                },
                "url": {
                  "maxLength": 4096,
                  "type": "string",
                  "nullable": true
                },
                "numberOfDatasetsCreated": {
                  "minimum": 0,
                  "type": "integer"
                },
                "monthlyNumberOfPagePredictionsUsed": {
                  "minimum": 0,
                  "type": "integer"
                },
                "numberOfTransitionsAllowed": {
                  "minimum": 0,
                  "type": "integer"
                },
                "monthlyNumberOfDocumentsCreated": {
                  "minimum": 0,
                  "type": "integer"
                },
                "numberOfConnectionsCreated": {
                  "minimum": 0,
                  "type": "integer"
                },
                "numberOfModelsAllowed": {
                  "minimum": 0,
                  "type": "integer"
                },
                "createdBy": {
                  "maxLength": 4096,
                  "type": "string"
                },
                "monthlyNumberOfTrainingsAllowed": {
                  "minimum": 0,
                  "type": "integer"
                },
                "monthlyNumberOfValidationTasksAllowed": {
                  "minimum": 0,
                  "type": "integer"
                },
                "useNewScopes": {
                  "type": "boolean"
                },
                "numberOfAssetsAllowed": {
                  "minimum": 0,
                  "type": "integer"
                }
              },
              "additionalProperties": false
            }
          }
        },
        "additionalProperties": false
      },
      "Model": {
        "title": "model",
        "required": [
          "createdBy",
          "createdTime",
          "description",
          "fieldConfig",
          "metadata",
          "modelId",
          "name",
          "numberOfDataBundles",
          "numberOfRunningTrainings",
          "organizationId",
          "preprocessConfig",
          "status",
          "trainingId",
          "updatedBy",
          "updatedTime"
        ],
        "type": "object",
        "properties": {
          "updatedTime": {
            "pattern": "^[0-9]{4}-?[0-9]{2}-?[0-9]{2}( |T)?[0-9]{2}:?[0-9]{2}:?[0-9]{2}(.[0-9]{1,6})?(Z|[+][0-9]{2}(:|)[0-9]{2})$",
            "type": "string",
            "nullable": true
          },
          "metadata": {
            "type": "object",
            "nullable": true
          },
          "updatedBy": {
            "maxLength": 4096,
            "type": "string",
            "nullable": true
          },
          "llmVersion": {
            "type": "string",
            "enum": [
              "sonnet-4.0",
              "sonnet-4.5",
              "sonnet-4.6",
              "qwen3-vl"
            ]
          },
          "trainingId": {
            "pattern": "^las:model-training:[a-z0-9-_]+$",
            "type": "string",
            "nullable": true
          },
          "modelId": {
            "pattern": "^(cradl|las):model:[a-z0-9-_]+$",
            "type": "string"
          },
          "postprocessConfig": {
            "oneOf": [
              {
                "required": [
                  "strategy"
                ],
                "type": "object",
                "properties": {
                  "strategy": {
                    "type": "string",
                    "enum": [
                      "BEST_FIRST"
                    ]
                  },
                  "outputFormat": {
                    "type": "string",
                    "enum": [
                      "v1",
                      "v2"
                    ]
                  }
                },
                "additionalProperties": false
              },
              {
                "required": [
                  "parameters",
                  "strategy"
                ],
                "type": "object",
                "properties": {
                  "strategy": {
                    "type": "string",
                    "enum": [
                      "BEST_N_PAGES"
                    ]
                  },
                  "outputFormat": {
                    "type": "string",
                    "enum": [
                      "v1",
                      "v2"
                    ]
                  },
                  "parameters": {
                    "required": [
                      "n"
                    ],
                    "type": "object",
                    "properties": {
                      "n": {
                        "maximum": 100,
                        "minimum": 1,
                        "type": "integer"
                      },
                      "collapse": {
                        "type": "boolean"
                      }
                    }
                  }
                },
                "additionalProperties": false
              }
            ]
          },
          "description": {
            "maxLength": 4096,
            "type": "string",
            "nullable": true
          },
          "fieldConfig": {
            "type": "object",
            "additionalProperties": false,
            "patternProperties": {
              "^[0-9A-Za-z-_]{1,36}$": {
                "oneOf": [
                  {
                    "type": "object",
                    "properties": {
                      "type": {
                        "type": "string",
                        "enum": [
                          "amount",
                          "date",
                          "digits",
                          "enum",
                          "multi-value",
                          "numeric",
                          "single-value",
                          "string"
                        ]
                      },
                      "maxLength": {
                        "type": "integer",
                        "minimum": 1,
                        "maximum": 1024
                      },
                      "enum": {
                        "maxItems": 500,
                        "minItems": 1,
                        "type": "array",
                        "uniqueItems": true,
                        "items": {
                          "maxLength": 512,
                          "minLength": 1,
                          "type": "string"
                        }
                      },
                      "description": {
                        "type": "string",
                        "maxLength": 4096,
                        "nullable": true
                      },
                      "order": {
                        "type": "number",
                        "nullable": true
                      },
                      "promptHint": {
                        "type": "string",
                        "maxLength": 4096,
                        "nullable": true
                      },
                      "isMultivalue": {
                        "type": "boolean"
                      },
                      "isNullable": {
                        "type": "boolean"
                      },
                      "format": {
                        "type": "string",
                        "maxLength": 4096,
                        "nullable": true
                      },
                      "strict": {
                        "type": "boolean"
                      }
                    },
                    "required": [
                      "type"
                    ]
                  },
                  {
                    "type": "object",
                    "properties": {
                      "type": {
                        "type": "string",
                        "enum": [
                          "lines",
                          "table"
                        ]
                      },
                      "fields": {
                        "type": "object",
                        "additionalProperties": false,
                        "patternProperties": {
                          "^[0-9A-Za-z-_]{1,36}$": {
                            "type": "object",
                            "properties": {
                              "type": {
                                "type": "string",
                                "enum": [
                                  "amount",
                                  "date",
                                  "digits",
                                  "enum",
                                  "multi-value",
                                  "numeric",
                                  "single-value",
                                  "string"
                                ]
                              },
                              "maxLength": {
                                "type": "integer",
                                "minimum": 1,
                                "maximum": 1024
                              },
                              "enum": {
                                "maxItems": 500,
                                "minItems": 1,
                                "type": "array",
                                "uniqueItems": true,
                                "items": {
                                  "maxLength": 512,
                                  "minLength": 1,
                                  "type": "string"
                                }
                              },
                              "description": {
                                "type": "string",
                                "maxLength": 4096,
                                "nullable": true
                              },
                              "order": {
                                "type": "number",
                                "nullable": true
                              },
                              "promptHint": {
                                "type": "string",
                                "maxLength": 4096,
                                "nullable": true
                              },
                              "isMultivalue": {
                                "type": "boolean"
                              },
                              "isNullable": {
                                "type": "boolean"
                              },
                              "format": {
                                "type": "string",
                                "maxLength": 4096,
                                "nullable": true
                              },
                              "strict": {
                                "type": "boolean"
                              }
                            },
                            "required": [
                              "type"
                            ]
                          }
                        }
                      }
                    },
                    "required": [
                      "fields",
                      "type"
                    ]
                  }
                ]
              }
            },
            "nullable": true
          },
          "version": {
            "minimum": 0,
            "type": "integer"
          },
          "organizationId": {
            "pattern": "^(cradl|las):organization:[a-z0-9-_]+$",
            "type": "string"
          },
          "confidenceVersion": {
            "type": "string",
            "enum": [
              "v1",
              "v2"
            ]
          },
          "preprocessConfig": {
            "minProperties": 1,
            "type": "object",
            "properties": {
              "trimMargins": {
                "type": "boolean"
              },
              "startPage": {
                "type": "integer"
              },
              "rotation": {
                "type": "integer",
                "enum": [
                  0,
                  90,
                  180,
                  270
                ]
              },
              "useGhostScript": {
                "type": "boolean"
              },
              "pages": {
                "maxItems": 100,
                "type": "array",
                "items": {
                  "type": "integer"
                }
              },
              "usePoppler": {
                "type": "boolean"
              },
              "padToFit": {
                "type": "boolean"
              },
              "useTextDetection": {
                "type": "boolean"
              },
              "maxPages": {
                "maximum": 100,
                "minimum": 1,
                "type": "integer"
              },
              "optimizeDimensions": {
                "type": "boolean"
              },
              "deskewImage": {
                "type": "boolean"
              },
              "autoRotate": {
                "type": "boolean"
              },
              "imageQuality": {
                "type": "string",
                "enum": [
                  "LOW",
                  "HIGH"
                ]
              }
            },
            "additionalProperties": false
          },
          "createdBy": {
            "maxLength": 4096,
            "type": "string"
          },
          "updatedFieldConfigTime": {
            "pattern": "^[0-9]{4}-?[0-9]{2}-?[0-9]{2}( |T)?[0-9]{2}:?[0-9]{2}:?[0-9]{2}(.[0-9]{1,6})?(Z|[+][0-9]{2}(:|)[0-9]{2})$",
            "type": "string",
            "nullable": true
          },
          "numberOfRunningTrainings": {
            "minimum": 0,
            "type": "integer"
          },
          "name": {
            "maxLength": 4096,
            "type": "string",
            "nullable": true
          },
          "numberOfDataBundles": {
            "minimum": 0,
            "type": "integer"
          },
          "createdTime": {
            "pattern": "^[0-9]{4}-?[0-9]{2}-?[0-9]{2}( |T)?[0-9]{2}:?[0-9]{2}:?[0-9]{2}(.[0-9]{1,6})?(Z|[+][0-9]{2}(:|)[0-9]{2})$",
            "type": "string"
          },
          "statistics": {
            "type": "object",
            "nullable": true
          },
          "status": {
            "type": "string",
            "enum": [
              "active",
              "inactive"
            ]
          }
        },
        "additionalProperties": false
      },
      "PatchAgentRunId": {
        "title": "PATCH /agents/{agentId}/runs/{runId}",
        "type": "object",
        "properties": {
          "status": {
            "type": "string",
            "enum": [
              "archived"
            ]
          }
        },
        "additionalProperties": false
      },
      "PostModels": {
        "title": "POST /models",
        "required": [
          "fieldConfig"
        ],
        "type": "object",
        "properties": {
          "metadata": {
            "type": "object"
          },
          "confidenceVersion": {
            "type": "string",
            "enum": [
              "v1",
              "v2"
            ]
          },
          "llmVersion": {
            "type": "string",
            "enum": [
              "sonnet-4.0",
              "sonnet-4.5",
              "sonnet-4.6",
              "qwen3-vl"
            ]
          },
          "preprocessConfig": {
            "minProperties": 1,
            "type": "object",
            "properties": {
              "trimMargins": {
                "type": "boolean"
              },
              "startPage": {
                "type": "integer"
              },
              "rotation": {
                "type": "integer",
                "enum": [
                  0,
                  90,
                  180,
                  270
                ]
              },
              "useGhostScript": {
                "type": "boolean"
              },
              "pages": {
                "maxItems": 100,
                "type": "array",
                "items": {
                  "type": "integer"
                }
              },
              "usePoppler": {
                "type": "boolean"
              },
              "padToFit": {
                "type": "boolean"
              },
              "useTextDetection": {
                "type": "boolean"
              },
              "maxPages": {
                "maximum": 100,
                "minimum": 1,
                "type": "integer"
              },
              "optimizeDimensions": {
                "type": "boolean"
              },
              "deskewImage": {
                "type": "boolean"
              },
              "autoRotate": {
                "type": "boolean"
              },
              "imageQuality": {
                "type": "string",
                "enum": [
                  "LOW",
                  "HIGH"
                ]
              }
            },
            "additionalProperties": false
          },
          "postprocessConfig": {
            "oneOf": [
              {
                "required": [
                  "strategy"
                ],
                "type": "object",
                "properties": {
                  "strategy": {
                    "type": "string",
                    "enum": [
                      "BEST_FIRST"
                    ]
                  },
                  "outputFormat": {
                    "type": "string",
                    "enum": [
                      "v1",
                      "v2"
                    ]
                  }
                },
                "additionalProperties": false
              },
              {
                "required": [
                  "parameters",
                  "strategy"
                ],
                "type": "object",
                "properties": {
                  "strategy": {
                    "type": "string",
                    "enum": [
                      "BEST_N_PAGES"
                    ]
                  },
                  "outputFormat": {
                    "type": "string",
                    "enum": [
                      "v1",
                      "v2"
                    ]
                  },
                  "parameters": {
                    "required": [
                      "n"
                    ],
                    "type": "object",
                    "properties": {
                      "n": {
                        "maximum": 100,
                        "minimum": 1,
                        "type": "integer"
                      },
                      "collapse": {
                        "type": "boolean"
                      }
                    }
                  }
                },
                "additionalProperties": false
              }
            ]
          },
          "name": {
            "maxLength": 4096,
            "type": "string",
            "nullable": true
          },
          "description": {
            "maxLength": 4096,
            "type": "string",
            "nullable": true
          },
          "fieldConfig": {
            "type": "object",
            "additionalProperties": false,
            "patternProperties": {
              "^[0-9A-Za-z-_]{1,36}$": {
                "oneOf": [
                  {
                    "type": "object",
                    "properties": {
                      "type": {
                        "type": "string",
                        "enum": [
                          "amount",
                          "date",
                          "digits",
                          "enum",
                          "multi-value",
                          "numeric",
                          "single-value",
                          "string"
                        ]
                      },
                      "maxLength": {
                        "type": "integer",
                        "minimum": 1,
                        "maximum": 1024
                      },
                      "enum": {
                        "maxItems": 500,
                        "minItems": 1,
                        "type": "array",
                        "uniqueItems": true,
                        "items": {
                          "maxLength": 512,
                          "minLength": 1,
                          "type": "string"
                        }
                      },
                      "description": {
                        "type": "string",
                        "maxLength": 4096,
                        "nullable": true
                      },
                      "order": {
                        "type": "number",
                        "nullable": true
                      },
                      "promptHint": {
                        "type": "string",
                        "maxLength": 4096,
                        "nullable": true
                      },
                      "isMultivalue": {
                        "type": "boolean"
                      },
                      "isNullable": {
                        "type": "boolean"
                      },
                      "format": {
                        "type": "string",
                        "maxLength": 4096,
                        "nullable": true
                      },
                      "strict": {
                        "type": "boolean"
                      }
                    },
                    "required": [
                      "type"
                    ]
                  },
                  {
                    "type": "object",
                    "properties": {
                      "type": {
                        "type": "string",
                        "enum": [
                          "lines",
                          "table"
                        ]
                      },
                      "fields": {
                        "type": "object",
                        "additionalProperties": false,
                        "patternProperties": {
                          "^[0-9A-Za-z-_]{1,36}$": {
                            "type": "object",
                            "properties": {
                              "type": {
                                "type": "string",
                                "enum": [
                                  "amount",
                                  "date",
                                  "digits",
                                  "enum",
                                  "multi-value",
                                  "numeric",
                                  "single-value",
                                  "string"
                                ]
                              },
                              "maxLength": {
                                "type": "integer",
                                "minimum": 1,
                                "maximum": 1024
                              },
                              "enum": {
                                "maxItems": 500,
                                "minItems": 1,
                                "type": "array",
                                "uniqueItems": true,
                                "items": {
                                  "maxLength": 512,
                                  "minLength": 1,
                                  "type": "string"
                                }
                              },
                              "description": {
                                "type": "string",
                                "maxLength": 4096,
                                "nullable": true
                              },
                              "order": {
                                "type": "number",
                                "nullable": true
                              },
                              "promptHint": {
                                "type": "string",
                                "maxLength": 4096,
                                "nullable": true
                              },
                              "isMultivalue": {
                                "type": "boolean"
                              },
                              "isNullable": {
                                "type": "boolean"
                              },
                              "format": {
                                "type": "string",
                                "maxLength": 4096,
                                "nullable": true
                              },
                              "strict": {
                                "type": "boolean"
                              }
                            },
                            "required": [
                              "type"
                            ]
                          }
                        }
                      }
                    },
                    "required": [
                      "fields",
                      "type"
                    ]
                  }
                ]
              }
            }
          }
        },
        "additionalProperties": false
      },
      "ActionRuns": {
        "title": "runs",
        "required": [
          "nextToken",
          "runs"
        ],
        "type": "object",
        "properties": {
          "nextToken": {
            "maxLength": 4096,
            "type": "string",
            "nullable": true
          },
          "runs": {
            "type": "array",
            "items": {
              "required": [
                "actionId",
                "createdBy",
                "createdTime",
                "description",
                "metadata",
                "name",
                "runId",
                "updatedBy",
                "updatedTime"
              ],
              "type": "object",
              "properties": {
                "updatedTime": {
                  "pattern": "^[0-9]{4}-?[0-9]{2}-?[0-9]{2}( |T)?[0-9]{2}:?[0-9]{2}:?[0-9]{2}(.[0-9]{1,6})?(Z|[+][0-9]{2}(:|)[0-9]{2})$",
                  "type": "string",
                  "nullable": true
                },
                "metadata": {
                  "type": "object",
                  "nullable": true
                },
                "updatedBy": {
                  "maxLength": 4096,
                  "type": "string",
                  "nullable": true
                },
                "warnings": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  },
                  "nullable": true
                },
                "description": {
                  "maxLength": 4096,
                  "type": "string",
                  "nullable": true
                },
                "history": {
                  "type": "array",
                  "items": {
                    "type": "object"
                  }
                },
                "agentRunId": {
                  "pattern": "^((cradl|las):organization:[a-z0-9-_]+/)?cradl:agent:[a-z0-9-_]+/cradl:run:[a-z0-9-_]+$",
                  "type": "string",
                  "nullable": true
                },
                "output": {
                  "type": "object",
                  "nullable": true
                },
                "input": {
                  "type": "object",
                  "nullable": true
                },
                "noAgentRunUpdate": {
                  "type": "boolean"
                },
                "createdBy": {
                  "maxLength": 4096,
                  "type": "string"
                },
                "name": {
                  "maxLength": 4096,
                  "type": "string",
                  "nullable": true
                },
                "actionId": {
                  "pattern": "^cradl:action:[a-f0-9]{32}$",
                  "type": "string"
                },
                "createdTime": {
                  "pattern": "^[0-9]{4}-?[0-9]{2}-?[0-9]{2}( |T)?[0-9]{2}:?[0-9]{2}:?[0-9]{2}(.[0-9]{1,6})?(Z|[+][0-9]{2}(:|)[0-9]{2})$",
                  "type": "string"
                },
                "logId": {
                  "pattern": "^(cradl|las):log:[a-f0-9]{32}$",
                  "type": "string",
                  "nullable": true
                },
                "id": {
                  "pattern": "^((cradl|las):organization:[a-z0-9-_]+/)?cradl:action:[a-z0-9-_]+/cradl:run:[a-z0-9-_]+$",
                  "type": "string"
                },
                "runId": {
                  "pattern": "^cradl:run:[a-f0-9]{32}$",
                  "type": "string"
                },
                "errors": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  },
                  "nullable": true
                },
                "status": {
                  "type": "string",
                  "enum": [
                    "failed",
                    "ignored",
                    "running",
                    "succeeded"
                  ]
                }
              },
              "additionalProperties": false
            }
          },
          "status": {
            "type": "array",
            "items": {
              "type": "string",
              "enum": [
                "failed",
                "ignored",
                "running",
                "succeeded"
              ]
            }
          }
        },
        "additionalProperties": false
      },
      "PatchHookRunId": {
        "title": "PATCH /hooks/{hookId}/runs/{runId}",
        "minProperties": 1,
        "type": "object",
        "properties": {
          "output": {
            "type": "object"
          },
          "metadata": {
            "type": "object"
          },
          "status": {
            "type": "string",
            "enum": [
              "failed",
              "ignored",
              "succeeded"
            ]
          }
        },
        "additionalProperties": false
      },
      "PostOrganizations": {
        "title": "POST /organizations",
        "type": "object",
        "properties": {
          "metadata": {
            "type": "object"
          },
          "name": {
            "maxLength": 4096,
            "type": "string",
            "nullable": true
          },
          "description": {
            "maxLength": 4096,
            "type": "string",
            "nullable": true
          },
          "url": {
            "maxLength": 4096,
            "type": "string",
            "nullable": true
          },
          "useNewScopes": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "Validation": {
        "title": "validation",
        "required": [
          "createdBy",
          "createdTime",
          "description",
          "metadata",
          "name",
          "updatedBy",
          "updatedTime",
          "validationId"
        ],
        "type": "object",
        "properties": {
          "updatedTime": {
            "pattern": "^[0-9]{4}-?[0-9]{2}-?[0-9]{2}( |T)?[0-9]{2}:?[0-9]{2}:?[0-9]{2}(.[0-9]{1,6})?(Z|[+][0-9]{2}(:|)[0-9]{2})$",
            "type": "string",
            "nullable": true
          },
          "metadata": {
            "type": "object",
            "nullable": true
          },
          "validationId": {
            "pattern": "^cradl:validation:[a-f0-9]{32}$",
            "type": "string"
          },
          "updatedBy": {
            "maxLength": 4096,
            "type": "string",
            "nullable": true
          },
          "createdBy": {
            "maxLength": 4096,
            "type": "string"
          },
          "name": {
            "maxLength": 4096,
            "type": "string",
            "nullable": true
          },
          "createdTime": {
            "pattern": "^[0-9]{4}-?[0-9]{2}-?[0-9]{2}( |T)?[0-9]{2}:?[0-9]{2}:?[0-9]{2}(.[0-9]{1,6})?(Z|[+][0-9]{2}(:|)[0-9]{2})$",
            "type": "string"
          },
          "description": {
            "maxLength": 4096,
            "type": "string",
            "nullable": true
          },
          "id": {
            "pattern": "^((cradl|las):organization:[a-z0-9-_]+/)?cradl:validation:[a-z0-9-_]+$",
            "type": "string"
          },
          "config": {
            "type": "object",
            "nullable": true
          },
          "enabled": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "PostHookRuns": {
        "title": "POST /hooks/{hookId}/runs",
        "type": "object",
        "properties": {
          "input": {
            "type": "object"
          },
          "metadata": {
            "type": "object"
          },
          "name": {
            "maxLength": 4096,
            "type": "string",
            "nullable": true
          },
          "description": {
            "maxLength": 4096,
            "type": "string",
            "nullable": true
          },
          "agentRunId": {
            "pattern": "^((cradl|las):organization:[a-z0-9-_]+/)?cradl:agent:[a-z0-9-_]+/cradl:run:[a-z0-9-_]+$",
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "Prediction": {
        "title": "prediction",
        "required": [
          "createdBy",
          "createdTime",
          "description",
          "documentId",
          "metadata",
          "modelId",
          "name",
          "predictionId",
          "predictions",
          "updatedBy",
          "updatedTime"
        ],
        "type": "object",
        "properties": {
          "updatedTime": {
            "pattern": "^[0-9]{4}-?[0-9]{2}-?[0-9]{2}( |T)?[0-9]{2}:?[0-9]{2}:?[0-9]{2}(.[0-9]{1,6})?(Z|[+][0-9]{2}(:|)[0-9]{2})$",
            "type": "string",
            "nullable": true
          },
          "metadata": {
            "type": "object",
            "nullable": true
          },
          "updatedBy": {
            "maxLength": 4096,
            "type": "string",
            "nullable": true
          },
          "trainingId": {
            "pattern": "^las:model-training:[a-z0-9-_]+$",
            "type": "string",
            "nullable": true
          },
          "modelId": {
            "pattern": "^(|(cradl|las):organization:[a-z0-9-_]+/)(cradl|las):model:[a-z0-9-_]+$",
            "type": "string"
          },
          "nextPage": {
            "type": "integer",
            "nullable": true
          },
          "postprocessConfig": {
            "oneOf": [
              {
                "required": [
                  "strategy"
                ],
                "type": "object",
                "properties": {
                  "strategy": {
                    "type": "string",
                    "enum": [
                      "BEST_FIRST"
                    ]
                  },
                  "outputFormat": {
                    "type": "string",
                    "enum": [
                      "v1",
                      "v2"
                    ]
                  }
                },
                "additionalProperties": false
              },
              {
                "required": [
                  "parameters",
                  "strategy"
                ],
                "type": "object",
                "properties": {
                  "strategy": {
                    "type": "string",
                    "enum": [
                      "BEST_N_PAGES"
                    ]
                  },
                  "outputFormat": {
                    "type": "string",
                    "enum": [
                      "v1",
                      "v2"
                    ]
                  },
                  "parameters": {
                    "required": [
                      "n"
                    ],
                    "type": "object",
                    "properties": {
                      "n": {
                        "maximum": 100,
                        "minimum": 1,
                        "type": "integer"
                      },
                      "collapse": {
                        "type": "boolean"
                      }
                    }
                  }
                },
                "additionalProperties": false
              }
            ],
            "nullable": true
          },
          "warnings": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "nullable": true
          },
          "description": {
            "maxLength": 4096,
            "type": "string",
            "nullable": true
          },
          "inferenceTime": {
            "minimum": 0,
            "type": "number",
            "nullable": true
          },
          "error": {
            "maxLength": 4096,
            "type": "string",
            "nullable": true
          },
          "agentRunId": {
            "pattern": "^((cradl|las):organization:[a-z0-9-_]+/)?cradl:agent:[a-z0-9-_]+/cradl:run:[a-z0-9-_]+$",
            "type": "string",
            "nullable": true
          },
          "predictions": {
            "anyOf": [
              {
                "type": "array",
                "items": {
                  "anyOf": [
                    {
                      "required": [
                        "confidence",
                        "label",
                        "value"
                      ],
                      "type": "object",
                      "properties": {
                        "validators": {
                          "type": "array"
                        },
                        "confidence": {
                          "maximum": 1,
                          "minimum": 0,
                          "type": "number"
                        },
                        "warnings": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          },
                          "nullable": true
                        },
                        "rotation": {
                          "type": "integer"
                        },
                        "label": {
                          "maxLength": 36,
                          "minLength": 1,
                          "pattern": "^[0-9A-Za-z-_]+$",
                          "type": "string"
                        },
                        "source": {
                          "type": "string",
                          "enum": [
                            "llm",
                            "model"
                          ]
                        },
                        "formatters": {
                          "type": "array"
                        },
                        "rawValue": {
                          "maxLength": 1024,
                          "minLength": 1,
                          "type": "string",
                          "nullable": true
                        },
                        "attentionMap": {
                          "type": "array",
                          "items": {
                            "type": "array",
                            "items": {
                              "type": "number"
                            }
                          }
                        },
                        "name": {
                          "maxLength": 4096,
                          "type": "string",
                          "nullable": true
                        },
                        "location": {
                          "maxItems": 4,
                          "minItems": 4,
                          "type": "array",
                          "items": {
                            "maximum": 1,
                            "minimum": 0,
                            "type": "number"
                          }
                        },
                        "page": {
                          "type": "integer"
                        },
                        "value": {
                          "maxLength": 1024,
                          "minLength": 1,
                          "type": "string",
                          "nullable": true
                        },
                        "errors": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          },
                          "nullable": true
                        }
                      },
                      "additionalProperties": false
                    },
                    {
                      "required": [
                        "label",
                        "value"
                      ],
                      "type": "object",
                      "properties": {
                        "label": {
                          "maxLength": 36,
                          "minLength": 1,
                          "pattern": "^[0-9A-Za-z-_]+$",
                          "type": "string"
                        },
                        "page": {
                          "minimum": 0,
                          "type": "integer"
                        },
                        "value": {
                          "type": "array",
                          "items": {
                            "type": "array",
                            "items": {
                              "required": [
                                "confidence",
                                "label",
                                "value"
                              ],
                              "type": "object",
                              "properties": {
                                "validators": {
                                  "type": "array"
                                },
                                "confidence": {
                                  "maximum": 1,
                                  "minimum": 0,
                                  "type": "number"
                                },
                                "warnings": {
                                  "type": "array",
                                  "items": {
                                    "type": "string"
                                  },
                                  "nullable": true
                                },
                                "rotation": {
                                  "type": "integer"
                                },
                                "label": {
                                  "maxLength": 36,
                                  "minLength": 1,
                                  "pattern": "^[0-9A-Za-z-_]+$",
                                  "type": "string"
                                },
                                "source": {
                                  "type": "string",
                                  "enum": [
                                    "llm",
                                    "model"
                                  ]
                                },
                                "formatters": {
                                  "type": "array"
                                },
                                "rawValue": {
                                  "maxLength": 1024,
                                  "minLength": 1,
                                  "type": "string",
                                  "nullable": true
                                },
                                "attentionMap": {
                                  "type": "array",
                                  "items": {
                                    "type": "array",
                                    "items": {
                                      "type": "number"
                                    }
                                  }
                                },
                                "name": {
                                  "maxLength": 4096,
                                  "type": "string",
                                  "nullable": true
                                },
                                "location": {
                                  "maxItems": 4,
                                  "minItems": 4,
                                  "type": "array",
                                  "items": {
                                    "maximum": 1,
                                    "minimum": 0,
                                    "type": "number"
                                  }
                                },
                                "page": {
                                  "type": "integer"
                                },
                                "value": {
                                  "maxLength": 1024,
                                  "minLength": 1,
                                  "type": "string",
                                  "nullable": true
                                },
                                "errors": {
                                  "type": "array",
                                  "items": {
                                    "type": "string"
                                  },
                                  "nullable": true
                                }
                              },
                              "additionalProperties": false
                            }
                          }
                        }
                      },
                      "additionalProperties": false
                    }
                  ]
                },
                "nullable": true
              },
              {
                "type": "object",
                "additionalProperties": false,
                "nullable": true
              }
            ]
          },
          "preprocessConfig": {
            "minProperties": 1,
            "type": "object",
            "properties": {
              "trimMargins": {
                "type": "boolean"
              },
              "startPage": {
                "type": "integer"
              },
              "rotation": {
                "type": "integer",
                "enum": [
                  0,
                  90,
                  180,
                  270
                ]
              },
              "useGhostScript": {
                "type": "boolean"
              },
              "pages": {
                "maxItems": 100,
                "type": "array",
                "items": {
                  "type": "integer"
                }
              },
              "usePoppler": {
                "type": "boolean"
              },
              "padToFit": {
                "type": "boolean"
              },
              "useTextDetection": {
                "type": "boolean"
              },
              "maxPages": {
                "maximum": 100,
                "minimum": 1,
                "type": "integer"
              },
              "optimizeDimensions": {
                "type": "boolean"
              },
              "deskewImage": {
                "type": "boolean"
              },
              "autoRotate": {
                "type": "boolean"
              },
              "imageQuality": {
                "type": "string",
                "enum": [
                  "LOW",
                  "HIGH"
                ]
              }
            },
            "additionalProperties": false,
            "nullable": true
          },
          "createdBy": {
            "maxLength": 4096,
            "type": "string"
          },
          "name": {
            "maxLength": 4096,
            "type": "string",
            "nullable": true
          },
          "createdTime": {
            "pattern": "^[0-9]{4}-?[0-9]{2}-?[0-9]{2}( |T)?[0-9]{2}:?[0-9]{2}:?[0-9]{2}(.[0-9]{1,6})?(Z|[+][0-9]{2}(:|)[0-9]{2})$",
            "type": "string"
          },
          "documentId": {
            "pattern": "^(cradl|las):document:[a-f0-9]{32}$",
            "type": "string"
          },
          "fileUrl": {
            "pattern": "^http://localhost.*|^https://.*",
            "type": "string",
            "nullable": true
          },
          "predictionId": {
            "pattern": "^(cradl|las):prediction:[a-f0-9]{32}$",
            "type": "string"
          },
          "errors": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "nullable": true
          },
          "status": {
            "type": "string",
            "enum": [
              "pending",
              "succeeded",
              "failed"
            ]
          }
        },
        "additionalProperties": false
      },
      "PatchValidationTaskId": {
        "title": "PATCH /validations/{validationId}/tasks/{taskId}",
        "minProperties": 1,
        "type": "object",
        "properties": {
          "output": {
            "type": "object"
          },
          "metadata": {
            "type": "object"
          },
          "name": {
            "maxLength": 4096,
            "type": "string",
            "nullable": true
          },
          "description": {
            "maxLength": 4096,
            "type": "string",
            "nullable": true
          },
          "status": {
            "type": "string",
            "enum": [
              "ready",
              "in-progress",
              "succeeded",
              "failed",
              "cancelled"
            ]
          }
        },
        "additionalProperties": false
      },
      "PostAppClients": {
        "title": "POST /appClients",
        "type": "object",
        "properties": {
          "metadata": {
            "type": "object"
          },
          "roleIds": {
            "type": "array",
            "items": {
              "pattern": "^(cradl|las):role:[0-9A-Za-z-_]{1,32}$",
              "type": "string"
            }
          },
          "name": {
            "maxLength": 4096,
            "type": "string",
            "nullable": true
          },
          "generateSecret": {
            "type": "boolean",
            "default": true
          },
          "logoutUrls": {
            "type": "array",
            "items": {
              "pattern": "^http://localhost.*|^https://.*",
              "type": "string"
            }
          },
          "description": {
            "maxLength": 4096,
            "type": "string",
            "nullable": true
          },
          "callbackUrls": {
            "type": "array",
            "items": {
              "pattern": "^http://localhost.*|^https://.*",
              "type": "string"
            }
          },
          "loginUrls": {
            "type": "array",
            "items": {
              "pattern": "^http://localhost.*|^https://.*",
              "type": "string"
            }
          },
          "defaultLoginUrl": {
            "pattern": "^http://localhost.*|^https://.*",
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "Role": {
        "title": "role",
        "required": [
          "createdBy",
          "createdTime",
          "description",
          "metadata",
          "name",
          "permissions",
          "roleId",
          "updatedBy",
          "updatedTime"
        ],
        "type": "object",
        "properties": {
          "updatedTime": {
            "pattern": "^[0-9]{4}-?[0-9]{2}-?[0-9]{2}( |T)?[0-9]{2}:?[0-9]{2}:?[0-9]{2}(.[0-9]{1,6})?(Z|[+][0-9]{2}(:|)[0-9]{2})$",
            "type": "string",
            "nullable": true
          },
          "metadata": {
            "type": "object",
            "nullable": true
          },
          "updatedBy": {
            "maxLength": 4096,
            "type": "string",
            "nullable": true
          },
          "createdBy": {
            "maxLength": 4096,
            "type": "string"
          },
          "roleId": {
            "pattern": "^(cradl|las):role:[0-9A-Za-z-_]{1,32}$",
            "type": "string"
          },
          "permissions": {
            "type": "array",
            "items": {
              "required": [
                "action",
                "effect",
                "resourceId"
              ],
              "type": "object",
              "properties": {
                "resourceId": {
                  "minLength": 1,
                  "type": "string"
                },
                "effect": {
                  "type": "string",
                  "enum": [
                    "allow",
                    "deny"
                  ]
                },
                "action": {
                  "type": "string",
                  "enum": [
                    "read",
                    "write",
                    "delegate",
                    "*"
                  ]
                }
              },
              "additionalProperties": false
            }
          },
          "name": {
            "maxLength": 4096,
            "type": "string",
            "nullable": true
          },
          "createdTime": {
            "pattern": "^[0-9]{4}-?[0-9]{2}-?[0-9]{2}( |T)?[0-9]{2}:?[0-9]{2}:?[0-9]{2}(.[0-9]{1,6})?(Z|[+][0-9]{2}(:|)[0-9]{2})$",
            "type": "string"
          },
          "description": {
            "maxLength": 4096,
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "ValidationTasks": {
        "title": "tasks",
        "required": [
          "nextToken",
          "tasks"
        ],
        "type": "object",
        "properties": {
          "nextToken": {
            "maxLength": 4096,
            "type": "string",
            "nullable": true
          },
          "tasks": {
            "type": "array",
            "items": {
              "required": [
                "createdBy",
                "createdTime",
                "description",
                "input",
                "metadata",
                "name",
                "taskId",
                "updatedBy",
                "updatedTime",
                "validationId"
              ],
              "type": "object",
              "properties": {
                "updatedTime": {
                  "pattern": "^[0-9]{4}-?[0-9]{2}-?[0-9]{2}( |T)?[0-9]{2}:?[0-9]{2}:?[0-9]{2}(.[0-9]{1,6})?(Z|[+][0-9]{2}(:|)[0-9]{2})$",
                  "type": "string",
                  "nullable": true
                },
                "metadata": {
                  "type": "object",
                  "nullable": true
                },
                "validationId": {
                  "pattern": "^cradl:validation:[a-f0-9]{32}$",
                  "type": "string"
                },
                "updatedBy": {
                  "maxLength": 4096,
                  "type": "string",
                  "nullable": true
                },
                "warnings": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  },
                  "nullable": true
                },
                "description": {
                  "maxLength": 4096,
                  "type": "string",
                  "nullable": true
                },
                "history": {
                  "type": "array",
                  "items": {
                    "type": "object"
                  }
                },
                "agentRunId": {
                  "pattern": "^((cradl|las):organization:[a-z0-9-_]+/)?cradl:agent:[a-z0-9-_]+/cradl:run:[a-z0-9-_]+$",
                  "type": "string",
                  "nullable": true
                },
                "enabled": {
                  "type": "boolean"
                },
                "output": {
                  "type": "object",
                  "nullable": true
                },
                "input": {
                  "type": "object"
                },
                "createdBy": {
                  "maxLength": 4096,
                  "type": "string"
                },
                "name": {
                  "maxLength": 4096,
                  "type": "string",
                  "nullable": true
                },
                "createdTime": {
                  "pattern": "^[0-9]{4}-?[0-9]{2}-?[0-9]{2}( |T)?[0-9]{2}:?[0-9]{2}:?[0-9]{2}(.[0-9]{1,6})?(Z|[+][0-9]{2}(:|)[0-9]{2})$",
                  "type": "string"
                },
                "logId": {
                  "pattern": "^(cradl|las):log:[a-f0-9]{32}$",
                  "type": "string",
                  "nullable": true
                },
                "id": {
                  "pattern": "^((cradl|las):organization:[a-z0-9-_]+/)?cradl:validation:[a-z0-9-_]+/cradl:task:[a-z0-9-_]+$",
                  "type": "string"
                },
                "taskId": {
                  "pattern": "^cradl:task:[a-f0-9]{32}$",
                  "type": "string"
                },
                "errors": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  },
                  "nullable": true
                },
                "status": {
                  "type": "string",
                  "enum": [
                    "ready",
                    "in-progress",
                    "succeeded",
                    "failed",
                    "cancelled"
                  ]
                }
              },
              "additionalProperties": false
            }
          },
          "status": {
            "type": "array",
            "items": {
              "type": "string",
              "enum": [
                "ready",
                "in-progress",
                "succeeded",
                "failed",
                "cancelled"
              ]
            }
          }
        },
        "additionalProperties": false
      },
      "HookRuns": {
        "title": "runs",
        "required": [
          "nextToken",
          "runs"
        ],
        "type": "object",
        "properties": {
          "nextToken": {
            "maxLength": 4096,
            "type": "string",
            "nullable": true
          },
          "runs": {
            "type": "array",
            "items": {
              "required": [
                "createdBy",
                "createdTime",
                "description",
                "hookId",
                "metadata",
                "name",
                "runId",
                "updatedBy",
                "updatedTime"
              ],
              "type": "object",
              "properties": {
                "updatedTime": {
                  "pattern": "^[0-9]{4}-?[0-9]{2}-?[0-9]{2}( |T)?[0-9]{2}:?[0-9]{2}:?[0-9]{2}(.[0-9]{1,6})?(Z|[+][0-9]{2}(:|)[0-9]{2})$",
                  "type": "string",
                  "nullable": true
                },
                "metadata": {
                  "type": "object",
                  "nullable": true
                },
                "updatedBy": {
                  "maxLength": 4096,
                  "type": "string",
                  "nullable": true
                },
                "warnings": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  },
                  "nullable": true
                },
                "description": {
                  "maxLength": 4096,
                  "type": "string",
                  "nullable": true
                },
                "history": {
                  "type": "array",
                  "items": {
                    "type": "object"
                  }
                },
                "agentRunId": {
                  "pattern": "^((cradl|las):organization:[a-z0-9-_]+/)?cradl:agent:[a-z0-9-_]+/cradl:run:[a-z0-9-_]+$",
                  "type": "string",
                  "nullable": true
                },
                "output": {
                  "type": "object",
                  "nullable": true
                },
                "input": {
                  "type": "object",
                  "nullable": true
                },
                "createdBy": {
                  "maxLength": 4096,
                  "type": "string"
                },
                "hookId": {
                  "pattern": "^((cradl|las):organization:[a-z0-9-_]+/)?cradl:hook:[a-z0-9-_]+$",
                  "type": "string"
                },
                "name": {
                  "maxLength": 4096,
                  "type": "string",
                  "nullable": true
                },
                "actionId": {
                  "pattern": "^((cradl|las):organization:[a-z0-9-_]+/)?cradl:action:[a-z0-9-_]+$",
                  "type": "string",
                  "nullable": true
                },
                "createdTime": {
                  "pattern": "^[0-9]{4}-?[0-9]{2}-?[0-9]{2}( |T)?[0-9]{2}:?[0-9]{2}:?[0-9]{2}(.[0-9]{1,6})?(Z|[+][0-9]{2}(:|)[0-9]{2})$",
                  "type": "string"
                },
                "logId": {
                  "pattern": "^(cradl|las):log:[a-f0-9]{32}$",
                  "type": "string",
                  "nullable": true
                },
                "id": {
                  "pattern": "^((cradl|las):organization:[a-z0-9-_]+/)?cradl:hook:[a-z0-9-_]+/cradl:run:[a-z0-9-_]+$",
                  "type": "string"
                },
                "runId": {
                  "pattern": "^cradl:run:[a-f0-9]{32}$",
                  "type": "string"
                },
                "errors": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  },
                  "nullable": true
                },
                "status": {
                  "type": "string",
                  "enum": [
                    "failed",
                    "ignored",
                    "running",
                    "succeeded"
                  ]
                }
              },
              "additionalProperties": false
            }
          },
          "status": {
            "type": "array",
            "items": {
              "type": "string",
              "enum": [
                "failed",
                "ignored",
                "running",
                "succeeded"
              ]
            }
          }
        },
        "additionalProperties": false
      },
      "PostFunctions": {
        "title": "POST /functions",
        "type": "object",
        "properties": {
          "metadata": {
            "type": "object"
          },
          "name": {
            "maxLength": 4096,
            "type": "string",
            "nullable": true
          },
          "description": {
            "maxLength": 4096,
            "type": "string",
            "nullable": true
          },
          "runtime": {
            "type": "string",
            "enum": [
              "python",
              "nodejs"
            ]
          }
        },
        "additionalProperties": false
      },
      "Predictions": {
        "title": "predictions",
        "required": [
          "nextToken",
          "predictions"
        ],
        "type": "object",
        "properties": {
          "modelId": {
            "pattern": "^(|(cradl|las):organization:[a-z0-9-_]+/)(cradl|las):model:[a-z0-9-_]+$",
            "type": "string"
          },
          "nextToken": {
            "maxLength": 4096,
            "type": "string",
            "nullable": true
          },
          "sortBy": {
            "type": "string",
            "enum": [
              "createdTime"
            ]
          },
          "predictions": {
            "type": "array",
            "items": {
              "required": [
                "createdBy",
                "createdTime",
                "description",
                "documentId",
                "metadata",
                "modelId",
                "name",
                "predictionId",
                "predictions",
                "updatedBy",
                "updatedTime"
              ],
              "type": "object",
              "properties": {
                "updatedTime": {
                  "pattern": "^[0-9]{4}-?[0-9]{2}-?[0-9]{2}( |T)?[0-9]{2}:?[0-9]{2}:?[0-9]{2}(.[0-9]{1,6})?(Z|[+][0-9]{2}(:|)[0-9]{2})$",
                  "type": "string",
                  "nullable": true
                },
                "metadata": {
                  "type": "object",
                  "nullable": true
                },
                "updatedBy": {
                  "maxLength": 4096,
                  "type": "string",
                  "nullable": true
                },
                "trainingId": {
                  "pattern": "^las:model-training:[a-z0-9-_]+$",
                  "type": "string",
                  "nullable": true
                },
                "modelId": {
                  "pattern": "^(|(cradl|las):organization:[a-z0-9-_]+/)(cradl|las):model:[a-z0-9-_]+$",
                  "type": "string"
                },
                "nextPage": {
                  "type": "integer",
                  "nullable": true
                },
                "postprocessConfig": {
                  "oneOf": [
                    {
                      "required": [
                        "strategy"
                      ],
                      "type": "object",
                      "properties": {
                        "strategy": {
                          "type": "string",
                          "enum": [
                            "BEST_FIRST"
                          ]
                        },
                        "outputFormat": {
                          "type": "string",
                          "enum": [
                            "v1",
                            "v2"
                          ]
                        }
                      },
                      "additionalProperties": false
                    },
                    {
                      "required": [
                        "parameters",
                        "strategy"
                      ],
                      "type": "object",
                      "properties": {
                        "strategy": {
                          "type": "string",
                          "enum": [
                            "BEST_N_PAGES"
                          ]
                        },
                        "outputFormat": {
                          "type": "string",
                          "enum": [
                            "v1",
                            "v2"
                          ]
                        },
                        "parameters": {
                          "required": [
                            "n"
                          ],
                          "type": "object",
                          "properties": {
                            "n": {
                              "maximum": 100,
                              "minimum": 1,
                              "type": "integer"
                            },
                            "collapse": {
                              "type": "boolean"
                            }
                          }
                        }
                      },
                      "additionalProperties": false
                    }
                  ],
                  "nullable": true
                },
                "warnings": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  },
                  "nullable": true
                },
                "description": {
                  "maxLength": 4096,
                  "type": "string",
                  "nullable": true
                },
                "inferenceTime": {
                  "minimum": 0,
                  "type": "number",
                  "nullable": true
                },
                "error": {
                  "maxLength": 4096,
                  "type": "string",
                  "nullable": true
                },
                "agentRunId": {
                  "pattern": "^((cradl|las):organization:[a-z0-9-_]+/)?cradl:agent:[a-z0-9-_]+/cradl:run:[a-z0-9-_]+$",
                  "type": "string",
                  "nullable": true
                },
                "predictions": {
                  "anyOf": [
                    {
                      "type": "array",
                      "items": {
                        "anyOf": [
                          {
                            "required": [
                              "confidence",
                              "label",
                              "value"
                            ],
                            "type": "object",
                            "properties": {
                              "validators": {
                                "type": "array"
                              },
                              "confidence": {
                                "maximum": 1,
                                "minimum": 0,
                                "type": "number"
                              },
                              "warnings": {
                                "type": "array",
                                "items": {
                                  "type": "string"
                                },
                                "nullable": true
                              },
                              "rotation": {
                                "type": "integer"
                              },
                              "label": {
                                "maxLength": 36,
                                "minLength": 1,
                                "pattern": "^[0-9A-Za-z-_]+$",
                                "type": "string"
                              },
                              "source": {
                                "type": "string",
                                "enum": [
                                  "llm",
                                  "model"
                                ]
                              },
                              "formatters": {
                                "type": "array"
                              },
                              "rawValue": {
                                "maxLength": 1024,
                                "minLength": 1,
                                "type": "string",
                                "nullable": true
                              },
                              "attentionMap": {
                                "type": "array",
                                "items": {
                                  "type": "array",
                                  "items": {
                                    "type": "number"
                                  }
                                }
                              },
                              "name": {
                                "maxLength": 4096,
                                "type": "string",
                                "nullable": true
                              },
                              "location": {
                                "maxItems": 4,
                                "minItems": 4,
                                "type": "array",
                                "items": {
                                  "maximum": 1,
                                  "minimum": 0,
                                  "type": "number"
                                }
                              },
                              "page": {
                                "type": "integer"
                              },
                              "value": {
                                "maxLength": 1024,
                                "minLength": 1,
                                "type": "string",
                                "nullable": true
                              },
                              "errors": {
                                "type": "array",
                                "items": {
                                  "type": "string"
                                },
                                "nullable": true
                              }
                            },
                            "additionalProperties": false
                          },
                          {
                            "required": [
                              "label",
                              "value"
                            ],
                            "type": "object",
                            "properties": {
                              "label": {
                                "maxLength": 36,
                                "minLength": 1,
                                "pattern": "^[0-9A-Za-z-_]+$",
                                "type": "string"
                              },
                              "page": {
                                "minimum": 0,
                                "type": "integer"
                              },
                              "value": {
                                "type": "array",
                                "items": {
                                  "type": "array",
                                  "items": {
                                    "required": [
                                      "confidence",
                                      "label",
                                      "value"
                                    ],
                                    "type": "object",
                                    "properties": {
                                      "validators": {
                                        "type": "array"
                                      },
                                      "confidence": {
                                        "maximum": 1,
                                        "minimum": 0,
                                        "type": "number"
                                      },
                                      "warnings": {
                                        "type": "array",
                                        "items": {
                                          "type": "string"
                                        },
                                        "nullable": true
                                      },
                                      "rotation": {
                                        "type": "integer"
                                      },
                                      "label": {
                                        "maxLength": 36,
                                        "minLength": 1,
                                        "pattern": "^[0-9A-Za-z-_]+$",
                                        "type": "string"
                                      },
                                      "source": {
                                        "type": "string",
                                        "enum": [
                                          "llm",
                                          "model"
                                        ]
                                      },
                                      "formatters": {
                                        "type": "array"
                                      },
                                      "rawValue": {
                                        "maxLength": 1024,
                                        "minLength": 1,
                                        "type": "string",
                                        "nullable": true
                                      },
                                      "attentionMap": {
                                        "type": "array",
                                        "items": {
                                          "type": "array",
                                          "items": {
                                            "type": "number"
                                          }
                                        }
                                      },
                                      "name": {
                                        "maxLength": 4096,
                                        "type": "string",
                                        "nullable": true
                                      },
                                      "location": {
                                        "maxItems": 4,
                                        "minItems": 4,
                                        "type": "array",
                                        "items": {
                                          "maximum": 1,
                                          "minimum": 0,
                                          "type": "number"
                                        }
                                      },
                                      "page": {
                                        "type": "integer"
                                      },
                                      "value": {
                                        "maxLength": 1024,
                                        "minLength": 1,
                                        "type": "string",
                                        "nullable": true
                                      },
                                      "errors": {
                                        "type": "array",
                                        "items": {
                                          "type": "string"
                                        },
                                        "nullable": true
                                      }
                                    },
                                    "additionalProperties": false
                                  }
                                }
                              }
                            },
                            "additionalProperties": false
                          }
                        ]
                      },
                      "nullable": true
                    },
                    {
                      "type": "object",
                      "additionalProperties": false,
                      "nullable": true
                    }
                  ]
                },
                "preprocessConfig": {
                  "minProperties": 1,
                  "type": "object",
                  "properties": {
                    "trimMargins": {
                      "type": "boolean"
                    },
                    "startPage": {
                      "type": "integer"
                    },
                    "rotation": {
                      "type": "integer",
                      "enum": [
                        0,
                        90,
                        180,
                        270
                      ]
                    },
                    "useGhostScript": {
                      "type": "boolean"
                    },
                    "pages": {
                      "maxItems": 100,
                      "type": "array",
                      "items": {
                        "type": "integer"
                      }
                    },
                    "usePoppler": {
                      "type": "boolean"
                    },
                    "padToFit": {
                      "type": "boolean"
                    },
                    "useTextDetection": {
                      "type": "boolean"
                    },
                    "maxPages": {
                      "maximum": 100,
                      "minimum": 1,
                      "type": "integer"
                    },
                    "optimizeDimensions": {
                      "type": "boolean"
                    },
                    "deskewImage": {
                      "type": "boolean"
                    },
                    "autoRotate": {
                      "type": "boolean"
                    },
                    "imageQuality": {
                      "type": "string",
                      "enum": [
                        "LOW",
                        "HIGH"
                      ]
                    }
                  },
                  "additionalProperties": false,
                  "nullable": true
                },
                "createdBy": {
                  "maxLength": 4096,
                  "type": "string"
                },
                "name": {
                  "maxLength": 4096,
                  "type": "string",
                  "nullable": true
                },
                "createdTime": {
                  "pattern": "^[0-9]{4}-?[0-9]{2}-?[0-9]{2}( |T)?[0-9]{2}:?[0-9]{2}:?[0-9]{2}(.[0-9]{1,6})?(Z|[+][0-9]{2}(:|)[0-9]{2})$",
                  "type": "string"
                },
                "documentId": {
                  "pattern": "^(cradl|las):document:[a-f0-9]{32}$",
                  "type": "string"
                },
                "fileUrl": {
                  "pattern": "^http://localhost.*|^https://.*",
                  "type": "string",
                  "nullable": true
                },
                "predictionId": {
                  "pattern": "^(cradl|las):prediction:[a-f0-9]{32}$",
                  "type": "string"
                },
                "errors": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  },
                  "nullable": true
                },
                "status": {
                  "type": "string",
                  "enum": [
                    "pending",
                    "succeeded",
                    "failed"
                  ]
                }
              },
              "additionalProperties": false
            }
          },
          "order": {
            "type": "string",
            "enum": [
              "ascending",
              "descending"
            ]
          }
        },
        "additionalProperties": false
      },
      "Hooks": {
        "title": "hooks",
        "required": [
          "hooks",
          "nextToken"
        ],
        "type": "object",
        "properties": {
          "nextToken": {
            "maxLength": 4096,
            "type": "string",
            "nullable": true
          },
          "hooks": {
            "type": "array",
            "items": {
              "required": [
                "createdBy",
                "createdTime",
                "description",
                "hookId",
                "metadata",
                "name",
                "updatedBy",
                "updatedTime"
              ],
              "type": "object",
              "properties": {
                "updatedTime": {
                  "pattern": "^[0-9]{4}-?[0-9]{2}-?[0-9]{2}( |T)?[0-9]{2}:?[0-9]{2}:?[0-9]{2}(.[0-9]{1,6})?(Z|[+][0-9]{2}(:|)[0-9]{2})$",
                  "type": "string",
                  "nullable": true
                },
                "metadata": {
                  "type": "object",
                  "nullable": true
                },
                "updatedBy": {
                  "maxLength": 4096,
                  "type": "string",
                  "nullable": true
                },
                "description": {
                  "maxLength": 4096,
                  "type": "string",
                  "nullable": true
                },
                "trigger": {
                  "type": "string",
                  "enum": [
                    "ActionRun has Completed",
                    "Document is Created",
                    "Email is Received",
                    "Prediction is Created",
                    "ValidationTask has Completed",
                    "ValidationTask is Created"
                  ]
                },
                "enabled": {
                  "type": "boolean"
                },
                "functionId": {
                  "pattern": "^((cradl|las):organization:[a-z0-9-_]+/)?cradl:function:[a-z0-9-_]+$",
                  "type": "string",
                  "nullable": true
                },
                "falseActionId": {
                  "pattern": "^((cradl|las):organization:[a-z0-9-_]+/)?cradl:action:[a-z0-9-_]+$",
                  "type": "string",
                  "nullable": true
                },
                "createdBy": {
                  "maxLength": 4096,
                  "type": "string"
                },
                "trueActionId": {
                  "pattern": "^((cradl|las):organization:[a-z0-9-_]+/)?cradl:action:[a-z0-9-_]+$",
                  "type": "string",
                  "nullable": true
                },
                "hookId": {
                  "pattern": "^cradl:hook:[a-f0-9]{32}$",
                  "type": "string"
                },
                "name": {
                  "maxLength": 4096,
                  "type": "string",
                  "nullable": true
                },
                "createdTime": {
                  "pattern": "^[0-9]{4}-?[0-9]{2}-?[0-9]{2}( |T)?[0-9]{2}:?[0-9]{2}:?[0-9]{2}(.[0-9]{1,6})?(Z|[+][0-9]{2}(:|)[0-9]{2})$",
                  "type": "string"
                },
                "id": {
                  "pattern": "^((cradl|las):organization:[a-z0-9-_]+/)?cradl:hook:[a-z0-9-_]+$",
                  "type": "string"
                },
                "config": {
                  "type": "object",
                  "nullable": true
                }
              },
              "additionalProperties": false
            }
          }
        },
        "additionalProperties": false
      },
      "AgentRuns": {
        "title": "runs",
        "required": [
          "nextToken",
          "runs"
        ],
        "type": "object",
        "properties": {
          "nextToken": {
            "maxLength": 4096,
            "type": "string",
            "nullable": true
          },
          "runs": {
            "type": "array",
            "items": {
              "required": [
                "agentId",
                "runId"
              ],
              "type": "object",
              "properties": {
                "updatedTime": {
                  "pattern": "^[0-9]{4}-?[0-9]{2}-?[0-9]{2}( |T)?[0-9]{2}:?[0-9]{2}:?[0-9]{2}(.[0-9]{1,6})?(Z|[+][0-9]{2}(:|)[0-9]{2})$",
                  "type": "string",
                  "nullable": true
                },
                "agentId": {
                  "pattern": "^cradl:agent:[a-f0-9]{32}$",
                  "type": "string"
                },
                "updatedBy": {
                  "maxLength": 4096,
                  "type": "string",
                  "nullable": true
                },
                "createdBy": {
                  "maxLength": 4096,
                  "type": "string",
                  "nullable": true
                },
                "createdTime": {
                  "pattern": "^[0-9]{4}-?[0-9]{2}-?[0-9]{2}( |T)?[0-9]{2}:?[0-9]{2}:?[0-9]{2}(.[0-9]{1,6})?(Z|[+][0-9]{2}(:|)[0-9]{2})$",
                  "type": "string",
                  "nullable": true
                },
                "id": {
                  "pattern": "^((cradl|las):organization:[a-z0-9-_]+/)?cradl:agent:[a-z0-9-_]+/cradl:run:[a-z0-9-_]+$",
                  "type": "string"
                },
                "runId": {
                  "pattern": "^cradl:run:[a-f0-9]{32}$",
                  "type": "string"
                },
                "variablesFileUrl": {
                  "pattern": "^http://localhost.*|^https://.*",
                  "type": "string",
                  "nullable": true
                },
                "events": {
                  "type": "array",
                  "items": {
                    "type": "object"
                  }
                },
                "resourceIds": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                },
                "status": {
                  "type": "string",
                  "enum": [
                    "archived",
                    "exported",
                    "pending-export",
                    "pending-predictions",
                    "ready-for-review",
                    "review-completed",
                    "succeeded-predictions",
                    "error",
                    "running",
                    "completed",
                    "review-in-progress"
                  ]
                }
              },
              "additionalProperties": false
            }
          }
        },
        "additionalProperties": false
      },
      "PostActionRuns": {
        "title": "POST /actions/{actionId}/runs",
        "type": "object",
        "properties": {
          "input": {
            "type": "object"
          },
          "metadata": {
            "type": "object"
          },
          "noAgentRunUpdate": {
            "type": "boolean"
          },
          "agentRunId": {
            "pattern": "^((cradl|las):organization:[a-z0-9-_]+/)?cradl:agent:[a-z0-9-_]+/cradl:run:[a-z0-9-_]+$",
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "Action": {
        "title": "action",
        "required": [
          "actionId",
          "createdBy",
          "createdTime",
          "description",
          "metadata",
          "name",
          "updatedBy",
          "updatedTime"
        ],
        "type": "object",
        "properties": {
          "updatedTime": {
            "pattern": "^[0-9]{4}-?[0-9]{2}-?[0-9]{2}( |T)?[0-9]{2}:?[0-9]{2}:?[0-9]{2}(.[0-9]{1,6})?(Z|[+][0-9]{2}(:|)[0-9]{2})$",
            "type": "string",
            "nullable": true
          },
          "agentId": {
            "pattern": "^cradl:agent:[a-f0-9]{32}$",
            "type": "string",
            "nullable": true
          },
          "metadata": {
            "type": "object",
            "nullable": true
          },
          "updatedBy": {
            "maxLength": 4096,
            "type": "string",
            "nullable": true
          },
          "description": {
            "maxLength": 4096,
            "type": "string",
            "nullable": true
          },
          "secretId": {
            "pattern": "^(cradl|las):secret:[a-f0-9]{32}$",
            "type": "string",
            "nullable": true
          },
          "enabled": {
            "type": "boolean"
          },
          "functionId": {
            "pattern": "^((cradl|las):organization:[a-z0-9-_]+/)?cradl:function:[a-z0-9-_]+$",
            "type": "string"
          },
          "createdBy": {
            "maxLength": 4096,
            "type": "string"
          },
          "name": {
            "maxLength": 4096,
            "type": "string",
            "nullable": true
          },
          "actionId": {
            "pattern": "^cradl:action:[a-f0-9]{32}$",
            "type": "string"
          },
          "createdTime": {
            "pattern": "^[0-9]{4}-?[0-9]{2}-?[0-9]{2}( |T)?[0-9]{2}:?[0-9]{2}:?[0-9]{2}(.[0-9]{1,6})?(Z|[+][0-9]{2}(:|)[0-9]{2})$",
            "type": "string"
          },
          "connectionId": {
            "pattern": "^cradl:connection:[a-f0-9]{32}$",
            "type": "string",
            "nullable": true
          },
          "id": {
            "pattern": "^((cradl|las):organization:[a-z0-9-_]+/)?cradl:action:[a-z0-9-_]+$",
            "type": "string"
          },
          "config": {
            "type": "object",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "User": {
        "title": "user",
        "required": [
          "createdBy",
          "createdTime",
          "description",
          "metadata",
          "name",
          "updatedBy",
          "updatedTime",
          "userId"
        ],
        "type": "object",
        "properties": {
          "updatedTime": {
            "pattern": "^[0-9]{4}-?[0-9]{2}-?[0-9]{2}( |T)?[0-9]{2}:?[0-9]{2}:?[0-9]{2}(.[0-9]{1,6})?(Z|[+][0-9]{2}(:|)[0-9]{2})$",
            "type": "string",
            "nullable": true
          },
          "metadata": {
            "type": "object",
            "nullable": true
          },
          "updatedBy": {
            "maxLength": 4096,
            "type": "string",
            "nullable": true
          },
          "roleIds": {
            "type": "array",
            "items": {
              "pattern": "^(cradl|las):role:[0-9A-Za-z-_]{1,32}$",
              "type": "string"
            },
            "nullable": true
          },
          "statusReason": {
            "maxLength": 4096,
            "type": "string",
            "nullable": true
          },
          "createdBy": {
            "maxLength": 4096,
            "type": "string"
          },
          "profileId": {
            "pattern": "^(cradl|las):profile:[a-f0-9]{32}$",
            "type": "string",
            "nullable": true
          },
          "name": {
            "maxLength": 4096,
            "type": "string",
            "nullable": true
          },
          "createdTime": {
            "pattern": "^[0-9]{4}-?[0-9]{2}-?[0-9]{2}( |T)?[0-9]{2}:?[0-9]{2}:?[0-9]{2}(.[0-9]{1,6})?(Z|[+][0-9]{2}(:|)[0-9]{2})$",
            "type": "string"
          },
          "description": {
            "maxLength": 4096,
            "type": "string",
            "nullable": true
          },
          "userId": {
            "pattern": "^(cradl|las):user:[0-9A-Za-z-_]+$",
            "type": "string"
          },
          "status": {
            "type": "string",
            "enum": [
              "inactive",
              "active",
              "invite_pending"
            ]
          }
        },
        "additionalProperties": false
      },
      "PostRoles": {
        "title": "POST /roles",
        "required": [
          "permissions"
        ],
        "type": "object",
        "properties": {
          "metadata": {
            "type": "object"
          },
          "permissions": {
            "type": "array",
            "items": {
              "required": [
                "action",
                "effect",
                "resourceId"
              ],
              "type": "object",
              "properties": {
                "resourceId": {
                  "minLength": 1,
                  "type": "string"
                },
                "effect": {
                  "type": "string",
                  "enum": [
                    "allow",
                    "deny"
                  ]
                },
                "action": {
                  "type": "string",
                  "enum": [
                    "read",
                    "write",
                    "delegate",
                    "*"
                  ]
                }
              },
              "additionalProperties": false
            }
          },
          "name": {
            "maxLength": 4096,
            "type": "string",
            "nullable": true
          },
          "description": {
            "maxLength": 4096,
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "PostPredictions": {
        "title": "POST /predictions",
        "required": [
          "documentId",
          "modelId"
        ],
        "type": "object",
        "properties": {
          "metadata": {
            "type": "object"
          },
          "trainingId": {
            "pattern": "^las:model-training:[a-z0-9-_]+$",
            "type": "string"
          },
          "modelId": {
            "pattern": "^(|(cradl|las):organization:[a-z0-9-_]+/)(cradl|las):model:[a-z0-9-_]+$",
            "type": "string"
          },
          "postprocessConfig": {
            "oneOf": [
              {
                "required": [
                  "strategy"
                ],
                "type": "object",
                "properties": {
                  "strategy": {
                    "type": "string",
                    "enum": [
                      "BEST_FIRST"
                    ]
                  },
                  "outputFormat": {
                    "type": "string",
                    "enum": [
                      "v1",
                      "v2"
                    ]
                  }
                },
                "additionalProperties": false
              },
              {
                "required": [
                  "parameters",
                  "strategy"
                ],
                "type": "object",
                "properties": {
                  "strategy": {
                    "type": "string",
                    "enum": [
                      "BEST_N_PAGES"
                    ]
                  },
                  "outputFormat": {
                    "type": "string",
                    "enum": [
                      "v1",
                      "v2"
                    ]
                  },
                  "parameters": {
                    "required": [
                      "n"
                    ],
                    "type": "object",
                    "properties": {
                      "n": {
                        "maximum": 100,
                        "minimum": 1,
                        "type": "integer"
                      },
                      "collapse": {
                        "type": "boolean"
                      }
                    }
                  }
                },
                "additionalProperties": false
              }
            ]
          },
          "rotation": {
            "type": "integer",
            "enum": [
              0,
              90,
              180,
              270
            ]
          },
          "description": {
            "maxLength": 4096,
            "type": "string",
            "nullable": true
          },
          "agentRunId": {
            "pattern": "^((cradl|las):organization:[a-z0-9-_]+/)?cradl:agent:[a-z0-9-_]+/cradl:run:[a-z0-9-_]+$",
            "type": "string"
          },
          "async": {
            "type": "boolean"
          },
          "preprocessConfig": {
            "minProperties": 1,
            "type": "object",
            "properties": {
              "trimMargins": {
                "type": "boolean"
              },
              "startPage": {
                "type": "integer"
              },
              "rotation": {
                "type": "integer",
                "enum": [
                  0,
                  90,
                  180,
                  270
                ]
              },
              "useGhostScript": {
                "type": "boolean"
              },
              "pages": {
                "maxItems": 100,
                "type": "array",
                "items": {
                  "type": "integer"
                }
              },
              "usePoppler": {
                "type": "boolean"
              },
              "padToFit": {
                "type": "boolean"
              },
              "useTextDetection": {
                "type": "boolean"
              },
              "maxPages": {
                "maximum": 100,
                "minimum": 1,
                "type": "integer"
              },
              "optimizeDimensions": {
                "type": "boolean"
              },
              "deskewImage": {
                "type": "boolean"
              },
              "autoRotate": {
                "type": "boolean"
              },
              "imageQuality": {
                "type": "string",
                "enum": [
                  "LOW",
                  "HIGH"
                ]
              }
            },
            "additionalProperties": false
          },
          "maxPages": {
            "maximum": 100,
            "minimum": 1,
            "type": "integer"
          },
          "name": {
            "maxLength": 4096,
            "type": "string",
            "nullable": true
          },
          "documentId": {
            "pattern": "^(cradl|las):document:[a-f0-9]{32}$",
            "type": "string"
          },
          "autoRotate": {
            "type": "boolean"
          },
          "imageQuality": {
            "type": "string",
            "enum": [
              "LOW",
              "HIGH"
            ]
          }
        },
        "additionalProperties": false
      },
      "Function": {
        "title": "function",
        "required": [
          "createdBy",
          "createdTime",
          "description",
          "functionId",
          "metadata",
          "name",
          "updatedBy",
          "updatedTime"
        ],
        "type": "object",
        "properties": {
          "updatedTime": {
            "pattern": "^[0-9]{4}-?[0-9]{2}-?[0-9]{2}( |T)?[0-9]{2}:?[0-9]{2}:?[0-9]{2}(.[0-9]{1,6})?(Z|[+][0-9]{2}(:|)[0-9]{2})$",
            "type": "string",
            "nullable": true
          },
          "metadata": {
            "type": "object",
            "nullable": true
          },
          "updatedBy": {
            "maxLength": 4096,
            "type": "string",
            "nullable": true
          },
          "managedCodeId": {
            "pattern": "^cradl:managed-code:[0-9A-Za-z-_]+$",
            "type": "string",
            "nullable": true
          },
          "description": {
            "maxLength": 4096,
            "type": "string",
            "nullable": true
          },
          "runtime": {
            "type": "string",
            "enum": [
              "python",
              "nodejs"
            ]
          },
          "organizationId": {
            "pattern": "^(cradl|las):organization:[a-z0-9-_]+$",
            "type": "string"
          },
          "functionId": {
            "pattern": "^cradl:function:[a-z0-9-_]+$",
            "type": "string"
          },
          "createdBy": {
            "maxLength": 4096,
            "type": "string"
          },
          "name": {
            "maxLength": 4096,
            "type": "string",
            "nullable": true
          },
          "createdTime": {
            "pattern": "^[0-9]{4}-?[0-9]{2}-?[0-9]{2}( |T)?[0-9]{2}:?[0-9]{2}:?[0-9]{2}(.[0-9]{1,6})?(Z|[+][0-9]{2}(:|)[0-9]{2})$",
            "type": "string"
          },
          "fileUrl": {
            "pattern": "^http://localhost.*|^https://.*",
            "type": "string",
            "nullable": true
          },
          "id": {
            "pattern": "^((cradl|las):organization:[a-z0-9-_]+/)?cradl:function:[a-z0-9-_]+$",
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "PatchAgentId": {
        "title": "PATCH /agents/agentId",
        "minProperties": 1,
        "type": "object",
        "properties": {
          "metadata": {
            "type": "object"
          },
          "name": {
            "maxLength": 4096,
            "type": "string",
            "nullable": true
          },
          "description": {
            "maxLength": 4096,
            "type": "string",
            "nullable": true
          },
          "resourceIds": {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        },
        "additionalProperties": false
      },
      "Agents": {
        "title": "agents",
        "required": [
          "agents",
          "nextToken"
        ],
        "type": "object",
        "properties": {
          "nextToken": {
            "maxLength": 4096,
            "type": "string",
            "nullable": true
          },
          "agents": {
            "type": "array",
            "items": {
              "required": [
                "agentId",
                "createdBy",
                "createdTime",
                "description",
                "metadata",
                "name",
                "updatedBy",
                "updatedTime"
              ],
              "type": "object",
              "properties": {
                "updatedTime": {
                  "pattern": "^[0-9]{4}-?[0-9]{2}-?[0-9]{2}( |T)?[0-9]{2}:?[0-9]{2}:?[0-9]{2}(.[0-9]{1,6})?(Z|[+][0-9]{2}(:|)[0-9]{2})$",
                  "type": "string",
                  "nullable": true
                },
                "agentId": {
                  "pattern": "^cradl:agent:[a-f0-9]{32}$",
                  "type": "string"
                },
                "metadata": {
                  "type": "object",
                  "nullable": true
                },
                "updatedBy": {
                  "maxLength": 4096,
                  "type": "string",
                  "nullable": true
                },
                "statusReason": {
                  "maxLength": 4096,
                  "type": "string",
                  "nullable": true
                },
                "createdBy": {
                  "maxLength": 4096,
                  "type": "string"
                },
                "name": {
                  "maxLength": 4096,
                  "type": "string",
                  "nullable": true
                },
                "createdTime": {
                  "pattern": "^[0-9]{4}-?[0-9]{2}-?[0-9]{2}( |T)?[0-9]{2}:?[0-9]{2}:?[0-9]{2}(.[0-9]{1,6})?(Z|[+][0-9]{2}(:|)[0-9]{2})$",
                  "type": "string"
                },
                "description": {
                  "maxLength": 4096,
                  "type": "string",
                  "nullable": true
                },
                "id": {
                  "pattern": "^((cradl|las):organization:[a-z0-9-_]+/)?cradl:agent:[a-z0-9-_]+$",
                  "type": "string"
                },
                "resourceIds": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                },
                "status": {
                  "type": "string",
                  "enum": [
                    "inactive",
                    "active"
                  ]
                }
              },
              "additionalProperties": false
            }
          }
        },
        "additionalProperties": false
      },
      "Error": {
        "title": "Error Schema",
        "type": "object",
        "properties": {
          "message": {
            "type": "string"
          }
        }
      },
      "Logs": {
        "title": "logs",
        "required": [
          "logs",
          "nextToken"
        ],
        "type": "object",
        "properties": {
          "resourceId": {
            "pattern": "^((cradl|las):[a-z0-9-_]+:[a-z0-9-_]+)(/((cradl|las):[a-z0-9-_]+:[a-z0-9-_]+))*$",
            "type": "string"
          },
          "nextToken": {
            "maxLength": 4096,
            "type": "string",
            "nullable": true
          },
          "workflowExecutionId": {
            "pattern": "^las:workflow-execution:[a-f0-9]{32}$",
            "type": "string"
          },
          "logs": {
            "type": "array",
            "items": {
              "required": [
                "logId",
                "resourceId",
                "startTime",
                "workflowExecutionId",
                "workflowId"
              ],
              "type": "object",
              "properties": {
                "resourceId": {
                  "pattern": "^((cradl|las):[a-z0-9-_]+:[a-z0-9-_]+)(/((cradl|las):[a-z0-9-_]+:[a-z0-9-_]+))*$",
                  "type": "string",
                  "nullable": true
                },
                "logId": {
                  "pattern": "^(cradl|las):log:[a-f0-9]{32}$",
                  "type": "string"
                },
                "workflowExecutionId": {
                  "pattern": "^las:workflow-execution:[a-f0-9]{32}$",
                  "type": "string",
                  "nullable": true
                },
                "startTime": {
                  "pattern": "^[0-9]{4}-?[0-9]{2}-?[0-9]{2}( |T)?[0-9]{2}:?[0-9]{2}:?[0-9]{2}(.[0-9]{1,6})?(Z|[+][0-9]{2}(:|)[0-9]{2})$",
                  "type": "string",
                  "nullable": true
                },
                "workflowId": {
                  "pattern": "^las:workflow:[a-f0-9]{32}$",
                  "type": "string",
                  "nullable": true
                },
                "events": {
                  "type": "array",
                  "items": {
                    "type": "object"
                  }
                }
              },
              "additionalProperties": false
            }
          },
          "workflowId": {
            "pattern": "^las:workflow:[a-f0-9]{32}$",
            "type": "string"
          },
          "order": {
            "type": "string",
            "enum": [
              "ascending",
              "descending"
            ]
          }
        },
        "additionalProperties": false
      },
      "PatchHookId": {
        "title": "PATCH /hooks/hookId",
        "minProperties": 1,
        "type": "object",
        "properties": {
          "metadata": {
            "type": "object"
          },
          "functionId": {
            "pattern": "^((cradl|las):organization:[a-z0-9-_]+/)?cradl:function:[a-z0-9-_]+$",
            "type": "string"
          },
          "falseActionId": {
            "pattern": "^((cradl|las):organization:[a-z0-9-_]+/)?cradl:action:[a-z0-9-_]+$",
            "type": "string"
          },
          "trueActionId": {
            "pattern": "^((cradl|las):organization:[a-z0-9-_]+/)?cradl:action:[a-z0-9-_]+$",
            "type": "string"
          },
          "name": {
            "maxLength": 4096,
            "type": "string",
            "nullable": true
          },
          "description": {
            "maxLength": 4096,
            "type": "string",
            "nullable": true
          },
          "trigger": {
            "type": "string",
            "enum": [
              "ActionRun has Completed",
              "Document is Created",
              "Email is Received",
              "Prediction is Created",
              "ValidationTask has Completed",
              "ValidationTask is Created"
            ]
          },
          "config": {
            "type": "object"
          },
          "enabled": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "PatchFunctionId": {
        "title": "PATCH /functions/{functionId}",
        "minProperties": 1,
        "type": "object",
        "properties": {
          "metadata": {
            "type": "object"
          },
          "name": {
            "maxLength": 4096,
            "type": "string",
            "nullable": true
          },
          "description": {
            "maxLength": 4096,
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "PatchUserId": {
        "title": "PATCH /users/{userId}",
        "minProperties": 1,
        "type": "object",
        "properties": {
          "metadata": {
            "type": "object"
          },
          "roleIds": {
            "type": "array",
            "items": {
              "pattern": "^(cradl|las):role:[0-9A-Za-z-_]{1,32}$",
              "type": "string"
            }
          },
          "name": {
            "maxLength": 4096,
            "type": "string",
            "nullable": true
          },
          "description": {
            "maxLength": 4096,
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "PatchValidationId": {
        "title": "PATCH /validations/validationId",
        "minProperties": 1,
        "type": "object",
        "properties": {
          "metadata": {
            "type": "object"
          },
          "name": {
            "maxLength": 4096,
            "type": "string",
            "nullable": true
          },
          "description": {
            "maxLength": 4096,
            "type": "string",
            "nullable": true
          },
          "config": {
            "type": "object"
          }
        },
        "additionalProperties": false
      },
      "PatchOrganizationId": {
        "title": "PATCH /organizations/organizationId",
        "minProperties": 1,
        "type": "object",
        "properties": {
          "metadata": {
            "type": "object"
          },
          "paymentMethodId": {
            "pattern": "^(cradl|las):payment-method:[a-f0-9]{32}$",
            "type": "string",
            "nullable": true
          },
          "name": {
            "maxLength": 4096,
            "type": "string",
            "nullable": true
          },
          "description": {
            "maxLength": 4096,
            "type": "string",
            "nullable": true
          },
          "documentRetentionInDays": {
            "maximum": 1825,
            "minimum": 1,
            "type": "integer"
          },
          "planId": {
            "pattern": "^(|(cradl|las):organization:[a-z0-9-_]+/)(cradl|las):plan:[a-z0-9-_]+(|:@[a-z0-9-_]+|:[0-9]+)$",
            "type": "string"
          },
          "url": {
            "maxLength": 4096,
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "groundTruthList": {
        "anyOf": [
          {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "properties": {
                "confidence": {
                  "type": "number",
                  "minimum": 0,
                  "maximum": 1
                },
                "pages": {
                  "type": "array",
                  "items": {
                    "type": "integer"
                  },
                  "maxItems": 10
                },
                "label": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 36,
                  "pattern": "^[0-9A-Za-z-_]+$"
                },
                "rawValue": {
                  "anyOf": [
                    {
                      "type": "string",
                      "minLength": 0,
                      "maxLength": 1024,
                      "nullable": true
                    },
                    {
                      "type": "boolean",
                      "nullable": true
                    },
                    {
                      "type": "number",
                      "nullable": true
                    }
                  ]
                },
                "value": {
                  "anyOf": [
                    {
                      "type": "string",
                      "minLength": 0,
                      "maxLength": 1024,
                      "nullable": true
                    },
                    {
                      "type": "boolean",
                      "nullable": true
                    },
                    {
                      "type": "number",
                      "nullable": true
                    },
                    {
                      "$ref": "#/components/schemas/groundTruthList",
                      "nullable": true
                    }
                  ]
                }
              },
              "required": [
                "label",
                "value"
              ]
            }
          },
          {
            "type": "array",
            "items": {
              "type": "array",
              "items": {
                "type": "object",
                "additionalProperties": false,
                "properties": {
                  "confidence": {
                    "type": "number",
                    "minimum": 0,
                    "maximum": 1
                  },
                  "pages": {
                    "type": "array",
                    "items": {
                      "type": "integer"
                    },
                    "maxItems": 10
                  },
                  "label": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 36,
                    "pattern": "^[0-9A-Za-z-_]+$"
                  },
                  "rawValue": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 0,
                        "maxLength": 1024,
                        "nullable": true
                      },
                      {
                        "type": "boolean",
                        "nullable": true
                      },
                      {
                        "type": "number",
                        "nullable": true
                      }
                    ]
                  },
                  "value": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 0,
                        "maxLength": 1024,
                        "nullable": true
                      },
                      {
                        "type": "boolean",
                        "nullable": true
                      },
                      {
                        "type": "number",
                        "nullable": true
                      },
                      {
                        "$ref": "#/components/schemas/groundTruthList",
                        "nullable": true
                      }
                    ]
                  }
                },
                "required": [
                  "label",
                  "value"
                ]
              }
            }
          }
        ]
      }
    },
    "securitySchemes": {
      "OAuth2": {
        "type": "oauth2",
        "flows": {
          "clientCredentials": {
            "tokenUrl": "https://auth.cradl.ai/oauth2/token",
            "scopes": {
              "actions.runs:read": "Read permissions",
              "actions.runs:write": "Write permissions",
              "actions:read": "Read permissions",
              "actions:write": "Write permissions",
              "agents.runs:read": "Read permissions",
              "agents.runs:write": "Write permissions",
              "agents.statistics:read": "Read permissions",
              "agents:read": "Read permissions",
              "agents:write": "Write permissions",
              "appclients:read": "Read permissions",
              "appclients:write": "Write permissions",
              "documents:read": "Read permissions",
              "documents:write": "Write permissions",
              "hooks.runs:read": "Read permissions",
              "hooks.runs:write": "Write permissions",
              "hooks:read": "Read permissions",
              "hooks:write": "Write permissions",
              "logs:read": "Read permissions",
              "models:read": "Read permissions",
              "models:write": "Write permissions",
              "organizations:read": "Read permissions",
              "organizations:write": "Write permissions",
              "predictions:read": "Read permissions",
              "predictions:write": "Write permissions",
              "users:read": "Read permissions",
              "users:write": "Write permissions",
              "validations.tasks:read": "Read permissions",
              "validations.tasks:write": "Write permissions",
              "validations:read": "Read permissions",
              "validations:write": "Write permissions",
              "workflows:read": "Read permissions",
              "workflows:write": "Write permissions"
            }
          }
        }
      }
    }
  }
}