{
  "openapi": "3.1.2",
  "info": {
    "title": "authtempo API",
    "version": "0.2.0",
    "description": "The authtempo API: every route that core can serve under `basePath`. A deployment serves the operations of its features only.\n\n- A route that a config key turns off answers 404 `not_found`.\n- With a `baseURL` list, a request to an origin outside the list answers 421 `host_not_allowed` before any route. In each rule, `baseURL` is the entry of the request's origin.\n- With `limits.noClientIp` set to `refuse`, a request with no client IP answers 403 `client_ip_missing` before any route.\n- A POST with an `Origin` header that is not `baseURL` and not in `trustedOrigins` answers 403 `origin_not_trusted`. Two routes are exceptions: Apple's form post callback, and the token endpoint, which states its own rule.\n- A failure answers `{ \"error\": \"<code>\" }` with the status of the code. `hook_refused` also carries `message`, as does the `invalid_body` of an SSO or SCIM manager write. `not_ready` also carries `reason`, and `sso_required` carries `detail`. So does the `conflict` of a sign-up confirm that lost its claim.\n- A request body past the cap of its route answers 413 `body_too_large`, and no parse runs. The cap is 65536 bytes, except 262144 bytes for `POST /social/apple/callback`, and 4194304 bytes for `POST /sso/setup/connection`, and 8388608 bytes for `POST /sso/connections/create` and `POST /sso/connections/update`. A JSON body nested deeper than 16 or with more than 4096 items outside its strings answers 400 `invalid_body`, and no parse runs. A form body of more than 128 pairs gets the refusal of a bad form of its route, and no parse runs. The SCIM routes answer their own SCIM 413 past 1048576 bytes. A SCIM body nested deeper than 16 or with more than 65536 items answers SCIM 400 `invalidSyntax`, and no parse runs.\n- The body reads of the routes with a cap above 65536 bytes hold at most 16777216 bytes at once in one isolate. The reads of signed-in users hold at most 8388608 bytes of it, and every other read at most 8388608 bytes. One IP holds at most 4194304 bytes, and so does the one client with no IP. A user may hold the cap of its read, with one large read at a time. A client is its IP before a session and its user after one. A read past that answers 503 `body_busy` with `Retry-After: 1`, and no parse runs. The SCIM routes answer their own SCIM 503.\n- Such a read that gets no bytes for 10 s answers 408 `body_timeout`. So does a read that runs past the time of its cap at 131072 bytes per second, at least 10 s. For a signed-in user the rate is 262144 bytes per second. No parse runs. The SCIM routes answer their own SCIM 408.\n- With `hooks.request.before`, each route can answer 403 `hook_refused` with `message`, or 500 `hook_failed`.\n- An unhandled error answers 500 `internal` and writes one log line.\n- An `OPTIONS` preflight from a trusted origin answers 204 with the CORS headers. A preflight from another origin answers 403, except where a route states its own rule.\n- Every answer to a trusted origin carries the CORS headers with credentials."
  },
  "servers": [
    {
      "url": "{origin}{basePath}",
      "variables": {
        "origin": {
          "default": "https://api.example.com"
        },
        "basePath": {
          "default": "/auth"
        }
      }
    }
  ],
  "tags": [
    {
      "name": "session",
      "description": "The routes of the feature `session`. Config: always on; default on.",
      "x-authtempo-feature": "session",
      "x-authtempo-default": "on"
    },
    {
      "name": "account",
      "description": "The routes of the feature `account`. Config: always on; default on.",
      "x-authtempo-feature": "account",
      "x-authtempo-default": "on"
    },
    {
      "name": "accountDelete",
      "description": "The routes of the feature `accountDelete`. Config: account.delete; default on.",
      "x-authtempo-feature": "accountDelete",
      "x-authtempo-default": "on"
    },
    {
      "name": "magicLink",
      "description": "The routes of the feature `magicLink`. Config: always on; default on.",
      "x-authtempo-feature": "magicLink",
      "x-authtempo-default": "on"
    },
    {
      "name": "social",
      "description": "The routes of the feature `social`. Config: social; default off.",
      "x-authtempo-feature": "social",
      "x-authtempo-default": "off"
    },
    {
      "name": "passkey",
      "description": "The routes of the feature `passkey`. Config: passkey; default off.",
      "x-authtempo-feature": "passkey",
      "x-authtempo-default": "off"
    },
    {
      "name": "passkeyRelatedOrigins",
      "description": "The routes of the feature `passkeyRelatedOrigins`. Config: passkey.relatedOrigins; default off.",
      "x-authtempo-feature": "passkeyRelatedOrigins",
      "x-authtempo-default": "off"
    },
    {
      "name": "passkeySignUp",
      "description": "The routes of the feature `passkeySignUp`. Config: passkey.signUp; default off.",
      "x-authtempo-feature": "passkeySignUp",
      "x-authtempo-default": "off"
    },
    {
      "name": "password",
      "description": "The routes of the feature `password`. Config: password; default off.",
      "x-authtempo-feature": "password",
      "x-authtempo-default": "off"
    },
    {
      "name": "totp",
      "description": "The routes of the feature `totp`. Config: totp; default off.",
      "x-authtempo-feature": "totp",
      "x-authtempo-default": "off"
    },
    {
      "name": "emailOtp",
      "description": "The routes of the feature `emailOtp`. Config: emailOtp; default on.",
      "x-authtempo-feature": "emailOtp",
      "x-authtempo-default": "on"
    },
    {
      "name": "emailOtpReset",
      "description": "The routes of the feature `emailOtpReset`. Config: emailOtp and password; default off.",
      "x-authtempo-feature": "emailOtpReset",
      "x-authtempo-default": "off"
    },
    {
      "name": "handoff",
      "description": "The routes of the feature `handoff`. Config: handoff; default off.",
      "x-authtempo-feature": "handoff",
      "x-authtempo-default": "off"
    },
    {
      "name": "organizations",
      "description": "The routes of the feature `organizations`. Config: organizations; default off.",
      "x-authtempo-feature": "organizations",
      "x-authtempo-default": "off"
    },
    {
      "name": "dynamicRoles",
      "description": "The routes of the feature `dynamicRoles`. Config: organizations.dynamicRoles; default off.",
      "x-authtempo-feature": "dynamicRoles",
      "x-authtempo-default": "off"
    },
    {
      "name": "teams",
      "description": "The routes of the feature `teams`. Config: organizations.teams; default off.",
      "x-authtempo-feature": "teams",
      "x-authtempo-default": "off"
    },
    {
      "name": "tokens",
      "description": "The routes of the feature `tokens`. Config: always on; default on.",
      "x-authtempo-feature": "tokens",
      "x-authtempo-default": "on"
    },
    {
      "name": "jwtMint",
      "description": "The routes of the feature `jwtMint`. Config: jwtMint; default on.",
      "x-authtempo-feature": "jwtMint",
      "x-authtempo-default": "on"
    },
    {
      "name": "operator",
      "description": "The routes of the feature `operator`. Config: operator; default off.",
      "x-authtempo-feature": "operator",
      "x-authtempo-default": "off"
    },
    {
      "name": "operatorUsers",
      "description": "The routes of the feature `operatorUsers`. Config: operator.users; default off.",
      "x-authtempo-feature": "operatorUsers",
      "x-authtempo-default": "off"
    },
    {
      "name": "operatorImpersonation",
      "description": "The routes of the feature `operatorImpersonation`. Config: operator.impersonation; default off.",
      "x-authtempo-feature": "operatorImpersonation",
      "x-authtempo-default": "off"
    },
    {
      "name": "operatorSso",
      "description": "The routes of the feature `operatorSso`. Config: operator and sso; default off.",
      "x-authtempo-feature": "operatorSso",
      "x-authtempo-default": "off"
    },
    {
      "name": "oauth",
      "description": "The routes of the feature `oauth`. Config: oauth; default off.",
      "x-authtempo-feature": "oauth",
      "x-authtempo-default": "off"
    },
    {
      "name": "oauthRegistration",
      "description": "The routes of the feature `oauthRegistration`. Config: oauth.registration.dynamic; default off.",
      "x-authtempo-feature": "oauthRegistration",
      "x-authtempo-default": "off"
    },
    {
      "name": "oauthDevice",
      "description": "The routes of the feature `oauthDevice`. Config: oauth.device; default off.",
      "x-authtempo-feature": "oauthDevice",
      "x-authtempo-default": "off"
    },
    {
      "name": "sso",
      "description": "The routes of the feature `sso`. Config: sso; default off.",
      "x-authtempo-feature": "sso",
      "x-authtempo-default": "off"
    },
    {
      "name": "ssoSetup",
      "description": "The routes of the feature `ssoSetup`. Config: sso.setup; default off.",
      "x-authtempo-feature": "ssoSetup",
      "x-authtempo-default": "off"
    },
    {
      "name": "scim",
      "description": "The routes of the feature `scim`. Config: scim; default off.",
      "x-authtempo-feature": "scim",
      "x-authtempo-default": "off"
    },
    {
      "name": "openapi",
      "description": "The routes of the feature `openapi`. Config: openapi; default off.",
      "x-authtempo-feature": "openapi",
      "x-authtempo-default": "off"
    },
    {
      "name": "health",
      "description": "The routes of the feature `health`. Config: always on; default on.",
      "x-authtempo-feature": "health",
      "x-authtempo-default": "on"
    },
    {
      "name": "readiness",
      "description": "The routes of the feature `readiness`. Config: observe.readiness; default off.",
      "x-authtempo-feature": "readiness",
      "x-authtempo-default": "off"
    },
    {
      "name": "username",
      "description": "The routes of the feature `username`. Config: username; default off.",
      "x-authtempo-feature": "username",
      "x-authtempo-default": "off"
    },
    {
      "name": "phone",
      "description": "The routes of the feature `phone`. Config: phone; default off.",
      "x-authtempo-feature": "phone",
      "x-authtempo-default": "off"
    },
    {
      "name": "anonymous",
      "description": "The routes of the feature `anonymous`. Config: anonymous; default off.",
      "x-authtempo-feature": "anonymous",
      "x-authtempo-default": "off"
    },
    {
      "name": "multiSession",
      "description": "The routes of the feature `multiSession`. Config: multiSession; default off.",
      "x-authtempo-feature": "multiSession",
      "x-authtempo-default": "off"
    },
    {
      "name": "socialIdToken",
      "description": "The routes of the feature `socialIdToken`. Config: social.google or social.apple; default off.",
      "x-authtempo-feature": "socialIdToken",
      "x-authtempo-default": "off"
    }
  ],
  "paths": {
    "/session": {
      "get": {
        "tags": [
          "session"
        ],
        "summary": "GET /session",
        "operationId": "get-session",
        "externalDocs": {
          "url": "https://authtempo.com/docs/reference/routes/#get-session"
        },
        "x-authtempo-feature": "session",
        "x-authtempo-default": "on",
        "responses": {
          "200": {
            "description": "The answer.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SessionReadAnswer"
                }
              }
            }
          },
          "401": {
            "description": "The codes: [`unauthorized`](https://authtempo.com/docs/reference/errors/#unauthorized).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "unauthorized"
                      ]
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "The codes: [`not_found`](https://authtempo.com/docs/reference/errors/#not_found).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "not_found"
                      ]
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "The codes: [`internal`](https://authtempo.com/docs/reference/errors/#internal).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "internal"
                      ]
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "sessionCookie": []
          },
          {
            "sessionBearer": []
          }
        ]
      }
    },
    "/session/refresh": {
      "post": {
        "tags": [
          "session"
        ],
        "summary": "POST /session/refresh",
        "operationId": "post-session-refresh",
        "externalDocs": {
          "url": "https://authtempo.com/docs/reference/routes/#post-session-refresh"
        },
        "x-authtempo-feature": "session",
        "x-authtempo-default": "on",
        "responses": {
          "200": {
            "description": "The answer.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SessionAnswer"
                }
              }
            }
          },
          "401": {
            "description": "The codes: [`unauthorized`](https://authtempo.com/docs/reference/errors/#unauthorized).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "unauthorized"
                      ]
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "The codes: [`origin_not_trusted`](https://authtempo.com/docs/reference/errors/#origin_not_trusted).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "origin_not_trusted"
                      ]
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "The codes: [`not_found`](https://authtempo.com/docs/reference/errors/#not_found).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "not_found"
                      ]
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "The codes: [`internal`](https://authtempo.com/docs/reference/errors/#internal).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "internal"
                      ]
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "sessionCookie": []
          },
          {
            "sessionBearer": []
          }
        ]
      }
    },
    "/sign-out": {
      "post": {
        "tags": [
          "session"
        ],
        "summary": "POST /sign-out",
        "operationId": "post-sign-out",
        "externalDocs": {
          "url": "https://authtempo.com/docs/reference/routes/#post-sign-out"
        },
        "x-authtempo-feature": "session",
        "x-authtempo-default": "on",
        "responses": {
          "200": {
            "description": "The answer.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OkAnswer"
                }
              }
            }
          },
          "403": {
            "description": "The codes: [`impersonation_session`](https://authtempo.com/docs/reference/errors/#impersonation_session), [`origin_not_trusted`](https://authtempo.com/docs/reference/errors/#origin_not_trusted).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "impersonation_session",
                        "origin_not_trusted"
                      ]
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "The codes: [`not_found`](https://authtempo.com/docs/reference/errors/#not_found).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "not_found"
                      ]
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "The codes: [`internal`](https://authtempo.com/docs/reference/errors/#internal).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "internal"
                      ]
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {},
          {
            "sessionCookie": []
          },
          {
            "sessionBearer": []
          }
        ]
      }
    },
    "/reauth": {
      "post": {
        "tags": [
          "account"
        ],
        "summary": "POST /reauth",
        "operationId": "post-reauth",
        "externalDocs": {
          "url": "https://authtempo.com/docs/reference/routes/#post-reauth"
        },
        "x-authtempo-feature": "account",
        "x-authtempo-default": "on",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "password": {
                    "type": "string",
                    "maxLength": 1024
                  },
                  "emailCode": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 16
                  },
                  "passkey": {
                    "type": "object",
                    "properties": {
                      "id": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 1024
                      },
                      "response": {
                        "type": "object",
                        "properties": {
                          "clientDataJSON": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 16384
                          }
                        },
                        "required": [
                          "clientDataJSON"
                        ],
                        "additionalProperties": {}
                      }
                    },
                    "required": [
                      "id",
                      "response"
                    ],
                    "additionalProperties": {}
                  },
                  "code": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64
                  }
                },
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The answer.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "freshUntil": {
                      "type": "string",
                      "format": "date-time",
                      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                    }
                  },
                  "required": [
                    "freshUntil"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "The codes: [`invalid_body`](https://authtempo.com/docs/reference/errors/#invalid_body), [`invalid_code`](https://authtempo.com/docs/reference/errors/#invalid_code), [`too_many_attempts`](https://authtempo.com/docs/reference/errors/#too_many_attempts), [`invalid_token`](https://authtempo.com/docs/reference/errors/#invalid_token), [`token_expired`](https://authtempo.com/docs/reference/errors/#token_expired), [`passkey_failed`](https://authtempo.com/docs/reference/errors/#passkey_failed), [`totp_not_enabled`](https://authtempo.com/docs/reference/errors/#totp_not_enabled).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "invalid_body",
                        "invalid_code",
                        "too_many_attempts",
                        "invalid_token",
                        "token_expired",
                        "passkey_failed",
                        "totp_not_enabled"
                      ]
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The codes: [`unauthorized`](https://authtempo.com/docs/reference/errors/#unauthorized), [`invalid_credentials`](https://authtempo.com/docs/reference/errors/#invalid_credentials).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "unauthorized",
                        "invalid_credentials"
                      ]
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "The codes: [`impersonation_session`](https://authtempo.com/docs/reference/errors/#impersonation_session), [`anonymous_refused`](https://authtempo.com/docs/reference/errors/#anonymous_refused), [`origin_not_trusted`](https://authtempo.com/docs/reference/errors/#origin_not_trusted).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "impersonation_session",
                        "anonymous_refused",
                        "origin_not_trusted"
                      ]
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "The codes: [`not_found`](https://authtempo.com/docs/reference/errors/#not_found).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "not_found"
                      ]
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "The codes: [`rate_limited`](https://authtempo.com/docs/reference/errors/#rate_limited).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "rate_limited"
                      ]
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "The codes: [`internal`](https://authtempo.com/docs/reference/errors/#internal).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "internal"
                      ]
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "sessionCookie": []
          },
          {
            "sessionBearer": []
          }
        ]
      }
    },
    "/reauth/passkey/options": {
      "post": {
        "tags": [
          "passkey"
        ],
        "summary": "POST /reauth/passkey/options",
        "operationId": "post-reauth-passkey-options",
        "externalDocs": {
          "url": "https://authtempo.com/docs/reference/routes/#post-reauth-passkey-options"
        },
        "x-authtempo-feature": "passkey",
        "x-authtempo-default": "off",
        "responses": {
          "200": {
            "description": "The answer.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RequestOptionsJson"
                }
              }
            }
          },
          "401": {
            "description": "The codes: [`unauthorized`](https://authtempo.com/docs/reference/errors/#unauthorized).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "unauthorized"
                      ]
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "The codes: [`impersonation_session`](https://authtempo.com/docs/reference/errors/#impersonation_session), [`anonymous_refused`](https://authtempo.com/docs/reference/errors/#anonymous_refused), [`origin_not_trusted`](https://authtempo.com/docs/reference/errors/#origin_not_trusted).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "impersonation_session",
                        "anonymous_refused",
                        "origin_not_trusted"
                      ]
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "The codes: [`not_found`](https://authtempo.com/docs/reference/errors/#not_found).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "not_found"
                      ]
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "The codes: [`rate_limited`](https://authtempo.com/docs/reference/errors/#rate_limited).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "rate_limited"
                      ]
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "The codes: [`internal`](https://authtempo.com/docs/reference/errors/#internal).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "internal"
                      ]
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "sessionCookie": []
          },
          {
            "sessionBearer": []
          }
        ]
      }
    },
    "/reauth/email": {
      "post": {
        "tags": [
          "emailOtp"
        ],
        "summary": "POST /reauth/email",
        "operationId": "post-reauth-email",
        "externalDocs": {
          "url": "https://authtempo.com/docs/reference/routes/#post-reauth-email"
        },
        "x-authtempo-feature": "emailOtp",
        "x-authtempo-default": "on",
        "responses": {
          "200": {
            "description": "The answer.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SentAnswer"
                }
              }
            }
          },
          "401": {
            "description": "The codes: [`unauthorized`](https://authtempo.com/docs/reference/errors/#unauthorized).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "unauthorized"
                      ]
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "The codes: [`impersonation_session`](https://authtempo.com/docs/reference/errors/#impersonation_session), [`anonymous_refused`](https://authtempo.com/docs/reference/errors/#anonymous_refused), [`origin_not_trusted`](https://authtempo.com/docs/reference/errors/#origin_not_trusted).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "impersonation_session",
                        "anonymous_refused",
                        "origin_not_trusted"
                      ]
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "The codes: [`not_found`](https://authtempo.com/docs/reference/errors/#not_found).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "not_found"
                      ]
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "The codes: [`rate_limited`](https://authtempo.com/docs/reference/errors/#rate_limited).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "rate_limited"
                      ]
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "The codes: [`internal`](https://authtempo.com/docs/reference/errors/#internal).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "internal"
                      ]
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "sessionCookie": []
          },
          {
            "sessionBearer": []
          }
        ]
      }
    },
    "/sessions": {
      "get": {
        "tags": [
          "account"
        ],
        "summary": "GET /sessions",
        "operationId": "get-sessions",
        "externalDocs": {
          "url": "https://authtempo.com/docs/reference/routes/#get-sessions"
        },
        "x-authtempo-feature": "account",
        "x-authtempo-default": "on",
        "responses": {
          "200": {
            "description": "The answer.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "sessions": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string"
                          },
                          "createdAt": {
                            "type": "string",
                            "format": "date-time",
                            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                          },
                          "lastSeenAt": {
                            "type": "string",
                            "format": "date-time",
                            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                          },
                          "expiresAt": {
                            "type": "string",
                            "format": "date-time",
                            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                          },
                          "freshAt": {
                            "anyOf": [
                              {
                                "type": "string",
                                "format": "date-time",
                                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "ip": {
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "userAgent": {
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "activeOrganizationId": {
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "activeTeamId": {
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "current": {
                            "type": "boolean"
                          },
                          "impersonation": {
                            "type": "boolean"
                          }
                        },
                        "required": [
                          "id",
                          "createdAt",
                          "lastSeenAt",
                          "expiresAt",
                          "freshAt",
                          "ip",
                          "userAgent",
                          "activeOrganizationId",
                          "activeTeamId",
                          "current",
                          "impersonation"
                        ],
                        "additionalProperties": false
                      }
                    }
                  },
                  "required": [
                    "sessions"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "401": {
            "description": "The codes: [`unauthorized`](https://authtempo.com/docs/reference/errors/#unauthorized).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "unauthorized"
                      ]
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "The codes: [`not_found`](https://authtempo.com/docs/reference/errors/#not_found).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "not_found"
                      ]
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "The codes: [`internal`](https://authtempo.com/docs/reference/errors/#internal).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "internal"
                      ]
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "sessionCookie": []
          },
          {
            "sessionBearer": []
          }
        ]
      }
    },
    "/sessions/revoke": {
      "post": {
        "tags": [
          "account"
        ],
        "summary": "POST /sessions/revoke",
        "operationId": "post-sessions-revoke",
        "externalDocs": {
          "url": "https://authtempo.com/docs/reference/routes/#post-sessions-revoke"
        },
        "x-authtempo-feature": "account",
        "x-authtempo-default": "on",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64
                  }
                },
                "required": [
                  "id"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The answer.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "ok": {
                      "type": "boolean",
                      "const": true
                    },
                    "current": {
                      "type": "boolean"
                    }
                  },
                  "required": [
                    "ok",
                    "current"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "The codes: [`invalid_body`](https://authtempo.com/docs/reference/errors/#invalid_body).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "invalid_body"
                      ]
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The codes: [`unauthorized`](https://authtempo.com/docs/reference/errors/#unauthorized).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "unauthorized"
                      ]
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "The codes: [`session_not_fresh`](https://authtempo.com/docs/reference/errors/#session_not_fresh), [`origin_not_trusted`](https://authtempo.com/docs/reference/errors/#origin_not_trusted).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "session_not_fresh",
                        "origin_not_trusted"
                      ]
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "The codes: [`not_found`](https://authtempo.com/docs/reference/errors/#not_found).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "not_found"
                      ]
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "The codes: [`rate_limited`](https://authtempo.com/docs/reference/errors/#rate_limited).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "rate_limited"
                      ]
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "The codes: [`internal`](https://authtempo.com/docs/reference/errors/#internal).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "internal"
                      ]
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "sessionCookie": []
          },
          {
            "sessionBearer": []
          }
        ]
      }
    },
    "/sessions/revoke-others": {
      "post": {
        "tags": [
          "account"
        ],
        "summary": "POST /sessions/revoke-others",
        "operationId": "post-sessions-revoke-others",
        "externalDocs": {
          "url": "https://authtempo.com/docs/reference/routes/#post-sessions-revoke-others"
        },
        "x-authtempo-feature": "account",
        "x-authtempo-default": "on",
        "responses": {
          "200": {
            "description": "The answer.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "ended": {
                      "type": "integer",
                      "minimum": 0,
                      "maximum": 9007199254740991
                    }
                  },
                  "required": [
                    "ended"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "401": {
            "description": "The codes: [`unauthorized`](https://authtempo.com/docs/reference/errors/#unauthorized).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "unauthorized"
                      ]
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "The codes: [`session_not_fresh`](https://authtempo.com/docs/reference/errors/#session_not_fresh), [`origin_not_trusted`](https://authtempo.com/docs/reference/errors/#origin_not_trusted).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "session_not_fresh",
                        "origin_not_trusted"
                      ]
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "The codes: [`not_found`](https://authtempo.com/docs/reference/errors/#not_found).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "not_found"
                      ]
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "The codes: [`rate_limited`](https://authtempo.com/docs/reference/errors/#rate_limited).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "rate_limited"
                      ]
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "The codes: [`internal`](https://authtempo.com/docs/reference/errors/#internal).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "internal"
                      ]
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "sessionCookie": []
          },
          {
            "sessionBearer": []
          }
        ]
      }
    },
    "/sessions/revoke-all": {
      "post": {
        "tags": [
          "account"
        ],
        "summary": "POST /sessions/revoke-all",
        "operationId": "post-sessions-revoke-all",
        "externalDocs": {
          "url": "https://authtempo.com/docs/reference/routes/#post-sessions-revoke-all"
        },
        "x-authtempo-feature": "account",
        "x-authtempo-default": "on",
        "responses": {
          "200": {
            "description": "The answer.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "ended": {
                      "type": "integer",
                      "minimum": 0,
                      "maximum": 9007199254740991
                    }
                  },
                  "required": [
                    "ended"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "401": {
            "description": "The codes: [`unauthorized`](https://authtempo.com/docs/reference/errors/#unauthorized).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "unauthorized"
                      ]
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "The codes: [`session_not_fresh`](https://authtempo.com/docs/reference/errors/#session_not_fresh), [`origin_not_trusted`](https://authtempo.com/docs/reference/errors/#origin_not_trusted).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "session_not_fresh",
                        "origin_not_trusted"
                      ]
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "The codes: [`not_found`](https://authtempo.com/docs/reference/errors/#not_found).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "not_found"
                      ]
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "The codes: [`rate_limited`](https://authtempo.com/docs/reference/errors/#rate_limited).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "rate_limited"
                      ]
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "The codes: [`internal`](https://authtempo.com/docs/reference/errors/#internal).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "internal"
                      ]
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "sessionCookie": []
          },
          {
            "sessionBearer": []
          }
        ]
      }
    },
    "/user/update": {
      "post": {
        "tags": [
          "account"
        ],
        "summary": "POST /user/update",
        "operationId": "post-user-update",
        "externalDocs": {
          "url": "https://authtempo.com/docs/reference/routes/#post-user-update"
        },
        "x-authtempo-feature": "account",
        "x-authtempo-default": "on",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "name": {
                    "anyOf": [
                      {
                        "type": "string",
                        "maxLength": 400
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "image": {
                    "anyOf": [
                      {
                        "type": "string",
                        "maxLength": 4096
                      },
                      {
                        "type": "null"
                      }
                    ]
                  }
                },
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The answer.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "user": {
                      "$ref": "#/components/schemas/UserJson"
                    }
                  },
                  "required": [
                    "user"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "The codes: [`invalid_body`](https://authtempo.com/docs/reference/errors/#invalid_body).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "invalid_body"
                      ]
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The codes: [`unauthorized`](https://authtempo.com/docs/reference/errors/#unauthorized).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "unauthorized"
                      ]
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "The codes: [`email_unverified`](https://authtempo.com/docs/reference/errors/#email_unverified), [`hook_refused`](https://authtempo.com/docs/reference/errors/#hook_refused), [`anonymous_refused`](https://authtempo.com/docs/reference/errors/#anonymous_refused), [`origin_not_trusted`](https://authtempo.com/docs/reference/errors/#origin_not_trusted).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "email_unverified",
                        "hook_refused",
                        "anonymous_refused",
                        "origin_not_trusted"
                      ]
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "The codes: [`not_found`](https://authtempo.com/docs/reference/errors/#not_found).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "not_found"
                      ]
                    }
                  }
                }
              }
            }
          },
          "409": {
            "description": "The codes: [`conflict`](https://authtempo.com/docs/reference/errors/#conflict).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "conflict"
                      ]
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "The codes: [`rate_limited`](https://authtempo.com/docs/reference/errors/#rate_limited).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "rate_limited"
                      ]
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "The codes: [`hook_failed`](https://authtempo.com/docs/reference/errors/#hook_failed), [`internal`](https://authtempo.com/docs/reference/errors/#internal).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "hook_failed",
                        "internal"
                      ]
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "sessionCookie": []
          },
          {
            "sessionBearer": []
          }
        ]
      }
    },
    "/user/change-email": {
      "post": {
        "tags": [
          "account"
        ],
        "summary": "POST /user/change-email",
        "operationId": "post-user-change-email",
        "externalDocs": {
          "url": "https://authtempo.com/docs/reference/routes/#post-user-change-email"
        },
        "x-authtempo-feature": "account",
        "x-authtempo-default": "on",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "newEmail": {
                    "type": "string",
                    "maxLength": 320
                  },
                  "method": {
                    "type": "string",
                    "enum": [
                      "link",
                      "code"
                    ]
                  },
                  "next": {
                    "type": "string",
                    "maxLength": 2048
                  }
                },
                "required": [
                  "newEmail"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The answer.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SentAnswer"
                }
              }
            }
          },
          "400": {
            "description": "The codes: [`invalid_body`](https://authtempo.com/docs/reference/errors/#invalid_body).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "invalid_body"
                      ]
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The codes: [`unauthorized`](https://authtempo.com/docs/reference/errors/#unauthorized).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "unauthorized"
                      ]
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "The codes: [`email_unverified`](https://authtempo.com/docs/reference/errors/#email_unverified), [`session_not_fresh`](https://authtempo.com/docs/reference/errors/#session_not_fresh), [`impersonation_session`](https://authtempo.com/docs/reference/errors/#impersonation_session), [`anonymous_refused`](https://authtempo.com/docs/reference/errors/#anonymous_refused), [`origin_not_trusted`](https://authtempo.com/docs/reference/errors/#origin_not_trusted).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "email_unverified",
                        "session_not_fresh",
                        "impersonation_session",
                        "anonymous_refused",
                        "origin_not_trusted"
                      ]
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "The codes: [`not_found`](https://authtempo.com/docs/reference/errors/#not_found).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "not_found"
                      ]
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "The codes: [`rate_limited`](https://authtempo.com/docs/reference/errors/#rate_limited).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "rate_limited"
                      ]
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "The codes: [`internal`](https://authtempo.com/docs/reference/errors/#internal).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "internal"
                      ]
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "sessionCookie": []
          },
          {
            "sessionBearer": []
          }
        ]
      }
    },
    "/user/change-email/confirm": {
      "get": {
        "tags": [
          "account"
        ],
        "summary": "GET /user/change-email/confirm",
        "operationId": "get-user-change-email-confirm",
        "externalDocs": {
          "url": "https://authtempo.com/docs/reference/routes/#get-user-change-email-confirm"
        },
        "x-authtempo-feature": "account",
        "x-authtempo-default": "on",
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^ec_[A-Za-z0-9_-]{43}$"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "A page of core.",
            "content": {
              "text/html": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "302": {
            "description": "A redirect. A failure carries its code in the `auth_error` query parameter of the location.",
            "headers": {
              "Location": {
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "description": "The codes: [`invalid_token`](https://authtempo.com/docs/reference/errors/#invalid_token). A browser flow can get the code in the `auth_error` query parameter of a 302 in place of this answer.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "invalid_token"
                      ]
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "The codes: [`not_found`](https://authtempo.com/docs/reference/errors/#not_found).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "not_found"
                      ]
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "The codes: [`internal`](https://authtempo.com/docs/reference/errors/#internal).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "internal"
                      ]
                    }
                  }
                }
              }
            }
          }
        },
        "security": []
      },
      "post": {
        "tags": [
          "account"
        ],
        "summary": "POST /user/change-email/confirm",
        "operationId": "post-user-change-email-confirm",
        "externalDocs": {
          "url": "https://authtempo.com/docs/reference/routes/#post-user-change-email-confirm"
        },
        "x-authtempo-feature": "account",
        "x-authtempo-default": "on",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "token": {
                    "type": "string",
                    "maxLength": 64
                  }
                },
                "required": [
                  "token"
                ]
              }
            },
            "application/x-www-form-urlencoded": {
              "schema": {
                "type": "object",
                "properties": {
                  "token": {
                    "type": "string",
                    "maxLength": 64
                  }
                },
                "required": [
                  "token"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The answer.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "user": {
                      "$ref": "#/components/schemas/UserJson"
                    }
                  },
                  "required": [
                    "user"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "302": {
            "description": "A redirect. A failure carries its code in the `auth_error` query parameter of the location.",
            "headers": {
              "Location": {
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "description": "The codes: [`invalid_token`](https://authtempo.com/docs/reference/errors/#invalid_token), [`token_expired`](https://authtempo.com/docs/reference/errors/#token_expired). A browser flow can get the code in the `auth_error` query parameter of a 302 in place of this answer.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "invalid_token",
                        "token_expired"
                      ]
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "The codes: [`hook_refused`](https://authtempo.com/docs/reference/errors/#hook_refused), [`origin_not_trusted`](https://authtempo.com/docs/reference/errors/#origin_not_trusted). A browser flow can get the code in the `auth_error` query parameter of a 302 in place of this answer.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "hook_refused",
                        "origin_not_trusted"
                      ]
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "The codes: [`not_found`](https://authtempo.com/docs/reference/errors/#not_found).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "not_found"
                      ]
                    }
                  }
                }
              }
            }
          },
          "409": {
            "description": "The codes: [`email_taken`](https://authtempo.com/docs/reference/errors/#email_taken), [`conflict`](https://authtempo.com/docs/reference/errors/#conflict). A browser flow can get the code in the `auth_error` query parameter of a 302 in place of this answer.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "email_taken",
                        "conflict"
                      ]
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "The codes: [`rate_limited`](https://authtempo.com/docs/reference/errors/#rate_limited). A browser flow can get the code in the `auth_error` query parameter of a 302 in place of this answer.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "rate_limited"
                      ]
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "The codes: [`hook_failed`](https://authtempo.com/docs/reference/errors/#hook_failed), [`internal`](https://authtempo.com/docs/reference/errors/#internal). A browser flow can get the code in the `auth_error` query parameter of a 302 in place of this answer.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "hook_failed",
                        "internal"
                      ]
                    }
                  }
                }
              }
            }
          }
        },
        "security": []
      }
    },
    "/user/change-email/verify": {
      "post": {
        "tags": [
          "emailOtp"
        ],
        "summary": "POST /user/change-email/verify",
        "operationId": "post-user-change-email-verify",
        "externalDocs": {
          "url": "https://authtempo.com/docs/reference/routes/#post-user-change-email-verify"
        },
        "x-authtempo-feature": "emailOtp",
        "x-authtempo-default": "on",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "code": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 16
                  }
                },
                "required": [
                  "code"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The answer.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "user": {
                      "$ref": "#/components/schemas/UserJson"
                    }
                  },
                  "required": [
                    "user"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "The codes: [`invalid_body`](https://authtempo.com/docs/reference/errors/#invalid_body), [`invalid_code`](https://authtempo.com/docs/reference/errors/#invalid_code), [`too_many_attempts`](https://authtempo.com/docs/reference/errors/#too_many_attempts).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "invalid_body",
                        "invalid_code",
                        "too_many_attempts"
                      ]
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The codes: [`unauthorized`](https://authtempo.com/docs/reference/errors/#unauthorized).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "unauthorized"
                      ]
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "The codes: [`hook_refused`](https://authtempo.com/docs/reference/errors/#hook_refused), [`impersonation_session`](https://authtempo.com/docs/reference/errors/#impersonation_session), [`anonymous_refused`](https://authtempo.com/docs/reference/errors/#anonymous_refused), [`origin_not_trusted`](https://authtempo.com/docs/reference/errors/#origin_not_trusted).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "hook_refused",
                        "impersonation_session",
                        "anonymous_refused",
                        "origin_not_trusted"
                      ]
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "The codes: [`not_found`](https://authtempo.com/docs/reference/errors/#not_found).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "not_found"
                      ]
                    }
                  }
                }
              }
            }
          },
          "409": {
            "description": "The codes: [`email_taken`](https://authtempo.com/docs/reference/errors/#email_taken), [`conflict`](https://authtempo.com/docs/reference/errors/#conflict).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "email_taken",
                        "conflict"
                      ]
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "The codes: [`rate_limited`](https://authtempo.com/docs/reference/errors/#rate_limited).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "rate_limited"
                      ]
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "The codes: [`hook_failed`](https://authtempo.com/docs/reference/errors/#hook_failed), [`internal`](https://authtempo.com/docs/reference/errors/#internal).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "hook_failed",
                        "internal"
                      ]
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "sessionCookie": []
          },
          {
            "sessionBearer": []
          }
        ]
      }
    },
    "/user/delete": {
      "post": {
        "tags": [
          "accountDelete"
        ],
        "summary": "POST /user/delete",
        "operationId": "post-user-delete",
        "externalDocs": {
          "url": "https://authtempo.com/docs/reference/routes/#post-user-delete"
        },
        "x-authtempo-feature": "accountDelete",
        "x-authtempo-default": "on",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {},
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The answer.",
            "content": {
              "application/json": {
                "schema": {
                  "anyOf": [
                    {
                      "$ref": "#/components/schemas/OkAnswer"
                    },
                    {
                      "$ref": "#/components/schemas/SentAnswer"
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "description": "The codes: [`invalid_body`](https://authtempo.com/docs/reference/errors/#invalid_body).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "invalid_body"
                      ]
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The codes: [`unauthorized`](https://authtempo.com/docs/reference/errors/#unauthorized).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "unauthorized"
                      ]
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "The codes: [`session_not_fresh`](https://authtempo.com/docs/reference/errors/#session_not_fresh), [`hook_refused`](https://authtempo.com/docs/reference/errors/#hook_refused), [`impersonation_session`](https://authtempo.com/docs/reference/errors/#impersonation_session), [`anonymous_refused`](https://authtempo.com/docs/reference/errors/#anonymous_refused), [`origin_not_trusted`](https://authtempo.com/docs/reference/errors/#origin_not_trusted).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "session_not_fresh",
                        "hook_refused",
                        "impersonation_session",
                        "anonymous_refused",
                        "origin_not_trusted"
                      ]
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "The codes: [`not_found`](https://authtempo.com/docs/reference/errors/#not_found).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "not_found"
                      ]
                    }
                  }
                }
              }
            }
          },
          "409": {
            "description": "The codes: [`sole_owner`](https://authtempo.com/docs/reference/errors/#sole_owner), [`delete_too_large`](https://authtempo.com/docs/reference/errors/#delete_too_large), [`conflict`](https://authtempo.com/docs/reference/errors/#conflict).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "sole_owner",
                        "delete_too_large",
                        "conflict"
                      ]
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "The codes: [`rate_limited`](https://authtempo.com/docs/reference/errors/#rate_limited).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "rate_limited"
                      ]
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "The codes: [`hook_failed`](https://authtempo.com/docs/reference/errors/#hook_failed), [`internal`](https://authtempo.com/docs/reference/errors/#internal).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "hook_failed",
                        "internal"
                      ]
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "sessionCookie": []
          },
          {
            "sessionBearer": []
          }
        ]
      }
    },
    "/user/delete/confirm": {
      "get": {
        "tags": [
          "accountDelete"
        ],
        "summary": "GET /user/delete/confirm",
        "operationId": "get-user-delete-confirm",
        "externalDocs": {
          "url": "https://authtempo.com/docs/reference/routes/#get-user-delete-confirm"
        },
        "x-authtempo-feature": "accountDelete",
        "x-authtempo-default": "on",
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^ad_[A-Za-z0-9_-]{43}$"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "A page of core.",
            "content": {
              "text/html": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "302": {
            "description": "A redirect. A failure carries its code in the `auth_error` query parameter of the location.",
            "headers": {
              "Location": {
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "description": "The codes: [`invalid_token`](https://authtempo.com/docs/reference/errors/#invalid_token). A browser flow can get the code in the `auth_error` query parameter of a 302 in place of this answer.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "invalid_token"
                      ]
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "The codes: [`not_found`](https://authtempo.com/docs/reference/errors/#not_found).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "not_found"
                      ]
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "The codes: [`internal`](https://authtempo.com/docs/reference/errors/#internal).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "internal"
                      ]
                    }
                  }
                }
              }
            }
          }
        },
        "security": []
      },
      "post": {
        "tags": [
          "accountDelete"
        ],
        "summary": "POST /user/delete/confirm",
        "operationId": "post-user-delete-confirm",
        "externalDocs": {
          "url": "https://authtempo.com/docs/reference/routes/#post-user-delete-confirm"
        },
        "x-authtempo-feature": "accountDelete",
        "x-authtempo-default": "on",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "token": {
                    "type": "string",
                    "maxLength": 64
                  }
                },
                "required": [
                  "token"
                ]
              }
            },
            "application/x-www-form-urlencoded": {
              "schema": {
                "type": "object",
                "properties": {
                  "token": {
                    "type": "string",
                    "maxLength": 64
                  }
                },
                "required": [
                  "token"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The answer.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OkAnswer"
                }
              }
            }
          },
          "302": {
            "description": "A redirect. A failure carries its code in the `auth_error` query parameter of the location.",
            "headers": {
              "Location": {
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "description": "The codes: [`invalid_token`](https://authtempo.com/docs/reference/errors/#invalid_token). A browser flow can get the code in the `auth_error` query parameter of a 302 in place of this answer.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "invalid_token"
                      ]
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The codes: [`unauthorized`](https://authtempo.com/docs/reference/errors/#unauthorized). A browser flow can get the code in the `auth_error` query parameter of a 302 in place of this answer.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "unauthorized"
                      ]
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "The codes: [`hook_refused`](https://authtempo.com/docs/reference/errors/#hook_refused), [`impersonation_session`](https://authtempo.com/docs/reference/errors/#impersonation_session), [`anonymous_refused`](https://authtempo.com/docs/reference/errors/#anonymous_refused), [`origin_not_trusted`](https://authtempo.com/docs/reference/errors/#origin_not_trusted). A browser flow can get the code in the `auth_error` query parameter of a 302 in place of this answer.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "hook_refused",
                        "impersonation_session",
                        "anonymous_refused",
                        "origin_not_trusted"
                      ]
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "The codes: [`not_found`](https://authtempo.com/docs/reference/errors/#not_found).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "not_found"
                      ]
                    }
                  }
                }
              }
            }
          },
          "409": {
            "description": "The codes: [`sole_owner`](https://authtempo.com/docs/reference/errors/#sole_owner), [`delete_too_large`](https://authtempo.com/docs/reference/errors/#delete_too_large), [`conflict`](https://authtempo.com/docs/reference/errors/#conflict). A browser flow can get the code in the `auth_error` query parameter of a 302 in place of this answer.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "sole_owner",
                        "delete_too_large",
                        "conflict"
                      ]
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "The codes: [`rate_limited`](https://authtempo.com/docs/reference/errors/#rate_limited). A browser flow can get the code in the `auth_error` query parameter of a 302 in place of this answer.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "rate_limited"
                      ]
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "The codes: [`hook_failed`](https://authtempo.com/docs/reference/errors/#hook_failed), [`internal`](https://authtempo.com/docs/reference/errors/#internal). A browser flow can get the code in the `auth_error` query parameter of a 302 in place of this answer.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "hook_failed",
                        "internal"
                      ]
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "sessionCookie": []
          },
          {
            "sessionBearer": []
          }
        ]
      }
    },
    "/multi-session": {
      "get": {
        "tags": [
          "multiSession"
        ],
        "summary": "GET /multi-session",
        "operationId": "get-multi-session",
        "externalDocs": {
          "url": "https://authtempo.com/docs/reference/routes/#get-multi-session"
        },
        "x-authtempo-feature": "multiSession",
        "x-authtempo-default": "off",
        "responses": {
          "200": {
            "description": "The answer.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "sessions": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "sessionId": {
                            "type": "string"
                          },
                          "active": {
                            "type": "boolean"
                          },
                          "user": {
                            "type": "object",
                            "properties": {
                              "id": {
                                "type": "string"
                              },
                              "name": {
                                "type": [
                                  "string",
                                  "null"
                                ]
                              },
                              "email": {
                                "type": [
                                  "string",
                                  "null"
                                ]
                              },
                              "username": {
                                "type": [
                                  "string",
                                  "null"
                                ]
                              },
                              "image": {
                                "type": [
                                  "string",
                                  "null"
                                ]
                              }
                            },
                            "required": [
                              "id",
                              "name",
                              "email",
                              "username",
                              "image"
                            ],
                            "additionalProperties": false
                          }
                        },
                        "required": [
                          "sessionId",
                          "active",
                          "user"
                        ],
                        "additionalProperties": false
                      }
                    }
                  },
                  "required": [
                    "sessions"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "401": {
            "description": "The codes: [`unauthorized`](https://authtempo.com/docs/reference/errors/#unauthorized).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "unauthorized"
                      ]
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "The codes: [`impersonation_session`](https://authtempo.com/docs/reference/errors/#impersonation_session).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "impersonation_session"
                      ]
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "The codes: [`not_found`](https://authtempo.com/docs/reference/errors/#not_found).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "not_found"
                      ]
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "The codes: [`rate_limited`](https://authtempo.com/docs/reference/errors/#rate_limited).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "rate_limited"
                      ]
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "The codes: [`internal`](https://authtempo.com/docs/reference/errors/#internal).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "internal"
                      ]
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "sessionCookie": []
          }
        ]
      }
    },
    "/multi-session/switch": {
      "post": {
        "tags": [
          "multiSession"
        ],
        "summary": "POST /multi-session/switch",
        "operationId": "post-multi-session-switch",
        "externalDocs": {
          "url": "https://authtempo.com/docs/reference/routes/#post-multi-session-switch"
        },
        "x-authtempo-feature": "multiSession",
        "x-authtempo-default": "off",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "sessionId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64
                  }
                },
                "required": [
                  "sessionId"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The answer.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SessionAnswer"
                }
              }
            }
          },
          "400": {
            "description": "The codes: [`invalid_body`](https://authtempo.com/docs/reference/errors/#invalid_body).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "invalid_body"
                      ]
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The codes: [`unauthorized`](https://authtempo.com/docs/reference/errors/#unauthorized).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "unauthorized"
                      ]
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "The codes: [`impersonation_session`](https://authtempo.com/docs/reference/errors/#impersonation_session), [`origin_not_trusted`](https://authtempo.com/docs/reference/errors/#origin_not_trusted).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "impersonation_session",
                        "origin_not_trusted"
                      ]
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "The codes: [`not_found`](https://authtempo.com/docs/reference/errors/#not_found).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "not_found"
                      ]
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "The codes: [`rate_limited`](https://authtempo.com/docs/reference/errors/#rate_limited).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "rate_limited"
                      ]
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "The codes: [`internal`](https://authtempo.com/docs/reference/errors/#internal).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "internal"
                      ]
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "sessionCookie": []
          }
        ]
      }
    },
    "/multi-session/sign-out": {
      "post": {
        "tags": [
          "multiSession"
        ],
        "summary": "POST /multi-session/sign-out",
        "operationId": "post-multi-session-sign-out",
        "externalDocs": {
          "url": "https://authtempo.com/docs/reference/routes/#post-multi-session-sign-out"
        },
        "x-authtempo-feature": "multiSession",
        "x-authtempo-default": "off",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "sessionId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64
                  }
                },
                "required": [
                  "sessionId"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The answer.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OkAnswer"
                }
              }
            }
          },
          "400": {
            "description": "The codes: [`invalid_body`](https://authtempo.com/docs/reference/errors/#invalid_body).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "invalid_body"
                      ]
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The codes: [`unauthorized`](https://authtempo.com/docs/reference/errors/#unauthorized).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "unauthorized"
                      ]
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "The codes: [`impersonation_session`](https://authtempo.com/docs/reference/errors/#impersonation_session), [`origin_not_trusted`](https://authtempo.com/docs/reference/errors/#origin_not_trusted).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "impersonation_session",
                        "origin_not_trusted"
                      ]
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "The codes: [`not_found`](https://authtempo.com/docs/reference/errors/#not_found).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "not_found"
                      ]
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "The codes: [`rate_limited`](https://authtempo.com/docs/reference/errors/#rate_limited).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "rate_limited"
                      ]
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "The codes: [`internal`](https://authtempo.com/docs/reference/errors/#internal).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "internal"
                      ]
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "sessionCookie": []
          }
        ]
      }
    },
    "/username/available": {
      "get": {
        "tags": [
          "username"
        ],
        "summary": "GET /username/available",
        "operationId": "get-username-available",
        "externalDocs": {
          "url": "https://authtempo.com/docs/reference/routes/#get-username-available"
        },
        "x-authtempo-feature": "username",
        "x-authtempo-default": "off",
        "parameters": [
          {
            "name": "username",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "maxLength": 256
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The answer.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "available": {
                      "type": "boolean"
                    }
                  },
                  "required": [
                    "available"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "The codes: [`invalid_body`](https://authtempo.com/docs/reference/errors/#invalid_body), [`username_invalid`](https://authtempo.com/docs/reference/errors/#username_invalid).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "invalid_body",
                        "username_invalid"
                      ]
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "The codes: [`not_found`](https://authtempo.com/docs/reference/errors/#not_found).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "not_found"
                      ]
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "The codes: [`rate_limited`](https://authtempo.com/docs/reference/errors/#rate_limited).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "rate_limited"
                      ]
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "The codes: [`internal`](https://authtempo.com/docs/reference/errors/#internal).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "internal"
                      ]
                    }
                  }
                }
              }
            }
          }
        },
        "security": []
      }
    },
    "/user/username": {
      "post": {
        "tags": [
          "username"
        ],
        "summary": "POST /user/username",
        "operationId": "post-user-username",
        "externalDocs": {
          "url": "https://authtempo.com/docs/reference/routes/#post-user-username"
        },
        "x-authtempo-feature": "username",
        "x-authtempo-default": "off",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "username": {
                    "type": "string",
                    "maxLength": 256
                  }
                },
                "required": [
                  "username"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The answer.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "username": {
                      "type": "string"
                    },
                    "displayUsername": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "username",
                    "displayUsername"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "The codes: [`invalid_body`](https://authtempo.com/docs/reference/errors/#invalid_body), [`username_invalid`](https://authtempo.com/docs/reference/errors/#username_invalid).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "invalid_body",
                        "username_invalid"
                      ]
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The codes: [`unauthorized`](https://authtempo.com/docs/reference/errors/#unauthorized).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "unauthorized"
                      ]
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "The codes: [`email_unverified`](https://authtempo.com/docs/reference/errors/#email_unverified), [`session_not_fresh`](https://authtempo.com/docs/reference/errors/#session_not_fresh), [`hook_refused`](https://authtempo.com/docs/reference/errors/#hook_refused), [`impersonation_session`](https://authtempo.com/docs/reference/errors/#impersonation_session), [`anonymous_refused`](https://authtempo.com/docs/reference/errors/#anonymous_refused), [`origin_not_trusted`](https://authtempo.com/docs/reference/errors/#origin_not_trusted).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "email_unverified",
                        "session_not_fresh",
                        "hook_refused",
                        "impersonation_session",
                        "anonymous_refused",
                        "origin_not_trusted"
                      ]
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "The codes: [`not_found`](https://authtempo.com/docs/reference/errors/#not_found).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "not_found"
                      ]
                    }
                  }
                }
              }
            }
          },
          "409": {
            "description": "The codes: [`username_taken`](https://authtempo.com/docs/reference/errors/#username_taken), [`conflict`](https://authtempo.com/docs/reference/errors/#conflict).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "username_taken",
                        "conflict"
                      ]
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "The codes: [`rate_limited`](https://authtempo.com/docs/reference/errors/#rate_limited).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "rate_limited"
                      ]
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "The codes: [`hook_failed`](https://authtempo.com/docs/reference/errors/#hook_failed), [`internal`](https://authtempo.com/docs/reference/errors/#internal).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "hook_failed",
                        "internal"
                      ]
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "sessionCookie": []
          },
          {
            "sessionBearer": []
          }
        ]
      }
    },
    "/identities": {
      "get": {
        "tags": [
          "account"
        ],
        "summary": "GET /identities",
        "operationId": "get-identities",
        "externalDocs": {
          "url": "https://authtempo.com/docs/reference/routes/#get-identities"
        },
        "x-authtempo-feature": "account",
        "x-authtempo-default": "on",
        "responses": {
          "200": {
            "description": "The answer.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "identities": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string"
                          },
                          "provider": {
                            "type": "string"
                          },
                          "email": {
                            "type": "string"
                          },
                          "linkedAt": {
                            "type": "string",
                            "format": "date-time",
                            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                          },
                          "canUnlink": {
                            "type": "boolean"
                          }
                        },
                        "required": [
                          "id",
                          "provider",
                          "linkedAt",
                          "canUnlink"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "password": {
                      "type": "boolean"
                    },
                    "passkeys": {
                      "type": "integer",
                      "minimum": 0,
                      "maximum": 9007199254740991
                    }
                  },
                  "required": [
                    "identities",
                    "password",
                    "passkeys"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "401": {
            "description": "The codes: [`unauthorized`](https://authtempo.com/docs/reference/errors/#unauthorized).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "unauthorized"
                      ]
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "The codes: [`not_found`](https://authtempo.com/docs/reference/errors/#not_found).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "not_found"
                      ]
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "The codes: [`internal`](https://authtempo.com/docs/reference/errors/#internal).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "internal"
                      ]
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "sessionCookie": []
          },
          {
            "sessionBearer": []
          }
        ]
      }
    },
    "/identities/unlink": {
      "post": {
        "tags": [
          "account"
        ],
        "summary": "POST /identities/unlink",
        "operationId": "post-identities-unlink",
        "externalDocs": {
          "url": "https://authtempo.com/docs/reference/routes/#post-identities-unlink"
        },
        "x-authtempo-feature": "account",
        "x-authtempo-default": "on",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64
                  }
                },
                "required": [
                  "id"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The answer.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OkAnswer"
                }
              }
            }
          },
          "400": {
            "description": "The codes: [`invalid_body`](https://authtempo.com/docs/reference/errors/#invalid_body).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "invalid_body"
                      ]
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The codes: [`unauthorized`](https://authtempo.com/docs/reference/errors/#unauthorized).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "unauthorized"
                      ]
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "The codes: [`session_not_fresh`](https://authtempo.com/docs/reference/errors/#session_not_fresh), [`hook_refused`](https://authtempo.com/docs/reference/errors/#hook_refused), [`impersonation_session`](https://authtempo.com/docs/reference/errors/#impersonation_session), [`origin_not_trusted`](https://authtempo.com/docs/reference/errors/#origin_not_trusted).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "session_not_fresh",
                        "hook_refused",
                        "impersonation_session",
                        "origin_not_trusted"
                      ]
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "The codes: [`not_found`](https://authtempo.com/docs/reference/errors/#not_found).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "not_found"
                      ]
                    }
                  }
                }
              }
            }
          },
          "409": {
            "description": "The codes: [`last_credential`](https://authtempo.com/docs/reference/errors/#last_credential), [`conflict`](https://authtempo.com/docs/reference/errors/#conflict).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "last_credential",
                        "conflict"
                      ]
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "The codes: [`rate_limited`](https://authtempo.com/docs/reference/errors/#rate_limited).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "rate_limited"
                      ]
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "The codes: [`hook_failed`](https://authtempo.com/docs/reference/errors/#hook_failed), [`internal`](https://authtempo.com/docs/reference/errors/#internal).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "hook_failed",
                        "internal"
                      ]
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "sessionCookie": []
          },
          {
            "sessionBearer": []
          }
        ]
      }
    },
    "/magic-link/request": {
      "post": {
        "tags": [
          "magicLink"
        ],
        "summary": "POST /magic-link/request",
        "operationId": "post-magic-link-request",
        "externalDocs": {
          "url": "https://authtempo.com/docs/reference/routes/#post-magic-link-request"
        },
        "x-authtempo-feature": "magicLink",
        "x-authtempo-default": "on",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "email": {
                    "type": "string",
                    "maxLength": 320
                  },
                  "next": {
                    "type": "string",
                    "maxLength": 2048
                  }
                },
                "required": [
                  "email"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The answer.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SentAnswer"
                }
              }
            }
          },
          "400": {
            "description": "The codes: [`invalid_body`](https://authtempo.com/docs/reference/errors/#invalid_body), [`captcha_required`](https://authtempo.com/docs/reference/errors/#captcha_required).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "invalid_body",
                        "captcha_required"
                      ]
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "The codes: [`captcha_failed`](https://authtempo.com/docs/reference/errors/#captcha_failed), [`origin_not_trusted`](https://authtempo.com/docs/reference/errors/#origin_not_trusted).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "captcha_failed",
                        "origin_not_trusted"
                      ]
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "The codes: [`not_found`](https://authtempo.com/docs/reference/errors/#not_found).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "not_found"
                      ]
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "The codes: [`rate_limited`](https://authtempo.com/docs/reference/errors/#rate_limited).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "rate_limited"
                      ]
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "The codes: [`internal`](https://authtempo.com/docs/reference/errors/#internal).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "internal"
                      ]
                    }
                  }
                }
              }
            }
          },
          "503": {
            "description": "The codes: [`captcha_unavailable`](https://authtempo.com/docs/reference/errors/#captcha_unavailable).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "captcha_unavailable"
                      ]
                    }
                  }
                }
              }
            }
          }
        },
        "security": []
      }
    },
    "/magic-link/verify": {
      "get": {
        "tags": [
          "magicLink"
        ],
        "summary": "GET /magic-link/verify",
        "operationId": "get-magic-link-verify",
        "externalDocs": {
          "url": "https://authtempo.com/docs/reference/routes/#get-magic-link-verify"
        },
        "x-authtempo-feature": "magicLink",
        "x-authtempo-default": "on",
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^ml_[A-Za-z0-9_-]{43}$"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "A page of core.",
            "content": {
              "text/html": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "302": {
            "description": "A redirect. A failure carries its code in the `auth_error` query parameter of the location.",
            "headers": {
              "Location": {
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "description": "The codes: [`invalid_token`](https://authtempo.com/docs/reference/errors/#invalid_token). A browser flow can get the code in the `auth_error` query parameter of a 302 in place of this answer.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "invalid_token"
                      ]
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "The codes: [`not_found`](https://authtempo.com/docs/reference/errors/#not_found).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "not_found"
                      ]
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "The codes: [`internal`](https://authtempo.com/docs/reference/errors/#internal).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "internal"
                      ]
                    }
                  }
                }
              }
            }
          }
        },
        "security": []
      },
      "post": {
        "tags": [
          "magicLink"
        ],
        "summary": "POST /magic-link/verify",
        "operationId": "post-magic-link-verify",
        "externalDocs": {
          "url": "https://authtempo.com/docs/reference/routes/#post-magic-link-verify"
        },
        "x-authtempo-feature": "magicLink",
        "x-authtempo-default": "on",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "token": {
                    "type": "string",
                    "maxLength": 64
                  },
                  "trustDevice": {
                    "type": "string",
                    "maxLength": 64
                  }
                },
                "required": [
                  "token"
                ]
              }
            },
            "application/x-www-form-urlencoded": {
              "schema": {
                "type": "object",
                "properties": {
                  "token": {
                    "type": "string",
                    "maxLength": 64
                  },
                  "trustDevice": {
                    "type": "string",
                    "maxLength": 64
                  }
                },
                "required": [
                  "token"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The answer.",
            "content": {
              "application/json": {
                "schema": {
                  "anyOf": [
                    {
                      "$ref": "#/components/schemas/SessionSignInAnswer"
                    },
                    {
                      "$ref": "#/components/schemas/TwoFactorChallenge"
                    }
                  ]
                }
              }
            }
          },
          "302": {
            "description": "A redirect. A failure carries its code in the `auth_error` query parameter of the location.",
            "headers": {
              "Location": {
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "description": "The codes: [`invalid_token`](https://authtempo.com/docs/reference/errors/#invalid_token), [`token_expired`](https://authtempo.com/docs/reference/errors/#token_expired). A browser flow can get the code in the `auth_error` query parameter of a 302 in place of this answer.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "invalid_token",
                        "token_expired"
                      ]
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "The codes: [`sign_up_closed`](https://authtempo.com/docs/reference/errors/#sign_up_closed), [`hook_refused`](https://authtempo.com/docs/reference/errors/#hook_refused), [`account_banned`](https://authtempo.com/docs/reference/errors/#account_banned), [`sso_required`](https://authtempo.com/docs/reference/errors/#sso_required), [`origin_not_trusted`](https://authtempo.com/docs/reference/errors/#origin_not_trusted). A browser flow can get the code in the `auth_error` query parameter of a 302 in place of this answer.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "sign_up_closed",
                        "hook_refused",
                        "account_banned",
                        "sso_required",
                        "origin_not_trusted"
                      ]
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "The codes: [`not_found`](https://authtempo.com/docs/reference/errors/#not_found).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "not_found"
                      ]
                    }
                  }
                }
              }
            }
          },
          "409": {
            "description": "The codes: [`conflict`](https://authtempo.com/docs/reference/errors/#conflict). A browser flow can get the code in the `auth_error` query parameter of a 302 in place of this answer.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "conflict"
                      ]
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "The codes: [`hook_failed`](https://authtempo.com/docs/reference/errors/#hook_failed), [`internal`](https://authtempo.com/docs/reference/errors/#internal). A browser flow can get the code in the `auth_error` query parameter of a 302 in place of this answer.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "hook_failed",
                        "internal"
                      ]
                    }
                  }
                }
              }
            }
          }
        },
        "security": []
      }
    },
    "/social/{provider}/start": {
      "get": {
        "tags": [
          "social"
        ],
        "summary": "GET /social/:provider/start",
        "operationId": "get-social-provider-start",
        "externalDocs": {
          "url": "https://authtempo.com/docs/reference/routes/#get-social-provider-start"
        },
        "x-authtempo-feature": "social",
        "x-authtempo-default": "off",
        "parameters": [
          {
            "name": "provider",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^[a-z][a-z0-9-]{0,31}$"
            }
          },
          {
            "name": "next",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 2048
            }
          },
          {
            "name": "data",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 1366
            }
          }
        ],
        "responses": {
          "302": {
            "description": "A redirect. A failure carries its code in the `auth_error` query parameter of the location.",
            "headers": {
              "Location": {
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "description": "The codes: [`invalid_body`](https://authtempo.com/docs/reference/errors/#invalid_body), [`oauth_failed`](https://authtempo.com/docs/reference/errors/#oauth_failed). A browser flow can get the code in the `auth_error` query parameter of a 302 in place of this answer.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "invalid_body",
                        "oauth_failed"
                      ]
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "The codes: [`not_found`](https://authtempo.com/docs/reference/errors/#not_found).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "not_found"
                      ]
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "The codes: [`rate_limited`](https://authtempo.com/docs/reference/errors/#rate_limited). A browser flow can get the code in the `auth_error` query parameter of a 302 in place of this answer.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "rate_limited"
                      ]
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "The codes: [`internal`](https://authtempo.com/docs/reference/errors/#internal).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "internal"
                      ]
                    }
                  }
                }
              }
            }
          }
        },
        "security": []
      }
    },
    "/social/{provider}/link": {
      "post": {
        "tags": [
          "social"
        ],
        "summary": "POST /social/:provider/link",
        "operationId": "post-social-provider-link",
        "externalDocs": {
          "url": "https://authtempo.com/docs/reference/routes/#post-social-provider-link"
        },
        "x-authtempo-feature": "social",
        "x-authtempo-default": "off",
        "parameters": [
          {
            "name": "provider",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^[a-z][a-z0-9-]{0,31}$"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "next": {
                    "type": "string",
                    "maxLength": 2048
                  },
                  "data": {
                    "type": "string",
                    "maxLength": 1366
                  }
                }
              }
            },
            "application/x-www-form-urlencoded": {
              "schema": {
                "type": "object",
                "properties": {
                  "next": {
                    "type": "string",
                    "maxLength": 2048
                  },
                  "data": {
                    "type": "string",
                    "maxLength": 1366
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The answer.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "url": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "url"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "303": {
            "description": "A redirect. A failure is a 302 that carries its code in the `auth_error` query parameter of the location.",
            "headers": {
              "Location": {
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "description": "The codes: [`invalid_body`](https://authtempo.com/docs/reference/errors/#invalid_body), [`oauth_failed`](https://authtempo.com/docs/reference/errors/#oauth_failed). A browser flow can get the code in the `auth_error` query parameter of a 302 in place of this answer.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "invalid_body",
                        "oauth_failed"
                      ]
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The codes: [`unauthorized`](https://authtempo.com/docs/reference/errors/#unauthorized). A browser flow can get the code in the `auth_error` query parameter of a 302 in place of this answer.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "unauthorized"
                      ]
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "The codes: [`email_unverified`](https://authtempo.com/docs/reference/errors/#email_unverified), [`session_not_fresh`](https://authtempo.com/docs/reference/errors/#session_not_fresh), [`impersonation_session`](https://authtempo.com/docs/reference/errors/#impersonation_session), [`anonymous_refused`](https://authtempo.com/docs/reference/errors/#anonymous_refused), [`origin_not_trusted`](https://authtempo.com/docs/reference/errors/#origin_not_trusted). A browser flow can get the code in the `auth_error` query parameter of a 302 in place of this answer.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "email_unverified",
                        "session_not_fresh",
                        "impersonation_session",
                        "anonymous_refused",
                        "origin_not_trusted"
                      ]
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "The codes: [`not_found`](https://authtempo.com/docs/reference/errors/#not_found).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "not_found"
                      ]
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "The codes: [`rate_limited`](https://authtempo.com/docs/reference/errors/#rate_limited). A browser flow can get the code in the `auth_error` query parameter of a 302 in place of this answer.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "rate_limited"
                      ]
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "The codes: [`internal`](https://authtempo.com/docs/reference/errors/#internal).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "internal"
                      ]
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "sessionCookie": []
          },
          {
            "sessionBearer": []
          }
        ]
      }
    },
    "/social/{provider}/callback": {
      "get": {
        "tags": [
          "social"
        ],
        "summary": "GET /social/:provider/callback",
        "operationId": "get-social-provider-callback",
        "externalDocs": {
          "url": "https://authtempo.com/docs/reference/routes/#get-social-provider-callback"
        },
        "x-authtempo-feature": "social",
        "x-authtempo-default": "off",
        "parameters": [
          {
            "name": "provider",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^[a-z][a-z0-9-]{0,31}$"
            }
          },
          {
            "name": "code",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "state",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "error",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "302": {
            "description": "A redirect. A failure carries its code in the `auth_error` query parameter of the location.",
            "headers": {
              "Location": {
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "description": "The codes: [`invalid_token`](https://authtempo.com/docs/reference/errors/#invalid_token), [`token_expired`](https://authtempo.com/docs/reference/errors/#token_expired), [`oauth_denied`](https://authtempo.com/docs/reference/errors/#oauth_denied), [`oauth_failed`](https://authtempo.com/docs/reference/errors/#oauth_failed), [`email_required`](https://authtempo.com/docs/reference/errors/#email_required). A browser flow can get the code in the `auth_error` query parameter of a 302 in place of this answer.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "invalid_token",
                        "token_expired",
                        "oauth_denied",
                        "oauth_failed",
                        "email_required"
                      ]
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "The codes: [`email_mismatch`](https://authtempo.com/docs/reference/errors/#email_mismatch), [`sign_up_closed`](https://authtempo.com/docs/reference/errors/#sign_up_closed), [`hook_refused`](https://authtempo.com/docs/reference/errors/#hook_refused), [`account_banned`](https://authtempo.com/docs/reference/errors/#account_banned), [`sso_required`](https://authtempo.com/docs/reference/errors/#sso_required). A browser flow can get the code in the `auth_error` query parameter of a 302 in place of this answer.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "email_mismatch",
                        "sign_up_closed",
                        "hook_refused",
                        "account_banned",
                        "sso_required"
                      ]
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "The codes: [`not_found`](https://authtempo.com/docs/reference/errors/#not_found).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "not_found"
                      ]
                    }
                  }
                }
              }
            }
          },
          "409": {
            "description": "The codes: [`email_taken_unverified`](https://authtempo.com/docs/reference/errors/#email_taken_unverified), [`identity_taken`](https://authtempo.com/docs/reference/errors/#identity_taken), [`conflict`](https://authtempo.com/docs/reference/errors/#conflict). A browser flow can get the code in the `auth_error` query parameter of a 302 in place of this answer.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "email_taken_unverified",
                        "identity_taken",
                        "conflict"
                      ]
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "The codes: [`hook_failed`](https://authtempo.com/docs/reference/errors/#hook_failed), [`internal`](https://authtempo.com/docs/reference/errors/#internal). A browser flow can get the code in the `auth_error` query parameter of a 302 in place of this answer.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "hook_failed",
                        "internal"
                      ]
                    }
                  }
                }
              }
            }
          }
        },
        "security": []
      }
    },
    "/social/apple/callback": {
      "post": {
        "tags": [
          "social"
        ],
        "summary": "POST /social/apple/callback",
        "operationId": "post-social-apple-callback",
        "externalDocs": {
          "url": "https://authtempo.com/docs/reference/routes/#post-social-apple-callback"
        },
        "x-authtempo-feature": "social",
        "x-authtempo-default": "off",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "code": {
                    "type": "string",
                    "maxLength": 2048
                  },
                  "state": {
                    "type": "string",
                    "maxLength": 128
                  },
                  "error": {
                    "type": "string",
                    "maxLength": 256
                  },
                  "user": {
                    "type": "string",
                    "maxLength": 4096
                  },
                  "id_token": {
                    "type": "string",
                    "maxLength": 8192
                  }
                }
              }
            },
            "application/x-www-form-urlencoded": {
              "schema": {
                "type": "object",
                "properties": {
                  "code": {
                    "type": "string",
                    "maxLength": 2048
                  },
                  "state": {
                    "type": "string",
                    "maxLength": 128
                  },
                  "error": {
                    "type": "string",
                    "maxLength": 256
                  },
                  "user": {
                    "type": "string",
                    "maxLength": 4096
                  },
                  "id_token": {
                    "type": "string",
                    "maxLength": 8192
                  }
                }
              }
            }
          }
        },
        "responses": {
          "302": {
            "description": "A redirect. A failure carries its code in the `auth_error` query parameter of the location.",
            "headers": {
              "Location": {
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "description": "The codes: [`invalid_token`](https://authtempo.com/docs/reference/errors/#invalid_token), [`token_expired`](https://authtempo.com/docs/reference/errors/#token_expired), [`oauth_denied`](https://authtempo.com/docs/reference/errors/#oauth_denied), [`oauth_failed`](https://authtempo.com/docs/reference/errors/#oauth_failed), [`email_required`](https://authtempo.com/docs/reference/errors/#email_required). A browser flow can get the code in the `auth_error` query parameter of a 302 in place of this answer.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "invalid_token",
                        "token_expired",
                        "oauth_denied",
                        "oauth_failed",
                        "email_required"
                      ]
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "The codes: [`email_mismatch`](https://authtempo.com/docs/reference/errors/#email_mismatch), [`sign_up_closed`](https://authtempo.com/docs/reference/errors/#sign_up_closed), [`hook_refused`](https://authtempo.com/docs/reference/errors/#hook_refused), [`account_banned`](https://authtempo.com/docs/reference/errors/#account_banned), [`sso_required`](https://authtempo.com/docs/reference/errors/#sso_required). A browser flow can get the code in the `auth_error` query parameter of a 302 in place of this answer.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "email_mismatch",
                        "sign_up_closed",
                        "hook_refused",
                        "account_banned",
                        "sso_required"
                      ]
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "The codes: [`not_found`](https://authtempo.com/docs/reference/errors/#not_found).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "not_found"
                      ]
                    }
                  }
                }
              }
            }
          },
          "409": {
            "description": "The codes: [`email_taken_unverified`](https://authtempo.com/docs/reference/errors/#email_taken_unverified), [`identity_taken`](https://authtempo.com/docs/reference/errors/#identity_taken), [`conflict`](https://authtempo.com/docs/reference/errors/#conflict). A browser flow can get the code in the `auth_error` query parameter of a 302 in place of this answer.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "email_taken_unverified",
                        "identity_taken",
                        "conflict"
                      ]
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "The codes: [`rate_limited`](https://authtempo.com/docs/reference/errors/#rate_limited). A browser flow can get the code in the `auth_error` query parameter of a 302 in place of this answer.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "rate_limited"
                      ]
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "The codes: [`hook_failed`](https://authtempo.com/docs/reference/errors/#hook_failed), [`internal`](https://authtempo.com/docs/reference/errors/#internal). A browser flow can get the code in the `auth_error` query parameter of a 302 in place of this answer.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "hook_failed",
                        "internal"
                      ]
                    }
                  }
                }
              }
            }
          }
        },
        "security": []
      }
    },
    "/social/{provider}/id-token/nonce": {
      "post": {
        "tags": [
          "socialIdToken"
        ],
        "summary": "POST /social/:provider/id-token/nonce",
        "operationId": "post-social-provider-id-token-nonce",
        "externalDocs": {
          "url": "https://authtempo.com/docs/reference/routes/#post-social-provider-id-token-nonce"
        },
        "x-authtempo-feature": "socialIdToken",
        "x-authtempo-default": "off",
        "parameters": [
          {
            "name": "provider",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^[a-z][a-z0-9-]{0,31}$"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {},
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The answer.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "nonce": {
                      "type": "string"
                    },
                    "providerNonce": {
                      "type": "string"
                    },
                    "expiresAt": {
                      "type": "string",
                      "format": "date-time",
                      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                    }
                  },
                  "required": [
                    "nonce",
                    "providerNonce",
                    "expiresAt"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "The codes: [`invalid_body`](https://authtempo.com/docs/reference/errors/#invalid_body).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "invalid_body"
                      ]
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "The codes: [`origin_not_trusted`](https://authtempo.com/docs/reference/errors/#origin_not_trusted).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "origin_not_trusted"
                      ]
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "The codes: [`not_found`](https://authtempo.com/docs/reference/errors/#not_found).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "not_found"
                      ]
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "The codes: [`rate_limited`](https://authtempo.com/docs/reference/errors/#rate_limited).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "rate_limited"
                      ]
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "The codes: [`internal`](https://authtempo.com/docs/reference/errors/#internal).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "internal"
                      ]
                    }
                  }
                }
              }
            }
          }
        },
        "security": []
      }
    },
    "/social/{provider}/id-token": {
      "post": {
        "tags": [
          "socialIdToken"
        ],
        "summary": "POST /social/:provider/id-token",
        "operationId": "post-social-provider-id-token",
        "externalDocs": {
          "url": "https://authtempo.com/docs/reference/routes/#post-social-provider-id-token"
        },
        "x-authtempo-feature": "socialIdToken",
        "x-authtempo-default": "off",
        "parameters": [
          {
            "name": "provider",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^[a-z][a-z0-9-]{0,31}$"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "idToken": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 8192
                  },
                  "nonce": {
                    "type": "string",
                    "maxLength": 128
                  },
                  "name": {
                    "type": "string",
                    "maxLength": 256
                  },
                  "next": {
                    "type": "string",
                    "maxLength": 2048
                  },
                  "trustDevice": {
                    "type": "string",
                    "maxLength": 64
                  }
                },
                "required": [
                  "idToken"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The answer.",
            "content": {
              "application/json": {
                "schema": {
                  "anyOf": [
                    {
                      "$ref": "#/components/schemas/SignInAnswer"
                    },
                    {
                      "$ref": "#/components/schemas/TwoFactorChallenge"
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "description": "The codes: [`invalid_body`](https://authtempo.com/docs/reference/errors/#invalid_body), [`invalid_token`](https://authtempo.com/docs/reference/errors/#invalid_token), [`oauth_failed`](https://authtempo.com/docs/reference/errors/#oauth_failed), [`email_required`](https://authtempo.com/docs/reference/errors/#email_required).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "invalid_body",
                        "invalid_token",
                        "oauth_failed",
                        "email_required"
                      ]
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "The codes: [`sign_up_closed`](https://authtempo.com/docs/reference/errors/#sign_up_closed), [`hook_refused`](https://authtempo.com/docs/reference/errors/#hook_refused), [`account_banned`](https://authtempo.com/docs/reference/errors/#account_banned), [`sso_required`](https://authtempo.com/docs/reference/errors/#sso_required), [`origin_not_trusted`](https://authtempo.com/docs/reference/errors/#origin_not_trusted).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "sign_up_closed",
                        "hook_refused",
                        "account_banned",
                        "sso_required",
                        "origin_not_trusted"
                      ]
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "The codes: [`not_found`](https://authtempo.com/docs/reference/errors/#not_found).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "not_found"
                      ]
                    }
                  }
                }
              }
            }
          },
          "409": {
            "description": "The codes: [`email_taken_unverified`](https://authtempo.com/docs/reference/errors/#email_taken_unverified), [`conflict`](https://authtempo.com/docs/reference/errors/#conflict).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "email_taken_unverified",
                        "conflict"
                      ]
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "The codes: [`rate_limited`](https://authtempo.com/docs/reference/errors/#rate_limited).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "rate_limited"
                      ]
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "The codes: [`hook_failed`](https://authtempo.com/docs/reference/errors/#hook_failed), [`internal`](https://authtempo.com/docs/reference/errors/#internal).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "hook_failed",
                        "internal"
                      ]
                    }
                  }
                }
              }
            }
          }
        },
        "security": []
      }
    },
    "/passkey/register/options": {
      "post": {
        "tags": [
          "passkey"
        ],
        "summary": "POST /passkey/register/options",
        "operationId": "post-passkey-register-options",
        "externalDocs": {
          "url": "https://authtempo.com/docs/reference/routes/#post-passkey-register-options"
        },
        "x-authtempo-feature": "passkey",
        "x-authtempo-default": "off",
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "hints": {
                    "maxItems": 3,
                    "type": "array",
                    "items": {
                      "type": "string",
                      "enum": [
                        "security-key",
                        "client-device",
                        "hybrid"
                      ]
                    }
                  }
                },
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The answer.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CreationOptionsJson"
                }
              }
            }
          },
          "400": {
            "description": "The codes: [`invalid_body`](https://authtempo.com/docs/reference/errors/#invalid_body).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "invalid_body"
                      ]
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The codes: [`unauthorized`](https://authtempo.com/docs/reference/errors/#unauthorized).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "unauthorized"
                      ]
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "The codes: [`session_not_fresh`](https://authtempo.com/docs/reference/errors/#session_not_fresh), [`email_unverified`](https://authtempo.com/docs/reference/errors/#email_unverified), [`impersonation_session`](https://authtempo.com/docs/reference/errors/#impersonation_session), [`anonymous_refused`](https://authtempo.com/docs/reference/errors/#anonymous_refused), [`origin_not_trusted`](https://authtempo.com/docs/reference/errors/#origin_not_trusted).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "session_not_fresh",
                        "email_unverified",
                        "impersonation_session",
                        "anonymous_refused",
                        "origin_not_trusted"
                      ]
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "The codes: [`not_found`](https://authtempo.com/docs/reference/errors/#not_found).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "not_found"
                      ]
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "The codes: [`internal`](https://authtempo.com/docs/reference/errors/#internal).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "internal"
                      ]
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "sessionCookie": []
          },
          {
            "sessionBearer": []
          }
        ]
      }
    },
    "/passkey/register/verify": {
      "post": {
        "tags": [
          "passkey"
        ],
        "summary": "POST /passkey/register/verify",
        "operationId": "post-passkey-register-verify",
        "externalDocs": {
          "url": "https://authtempo.com/docs/reference/routes/#post-passkey-register-verify"
        },
        "x-authtempo-feature": "passkey",
        "x-authtempo-default": "off",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "response": {
                    "type": "object",
                    "properties": {
                      "id": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 1024
                      },
                      "response": {
                        "type": "object",
                        "properties": {
                          "clientDataJSON": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 16384
                          }
                        },
                        "required": [
                          "clientDataJSON"
                        ],
                        "additionalProperties": {}
                      }
                    },
                    "required": [
                      "id",
                      "response"
                    ],
                    "additionalProperties": {}
                  },
                  "name": {
                    "type": "string"
                  }
                },
                "required": [
                  "response"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The answer.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "passkey": {
                      "$ref": "#/components/schemas/PasskeySummary"
                    }
                  },
                  "required": [
                    "passkey"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "The codes: [`invalid_body`](https://authtempo.com/docs/reference/errors/#invalid_body), [`invalid_token`](https://authtempo.com/docs/reference/errors/#invalid_token), [`token_expired`](https://authtempo.com/docs/reference/errors/#token_expired), [`passkey_failed`](https://authtempo.com/docs/reference/errors/#passkey_failed).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "invalid_body",
                        "invalid_token",
                        "token_expired",
                        "passkey_failed"
                      ]
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The codes: [`unauthorized`](https://authtempo.com/docs/reference/errors/#unauthorized).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "unauthorized"
                      ]
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "The codes: [`email_unverified`](https://authtempo.com/docs/reference/errors/#email_unverified), [`impersonation_session`](https://authtempo.com/docs/reference/errors/#impersonation_session), [`anonymous_refused`](https://authtempo.com/docs/reference/errors/#anonymous_refused), [`origin_not_trusted`](https://authtempo.com/docs/reference/errors/#origin_not_trusted).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "email_unverified",
                        "impersonation_session",
                        "anonymous_refused",
                        "origin_not_trusted"
                      ]
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "The codes: [`not_found`](https://authtempo.com/docs/reference/errors/#not_found).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "not_found"
                      ]
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "The codes: [`internal`](https://authtempo.com/docs/reference/errors/#internal).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "internal"
                      ]
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "sessionCookie": []
          },
          {
            "sessionBearer": []
          }
        ]
      }
    },
    "/passkey/authenticate/options": {
      "post": {
        "tags": [
          "passkey"
        ],
        "summary": "POST /passkey/authenticate/options",
        "operationId": "post-passkey-authenticate-options",
        "externalDocs": {
          "url": "https://authtempo.com/docs/reference/routes/#post-passkey-authenticate-options"
        },
        "x-authtempo-feature": "passkey",
        "x-authtempo-default": "off",
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "hints": {
                    "maxItems": 3,
                    "type": "array",
                    "items": {
                      "type": "string",
                      "enum": [
                        "security-key",
                        "client-device",
                        "hybrid"
                      ]
                    }
                  },
                  "extensions": {
                    "type": "object",
                    "properties": {
                      "prf": {
                        "type": "object",
                        "properties": {
                          "first": {
                            "type": "string",
                            "pattern": "^[A-Za-z0-9_-]{43}$"
                          },
                          "second": {
                            "type": "string",
                            "pattern": "^[A-Za-z0-9_-]{43}$"
                          }
                        },
                        "required": [
                          "first"
                        ],
                        "additionalProperties": false
                      },
                      "largeBlob": {
                        "type": "object",
                        "properties": {
                          "read": {
                            "type": "boolean",
                            "const": true
                          }
                        },
                        "required": [
                          "read"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "additionalProperties": false
                  }
                },
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The answer.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RequestOptionsJson"
                }
              }
            }
          },
          "400": {
            "description": "The codes: [`invalid_body`](https://authtempo.com/docs/reference/errors/#invalid_body).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "invalid_body"
                      ]
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "The codes: [`origin_not_trusted`](https://authtempo.com/docs/reference/errors/#origin_not_trusted).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "origin_not_trusted"
                      ]
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "The codes: [`not_found`](https://authtempo.com/docs/reference/errors/#not_found).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "not_found"
                      ]
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "The codes: [`rate_limited`](https://authtempo.com/docs/reference/errors/#rate_limited).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "rate_limited"
                      ]
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "The codes: [`internal`](https://authtempo.com/docs/reference/errors/#internal).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "internal"
                      ]
                    }
                  }
                }
              }
            }
          }
        },
        "security": []
      }
    },
    "/passkey/authenticate/verify": {
      "post": {
        "tags": [
          "passkey"
        ],
        "summary": "POST /passkey/authenticate/verify",
        "operationId": "post-passkey-authenticate-verify",
        "externalDocs": {
          "url": "https://authtempo.com/docs/reference/routes/#post-passkey-authenticate-verify"
        },
        "x-authtempo-feature": "passkey",
        "x-authtempo-default": "off",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "response": {
                    "type": "object",
                    "properties": {
                      "id": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 1024
                      },
                      "response": {
                        "type": "object",
                        "properties": {
                          "clientDataJSON": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 16384
                          }
                        },
                        "required": [
                          "clientDataJSON"
                        ],
                        "additionalProperties": {}
                      }
                    },
                    "required": [
                      "id",
                      "response"
                    ],
                    "additionalProperties": {}
                  }
                },
                "required": [
                  "response"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The answer.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SessionSignInAnswer"
                }
              }
            }
          },
          "400": {
            "description": "The codes: [`invalid_body`](https://authtempo.com/docs/reference/errors/#invalid_body), [`invalid_token`](https://authtempo.com/docs/reference/errors/#invalid_token), [`token_expired`](https://authtempo.com/docs/reference/errors/#token_expired), [`passkey_failed`](https://authtempo.com/docs/reference/errors/#passkey_failed), [`passkey_unknown`](https://authtempo.com/docs/reference/errors/#passkey_unknown).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "invalid_body",
                        "invalid_token",
                        "token_expired",
                        "passkey_failed",
                        "passkey_unknown"
                      ]
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "The codes: [`hook_refused`](https://authtempo.com/docs/reference/errors/#hook_refused), [`account_banned`](https://authtempo.com/docs/reference/errors/#account_banned), [`sso_required`](https://authtempo.com/docs/reference/errors/#sso_required), [`origin_not_trusted`](https://authtempo.com/docs/reference/errors/#origin_not_trusted).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "hook_refused",
                        "account_banned",
                        "sso_required",
                        "origin_not_trusted"
                      ]
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "The codes: [`not_found`](https://authtempo.com/docs/reference/errors/#not_found).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "not_found"
                      ]
                    }
                  }
                }
              }
            }
          },
          "409": {
            "description": "The codes: [`conflict`](https://authtempo.com/docs/reference/errors/#conflict).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "conflict"
                      ]
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "The codes: [`rate_limited`](https://authtempo.com/docs/reference/errors/#rate_limited).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "rate_limited"
                      ]
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "The codes: [`hook_failed`](https://authtempo.com/docs/reference/errors/#hook_failed), [`internal`](https://authtempo.com/docs/reference/errors/#internal).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "hook_failed",
                        "internal"
                      ]
                    }
                  }
                }
              }
            }
          }
        },
        "security": []
      }
    },
    "/passkey/sign-up/options": {
      "post": {
        "tags": [
          "passkeySignUp"
        ],
        "summary": "POST /passkey/sign-up/options",
        "operationId": "post-passkey-sign-up-options",
        "externalDocs": {
          "url": "https://authtempo.com/docs/reference/routes/#post-passkey-sign-up-options"
        },
        "x-authtempo-feature": "passkeySignUp",
        "x-authtempo-default": "off",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "name": {
                    "type": "string"
                  },
                  "hints": {
                    "maxItems": 3,
                    "type": "array",
                    "items": {
                      "type": "string",
                      "enum": [
                        "security-key",
                        "client-device",
                        "hybrid"
                      ]
                    }
                  }
                },
                "required": [
                  "name"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The answer.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CreationOptionsJson"
                }
              }
            }
          },
          "400": {
            "description": "The codes: [`invalid_body`](https://authtempo.com/docs/reference/errors/#invalid_body), [`captcha_required`](https://authtempo.com/docs/reference/errors/#captcha_required).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "invalid_body",
                        "captcha_required"
                      ]
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "The codes: [`captcha_failed`](https://authtempo.com/docs/reference/errors/#captcha_failed), [`sign_up_closed`](https://authtempo.com/docs/reference/errors/#sign_up_closed), [`origin_not_trusted`](https://authtempo.com/docs/reference/errors/#origin_not_trusted).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "captcha_failed",
                        "sign_up_closed",
                        "origin_not_trusted"
                      ]
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "The codes: [`not_found`](https://authtempo.com/docs/reference/errors/#not_found).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "not_found"
                      ]
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "The codes: [`rate_limited`](https://authtempo.com/docs/reference/errors/#rate_limited).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "rate_limited"
                      ]
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "The codes: [`internal`](https://authtempo.com/docs/reference/errors/#internal).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "internal"
                      ]
                    }
                  }
                }
              }
            }
          },
          "503": {
            "description": "The codes: [`captcha_unavailable`](https://authtempo.com/docs/reference/errors/#captcha_unavailable).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "captcha_unavailable"
                      ]
                    }
                  }
                }
              }
            }
          }
        },
        "security": []
      }
    },
    "/passkey/sign-up/verify": {
      "post": {
        "tags": [
          "passkeySignUp"
        ],
        "summary": "POST /passkey/sign-up/verify",
        "operationId": "post-passkey-sign-up-verify",
        "externalDocs": {
          "url": "https://authtempo.com/docs/reference/routes/#post-passkey-sign-up-verify"
        },
        "x-authtempo-feature": "passkeySignUp",
        "x-authtempo-default": "off",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "response": {
                    "type": "object",
                    "properties": {
                      "id": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 1024
                      },
                      "response": {
                        "type": "object",
                        "properties": {
                          "clientDataJSON": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 16384
                          }
                        },
                        "required": [
                          "clientDataJSON"
                        ],
                        "additionalProperties": {}
                      }
                    },
                    "required": [
                      "id",
                      "response"
                    ],
                    "additionalProperties": {}
                  }
                },
                "required": [
                  "response"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The answer.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SessionSignInAnswer"
                }
              }
            }
          },
          "400": {
            "description": "The codes: [`invalid_body`](https://authtempo.com/docs/reference/errors/#invalid_body), [`invalid_token`](https://authtempo.com/docs/reference/errors/#invalid_token), [`token_expired`](https://authtempo.com/docs/reference/errors/#token_expired), [`passkey_failed`](https://authtempo.com/docs/reference/errors/#passkey_failed).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "invalid_body",
                        "invalid_token",
                        "token_expired",
                        "passkey_failed"
                      ]
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "The codes: [`sign_up_closed`](https://authtempo.com/docs/reference/errors/#sign_up_closed), [`hook_refused`](https://authtempo.com/docs/reference/errors/#hook_refused), [`origin_not_trusted`](https://authtempo.com/docs/reference/errors/#origin_not_trusted).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "sign_up_closed",
                        "hook_refused",
                        "origin_not_trusted"
                      ]
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "The codes: [`not_found`](https://authtempo.com/docs/reference/errors/#not_found).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "not_found"
                      ]
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "The codes: [`rate_limited`](https://authtempo.com/docs/reference/errors/#rate_limited).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "rate_limited"
                      ]
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "The codes: [`hook_failed`](https://authtempo.com/docs/reference/errors/#hook_failed), [`internal`](https://authtempo.com/docs/reference/errors/#internal).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "hook_failed",
                        "internal"
                      ]
                    }
                  }
                }
              }
            }
          }
        },
        "security": []
      }
    },
    "/passkeys": {
      "get": {
        "tags": [
          "passkey"
        ],
        "summary": "GET /passkeys",
        "operationId": "get-passkeys",
        "externalDocs": {
          "url": "https://authtempo.com/docs/reference/routes/#get-passkeys"
        },
        "x-authtempo-feature": "passkey",
        "x-authtempo-default": "off",
        "responses": {
          "200": {
            "description": "The answer.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "passkeys": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/PasskeySummary"
                      }
                    },
                    "rpId": {
                      "type": "string"
                    },
                    "userHandle": {
                      "type": "string"
                    },
                    "userName": {
                      "type": "string"
                    },
                    "userDisplayName": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "passkeys",
                    "rpId",
                    "userHandle",
                    "userName",
                    "userDisplayName"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "401": {
            "description": "The codes: [`unauthorized`](https://authtempo.com/docs/reference/errors/#unauthorized).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "unauthorized"
                      ]
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "The codes: [`not_found`](https://authtempo.com/docs/reference/errors/#not_found).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "not_found"
                      ]
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "The codes: [`internal`](https://authtempo.com/docs/reference/errors/#internal).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "internal"
                      ]
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "sessionCookie": []
          },
          {
            "sessionBearer": []
          }
        ]
      }
    },
    "/passkeys/delete": {
      "post": {
        "tags": [
          "passkey"
        ],
        "summary": "POST /passkeys/delete",
        "operationId": "post-passkeys-delete",
        "externalDocs": {
          "url": "https://authtempo.com/docs/reference/routes/#post-passkeys-delete"
        },
        "x-authtempo-feature": "passkey",
        "x-authtempo-default": "off",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64
                  }
                },
                "required": [
                  "id"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The answer.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OkAnswer"
                }
              }
            }
          },
          "400": {
            "description": "The codes: [`invalid_body`](https://authtempo.com/docs/reference/errors/#invalid_body).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "invalid_body"
                      ]
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The codes: [`unauthorized`](https://authtempo.com/docs/reference/errors/#unauthorized).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "unauthorized"
                      ]
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "The codes: [`session_not_fresh`](https://authtempo.com/docs/reference/errors/#session_not_fresh), [`impersonation_session`](https://authtempo.com/docs/reference/errors/#impersonation_session), [`origin_not_trusted`](https://authtempo.com/docs/reference/errors/#origin_not_trusted).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "session_not_fresh",
                        "impersonation_session",
                        "origin_not_trusted"
                      ]
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "The codes: [`not_found`](https://authtempo.com/docs/reference/errors/#not_found).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "not_found"
                      ]
                    }
                  }
                }
              }
            }
          },
          "409": {
            "description": "The codes: [`last_credential`](https://authtempo.com/docs/reference/errors/#last_credential), [`second_factor_last_method`](https://authtempo.com/docs/reference/errors/#second_factor_last_method), [`conflict`](https://authtempo.com/docs/reference/errors/#conflict).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "last_credential",
                        "second_factor_last_method",
                        "conflict"
                      ]
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "The codes: [`internal`](https://authtempo.com/docs/reference/errors/#internal).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "internal"
                      ]
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "sessionCookie": []
          },
          {
            "sessionBearer": []
          }
        ]
      }
    },
    "/passkeys/rename": {
      "post": {
        "tags": [
          "passkey"
        ],
        "summary": "POST /passkeys/rename",
        "operationId": "post-passkeys-rename",
        "externalDocs": {
          "url": "https://authtempo.com/docs/reference/routes/#post-passkeys-rename"
        },
        "x-authtempo-feature": "passkey",
        "x-authtempo-default": "off",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64
                  },
                  "name": {
                    "type": "string"
                  }
                },
                "required": [
                  "id",
                  "name"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The answer.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "passkey": {
                      "$ref": "#/components/schemas/PasskeySummary"
                    }
                  },
                  "required": [
                    "passkey"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "The codes: [`invalid_body`](https://authtempo.com/docs/reference/errors/#invalid_body).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "invalid_body"
                      ]
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The codes: [`unauthorized`](https://authtempo.com/docs/reference/errors/#unauthorized).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "unauthorized"
                      ]
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "The codes: [`origin_not_trusted`](https://authtempo.com/docs/reference/errors/#origin_not_trusted).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "origin_not_trusted"
                      ]
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "The codes: [`not_found`](https://authtempo.com/docs/reference/errors/#not_found).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "not_found"
                      ]
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "The codes: [`rate_limited`](https://authtempo.com/docs/reference/errors/#rate_limited).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "rate_limited"
                      ]
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "The codes: [`internal`](https://authtempo.com/docs/reference/errors/#internal).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "internal"
                      ]
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "sessionCookie": []
          },
          {
            "sessionBearer": []
          }
        ]
      }
    },
    "/password/sign-up": {
      "post": {
        "tags": [
          "password"
        ],
        "summary": "POST /password/sign-up",
        "operationId": "post-password-sign-up",
        "externalDocs": {
          "url": "https://authtempo.com/docs/reference/routes/#post-password-sign-up"
        },
        "x-authtempo-feature": "password",
        "x-authtempo-default": "off",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "email": {
                    "type": "string",
                    "maxLength": 320
                  },
                  "password": {
                    "type": "string",
                    "maxLength": 1024
                  },
                  "name": {
                    "type": "string",
                    "maxLength": 200
                  },
                  "username": {
                    "type": "string",
                    "maxLength": 256
                  }
                },
                "required": [
                  "email",
                  "password"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The answer.",
            "content": {
              "application/json": {
                "schema": {
                  "anyOf": [
                    {
                      "type": "object",
                      "properties": {
                        "sent": {
                          "type": "boolean",
                          "const": true
                        },
                        "signUpProof": {
                          "type": "string"
                        }
                      },
                      "required": [
                        "sent",
                        "signUpProof"
                      ],
                      "additionalProperties": false
                    },
                    {
                      "type": "object",
                      "properties": {
                        "user": {
                          "$ref": "#/components/schemas/UserJson"
                        },
                        "verifyRequired": {
                          "type": "boolean",
                          "const": true
                        },
                        "signUpProof": {
                          "type": "string"
                        }
                      },
                      "required": [
                        "user",
                        "verifyRequired",
                        "signUpProof"
                      ],
                      "additionalProperties": false
                    },
                    {
                      "type": "object",
                      "properties": {
                        "token": {
                          "type": "string"
                        },
                        "user": {
                          "$ref": "#/components/schemas/UserJson"
                        },
                        "session": {
                          "$ref": "#/components/schemas/SessionJson"
                        },
                        "via": {
                          "$ref": "#/components/schemas/LastMethodJson"
                        },
                        "signUpProof": {
                          "type": "string"
                        }
                      },
                      "required": [
                        "token",
                        "user",
                        "session",
                        "signUpProof"
                      ],
                      "additionalProperties": false
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "description": "The codes: [`invalid_body`](https://authtempo.com/docs/reference/errors/#invalid_body), [`captcha_required`](https://authtempo.com/docs/reference/errors/#captcha_required), [`password_policy`](https://authtempo.com/docs/reference/errors/#password_policy), [`password_breached`](https://authtempo.com/docs/reference/errors/#password_breached), [`username_invalid`](https://authtempo.com/docs/reference/errors/#username_invalid).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "invalid_body",
                        "captcha_required",
                        "password_policy",
                        "password_breached",
                        "username_invalid"
                      ]
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "The codes: [`sign_up_closed`](https://authtempo.com/docs/reference/errors/#sign_up_closed), [`captcha_failed`](https://authtempo.com/docs/reference/errors/#captcha_failed), [`hook_refused`](https://authtempo.com/docs/reference/errors/#hook_refused), [`sso_required`](https://authtempo.com/docs/reference/errors/#sso_required), [`origin_not_trusted`](https://authtempo.com/docs/reference/errors/#origin_not_trusted).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "sign_up_closed",
                        "captcha_failed",
                        "hook_refused",
                        "sso_required",
                        "origin_not_trusted"
                      ]
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "The codes: [`not_found`](https://authtempo.com/docs/reference/errors/#not_found).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "not_found"
                      ]
                    }
                  }
                }
              }
            }
          },
          "409": {
            "description": "The codes: [`email_taken`](https://authtempo.com/docs/reference/errors/#email_taken), [`email_taken_unverified`](https://authtempo.com/docs/reference/errors/#email_taken_unverified), [`conflict`](https://authtempo.com/docs/reference/errors/#conflict), [`username_taken`](https://authtempo.com/docs/reference/errors/#username_taken).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "email_taken",
                        "email_taken_unverified",
                        "conflict",
                        "username_taken"
                      ]
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "The codes: [`rate_limited`](https://authtempo.com/docs/reference/errors/#rate_limited).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "rate_limited"
                      ]
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "The codes: [`hook_failed`](https://authtempo.com/docs/reference/errors/#hook_failed), [`internal`](https://authtempo.com/docs/reference/errors/#internal).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "hook_failed",
                        "internal"
                      ]
                    }
                  }
                }
              }
            }
          },
          "503": {
            "description": "The codes: [`captcha_unavailable`](https://authtempo.com/docs/reference/errors/#captcha_unavailable), [`breach_check_unavailable`](https://authtempo.com/docs/reference/errors/#breach_check_unavailable).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "captcha_unavailable",
                        "breach_check_unavailable"
                      ]
                    }
                  }
                }
              }
            }
          }
        },
        "security": []
      }
    },
    "/password/sign-in": {
      "post": {
        "tags": [
          "password"
        ],
        "summary": "POST /password/sign-in",
        "operationId": "post-password-sign-in",
        "externalDocs": {
          "url": "https://authtempo.com/docs/reference/routes/#post-password-sign-in"
        },
        "x-authtempo-feature": "password",
        "x-authtempo-default": "off",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "email": {
                    "type": "string",
                    "maxLength": 320
                  },
                  "username": {
                    "type": "string",
                    "maxLength": 256
                  },
                  "phone": {
                    "type": "string",
                    "maxLength": 32
                  },
                  "password": {
                    "type": "string",
                    "maxLength": 1024
                  },
                  "trustDevice": {
                    "type": "string",
                    "maxLength": 64
                  },
                  "next": {
                    "type": "string",
                    "maxLength": 2048
                  },
                  "signUpProof": {
                    "type": "string",
                    "maxLength": 64
                  }
                },
                "required": [
                  "password"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The answer.",
            "content": {
              "application/json": {
                "schema": {
                  "anyOf": [
                    {
                      "$ref": "#/components/schemas/SignInAnswer"
                    },
                    {
                      "$ref": "#/components/schemas/TwoFactorChallenge"
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "description": "The codes: [`invalid_body`](https://authtempo.com/docs/reference/errors/#invalid_body), [`captcha_required`](https://authtempo.com/docs/reference/errors/#captcha_required).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "invalid_body",
                        "captcha_required"
                      ]
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The codes: [`invalid_credentials`](https://authtempo.com/docs/reference/errors/#invalid_credentials).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "invalid_credentials"
                      ]
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "The codes: [`email_unverified`](https://authtempo.com/docs/reference/errors/#email_unverified), [`captcha_failed`](https://authtempo.com/docs/reference/errors/#captcha_failed), [`hook_refused`](https://authtempo.com/docs/reference/errors/#hook_refused), [`account_banned`](https://authtempo.com/docs/reference/errors/#account_banned), [`sso_required`](https://authtempo.com/docs/reference/errors/#sso_required), [`origin_not_trusted`](https://authtempo.com/docs/reference/errors/#origin_not_trusted).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "email_unverified",
                        "captcha_failed",
                        "hook_refused",
                        "account_banned",
                        "sso_required",
                        "origin_not_trusted"
                      ]
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "The codes: [`not_found`](https://authtempo.com/docs/reference/errors/#not_found).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "not_found"
                      ]
                    }
                  }
                }
              }
            }
          },
          "409": {
            "description": "The codes: [`conflict`](https://authtempo.com/docs/reference/errors/#conflict).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "conflict"
                      ]
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "The codes: [`rate_limited`](https://authtempo.com/docs/reference/errors/#rate_limited).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "rate_limited"
                      ]
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "The codes: [`hook_failed`](https://authtempo.com/docs/reference/errors/#hook_failed), [`internal`](https://authtempo.com/docs/reference/errors/#internal).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "hook_failed",
                        "internal"
                      ]
                    }
                  }
                }
              }
            }
          },
          "503": {
            "description": "The codes: [`captcha_unavailable`](https://authtempo.com/docs/reference/errors/#captcha_unavailable).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "captcha_unavailable"
                      ]
                    }
                  }
                }
              }
            }
          }
        },
        "security": []
      }
    },
    "/password/verify": {
      "get": {
        "tags": [
          "password"
        ],
        "summary": "GET /password/verify",
        "operationId": "get-password-verify",
        "externalDocs": {
          "url": "https://authtempo.com/docs/reference/routes/#get-password-verify"
        },
        "x-authtempo-feature": "password",
        "x-authtempo-default": "off",
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^pv_[A-Za-z0-9_-]{43}$"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "A page of core.",
            "content": {
              "text/html": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "302": {
            "description": "A redirect. A failure carries its code in the `auth_error` query parameter of the location.",
            "headers": {
              "Location": {
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "description": "The codes: [`invalid_token`](https://authtempo.com/docs/reference/errors/#invalid_token). A browser flow can get the code in the `auth_error` query parameter of a 302 in place of this answer.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "invalid_token"
                      ]
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "The codes: [`not_found`](https://authtempo.com/docs/reference/errors/#not_found).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "not_found"
                      ]
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "The codes: [`internal`](https://authtempo.com/docs/reference/errors/#internal).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "internal"
                      ]
                    }
                  }
                }
              }
            }
          }
        },
        "security": []
      },
      "post": {
        "tags": [
          "password"
        ],
        "summary": "POST /password/verify",
        "operationId": "post-password-verify",
        "externalDocs": {
          "url": "https://authtempo.com/docs/reference/routes/#post-password-verify"
        },
        "x-authtempo-feature": "password",
        "x-authtempo-default": "off",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "token": {
                    "type": "string",
                    "maxLength": 64
                  }
                },
                "required": [
                  "token"
                ]
              }
            },
            "application/x-www-form-urlencoded": {
              "schema": {
                "type": "object",
                "properties": {
                  "token": {
                    "type": "string",
                    "maxLength": 64
                  }
                },
                "required": [
                  "token"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The answer.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "verified": {
                      "type": "boolean",
                      "const": true
                    },
                    "passwordKept": {
                      "type": "boolean"
                    }
                  },
                  "required": [
                    "verified",
                    "passwordKept"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "302": {
            "description": "A redirect. A failure carries its code in the `auth_error` query parameter of the location.",
            "headers": {
              "Location": {
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "description": "The codes: [`invalid_token`](https://authtempo.com/docs/reference/errors/#invalid_token), [`token_expired`](https://authtempo.com/docs/reference/errors/#token_expired). A browser flow can get the code in the `auth_error` query parameter of a 302 in place of this answer.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "invalid_token",
                        "token_expired"
                      ]
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "The codes: [`hook_refused`](https://authtempo.com/docs/reference/errors/#hook_refused), [`account_banned`](https://authtempo.com/docs/reference/errors/#account_banned), [`sso_required`](https://authtempo.com/docs/reference/errors/#sso_required), [`origin_not_trusted`](https://authtempo.com/docs/reference/errors/#origin_not_trusted). A browser flow can get the code in the `auth_error` query parameter of a 302 in place of this answer.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "hook_refused",
                        "account_banned",
                        "sso_required",
                        "origin_not_trusted"
                      ]
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "The codes: [`not_found`](https://authtempo.com/docs/reference/errors/#not_found).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "not_found"
                      ]
                    }
                  }
                }
              }
            }
          },
          "409": {
            "description": "The codes: [`conflict`](https://authtempo.com/docs/reference/errors/#conflict). A browser flow can get the code in the `auth_error` query parameter of a 302 in place of this answer.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "conflict"
                      ]
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "The codes: [`hook_failed`](https://authtempo.com/docs/reference/errors/#hook_failed), [`internal`](https://authtempo.com/docs/reference/errors/#internal). A browser flow can get the code in the `auth_error` query parameter of a 302 in place of this answer.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "hook_failed",
                        "internal"
                      ]
                    }
                  }
                }
              }
            }
          }
        },
        "security": []
      }
    },
    "/password/verify/code": {
      "post": {
        "tags": [
          "password"
        ],
        "summary": "POST /password/verify/code",
        "operationId": "post-password-verify-code",
        "externalDocs": {
          "url": "https://authtempo.com/docs/reference/routes/#post-password-verify-code"
        },
        "x-authtempo-feature": "password",
        "x-authtempo-default": "off",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "email": {
                    "type": "string",
                    "maxLength": 320
                  },
                  "code": {
                    "type": "string",
                    "maxLength": 16
                  },
                  "signUpProof": {
                    "type": "string",
                    "maxLength": 64
                  }
                },
                "required": [
                  "email",
                  "code"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The answer.",
            "content": {
              "application/json": {
                "schema": {
                  "anyOf": [
                    {
                      "type": "object",
                      "properties": {
                        "token": {
                          "type": "string"
                        },
                        "user": {
                          "$ref": "#/components/schemas/UserJson"
                        },
                        "session": {
                          "$ref": "#/components/schemas/SessionJson"
                        },
                        "via": {
                          "$ref": "#/components/schemas/LastMethodJson"
                        },
                        "passwordKept": {
                          "type": "boolean"
                        }
                      },
                      "required": [
                        "token",
                        "user",
                        "session",
                        "passwordKept"
                      ],
                      "additionalProperties": false
                    },
                    {
                      "type": "object",
                      "properties": {
                        "verified": {
                          "type": "boolean",
                          "const": true
                        },
                        "passwordKept": {
                          "type": "boolean"
                        }
                      },
                      "required": [
                        "verified",
                        "passwordKept"
                      ],
                      "additionalProperties": false
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "description": "The codes: [`invalid_body`](https://authtempo.com/docs/reference/errors/#invalid_body), [`invalid_code`](https://authtempo.com/docs/reference/errors/#invalid_code), [`too_many_attempts`](https://authtempo.com/docs/reference/errors/#too_many_attempts).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "invalid_body",
                        "invalid_code",
                        "too_many_attempts"
                      ]
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "The codes: [`hook_refused`](https://authtempo.com/docs/reference/errors/#hook_refused), [`account_banned`](https://authtempo.com/docs/reference/errors/#account_banned), [`sso_required`](https://authtempo.com/docs/reference/errors/#sso_required), [`origin_not_trusted`](https://authtempo.com/docs/reference/errors/#origin_not_trusted).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "hook_refused",
                        "account_banned",
                        "sso_required",
                        "origin_not_trusted"
                      ]
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "The codes: [`not_found`](https://authtempo.com/docs/reference/errors/#not_found).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "not_found"
                      ]
                    }
                  }
                }
              }
            }
          },
          "409": {
            "description": "The codes: [`conflict`](https://authtempo.com/docs/reference/errors/#conflict).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "conflict"
                      ]
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "The codes: [`rate_limited`](https://authtempo.com/docs/reference/errors/#rate_limited).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "rate_limited"
                      ]
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "The codes: [`hook_failed`](https://authtempo.com/docs/reference/errors/#hook_failed), [`internal`](https://authtempo.com/docs/reference/errors/#internal).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "hook_failed",
                        "internal"
                      ]
                    }
                  }
                }
              }
            }
          }
        },
        "security": []
      }
    },
    "/password/verify/resend": {
      "post": {
        "tags": [
          "password"
        ],
        "summary": "POST /password/verify/resend",
        "operationId": "post-password-verify-resend",
        "externalDocs": {
          "url": "https://authtempo.com/docs/reference/routes/#post-password-verify-resend"
        },
        "x-authtempo-feature": "password",
        "x-authtempo-default": "off",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "email": {
                    "type": "string",
                    "maxLength": 320
                  },
                  "signUpProof": {
                    "type": "string",
                    "maxLength": 64
                  }
                },
                "required": [
                  "email"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The answer.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SentAnswer"
                }
              }
            }
          },
          "400": {
            "description": "The codes: [`invalid_body`](https://authtempo.com/docs/reference/errors/#invalid_body).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "invalid_body"
                      ]
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "The codes: [`origin_not_trusted`](https://authtempo.com/docs/reference/errors/#origin_not_trusted).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "origin_not_trusted"
                      ]
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "The codes: [`not_found`](https://authtempo.com/docs/reference/errors/#not_found).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "not_found"
                      ]
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "The codes: [`rate_limited`](https://authtempo.com/docs/reference/errors/#rate_limited).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "rate_limited"
                      ]
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "The codes: [`internal`](https://authtempo.com/docs/reference/errors/#internal).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "internal"
                      ]
                    }
                  }
                }
              }
            }
          }
        },
        "security": []
      }
    },
    "/password/reset/request": {
      "post": {
        "tags": [
          "password"
        ],
        "summary": "POST /password/reset/request",
        "operationId": "post-password-reset-request",
        "externalDocs": {
          "url": "https://authtempo.com/docs/reference/routes/#post-password-reset-request"
        },
        "x-authtempo-feature": "password",
        "x-authtempo-default": "off",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "email": {
                    "type": "string",
                    "maxLength": 320
                  },
                  "next": {
                    "type": "string",
                    "maxLength": 2048
                  }
                },
                "required": [
                  "email"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The answer.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SentAnswer"
                }
              }
            }
          },
          "400": {
            "description": "The codes: [`invalid_body`](https://authtempo.com/docs/reference/errors/#invalid_body), [`captcha_required`](https://authtempo.com/docs/reference/errors/#captcha_required).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "invalid_body",
                        "captcha_required"
                      ]
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "The codes: [`captcha_failed`](https://authtempo.com/docs/reference/errors/#captcha_failed), [`origin_not_trusted`](https://authtempo.com/docs/reference/errors/#origin_not_trusted).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "captcha_failed",
                        "origin_not_trusted"
                      ]
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "The codes: [`not_found`](https://authtempo.com/docs/reference/errors/#not_found).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "not_found"
                      ]
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "The codes: [`rate_limited`](https://authtempo.com/docs/reference/errors/#rate_limited).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "rate_limited"
                      ]
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "The codes: [`internal`](https://authtempo.com/docs/reference/errors/#internal).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "internal"
                      ]
                    }
                  }
                }
              }
            }
          },
          "503": {
            "description": "The codes: [`captcha_unavailable`](https://authtempo.com/docs/reference/errors/#captcha_unavailable).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "captcha_unavailable"
                      ]
                    }
                  }
                }
              }
            }
          }
        },
        "security": []
      }
    },
    "/password/reset": {
      "get": {
        "tags": [
          "password"
        ],
        "summary": "GET /password/reset",
        "operationId": "get-password-reset",
        "externalDocs": {
          "url": "https://authtempo.com/docs/reference/routes/#get-password-reset"
        },
        "x-authtempo-feature": "password",
        "x-authtempo-default": "off",
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^pr_[A-Za-z0-9_-]{43}$"
            }
          },
          {
            "name": "error",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "password_policy",
                "password_breached",
                "breach_check_unavailable"
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "description": "A page of core.",
            "content": {
              "text/html": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "302": {
            "description": "A redirect. A failure carries its code in the `auth_error` query parameter of the location.",
            "headers": {
              "Location": {
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "description": "The codes: [`invalid_token`](https://authtempo.com/docs/reference/errors/#invalid_token). A browser flow can get the code in the `auth_error` query parameter of a 302 in place of this answer.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "invalid_token"
                      ]
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "The codes: [`not_found`](https://authtempo.com/docs/reference/errors/#not_found).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "not_found"
                      ]
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "The codes: [`internal`](https://authtempo.com/docs/reference/errors/#internal).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "internal"
                      ]
                    }
                  }
                }
              }
            }
          }
        },
        "security": []
      },
      "post": {
        "tags": [
          "password"
        ],
        "summary": "POST /password/reset",
        "description": "A JSON caller gets each failure as JSON with the status of its code. A form post with a refused password redirects back to the reset page with `error=<code>`. Any other failure of a form post redirects with `auth_error`.",
        "operationId": "post-password-reset",
        "externalDocs": {
          "url": "https://authtempo.com/docs/reference/routes/#post-password-reset"
        },
        "x-authtempo-feature": "password",
        "x-authtempo-default": "off",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "token": {
                    "type": "string",
                    "maxLength": 64
                  },
                  "password": {
                    "type": "string",
                    "maxLength": 1024
                  },
                  "trustDevice": {
                    "type": "string",
                    "maxLength": 64
                  }
                },
                "required": [
                  "token",
                  "password"
                ]
              }
            },
            "application/x-www-form-urlencoded": {
              "schema": {
                "type": "object",
                "properties": {
                  "token": {
                    "type": "string",
                    "maxLength": 64
                  },
                  "password": {
                    "type": "string",
                    "maxLength": 1024
                  },
                  "trustDevice": {
                    "type": "string",
                    "maxLength": 64
                  }
                },
                "required": [
                  "token",
                  "password"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The answer.",
            "content": {
              "application/json": {
                "schema": {
                  "anyOf": [
                    {
                      "$ref": "#/components/schemas/SignedInAnswer"
                    },
                    {
                      "$ref": "#/components/schemas/TwoFactorChallenge"
                    }
                  ]
                }
              }
            }
          },
          "302": {
            "description": "A redirect. A failure carries its code in the `auth_error` query parameter of the location.",
            "headers": {
              "Location": {
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "description": "The codes: [`invalid_token`](https://authtempo.com/docs/reference/errors/#invalid_token), [`token_expired`](https://authtempo.com/docs/reference/errors/#token_expired), [`password_policy`](https://authtempo.com/docs/reference/errors/#password_policy), [`password_breached`](https://authtempo.com/docs/reference/errors/#password_breached). A form post gets `password_policy`, `password_breached` in the `error` query parameter of a 302 back to its own page. A browser flow can get `invalid_token`, `token_expired` in the `auth_error` query parameter of a 302 in place of this answer.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "invalid_token",
                        "token_expired",
                        "password_policy",
                        "password_breached"
                      ]
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "The codes: [`sign_up_closed`](https://authtempo.com/docs/reference/errors/#sign_up_closed), [`hook_refused`](https://authtempo.com/docs/reference/errors/#hook_refused), [`account_banned`](https://authtempo.com/docs/reference/errors/#account_banned), [`sso_required`](https://authtempo.com/docs/reference/errors/#sso_required), [`origin_not_trusted`](https://authtempo.com/docs/reference/errors/#origin_not_trusted). A browser flow can get the code in the `auth_error` query parameter of a 302 in place of this answer.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "sign_up_closed",
                        "hook_refused",
                        "account_banned",
                        "sso_required",
                        "origin_not_trusted"
                      ]
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "The codes: [`not_found`](https://authtempo.com/docs/reference/errors/#not_found).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "not_found"
                      ]
                    }
                  }
                }
              }
            }
          },
          "409": {
            "description": "The codes: [`conflict`](https://authtempo.com/docs/reference/errors/#conflict). A browser flow can get the code in the `auth_error` query parameter of a 302 in place of this answer.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "conflict"
                      ]
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "The codes: [`rate_limited`](https://authtempo.com/docs/reference/errors/#rate_limited). A browser flow can get the code in the `auth_error` query parameter of a 302 in place of this answer.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "rate_limited"
                      ]
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "The codes: [`hook_failed`](https://authtempo.com/docs/reference/errors/#hook_failed), [`internal`](https://authtempo.com/docs/reference/errors/#internal). A browser flow can get the code in the `auth_error` query parameter of a 302 in place of this answer.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "hook_failed",
                        "internal"
                      ]
                    }
                  }
                }
              }
            }
          },
          "503": {
            "description": "The codes: [`breach_check_unavailable`](https://authtempo.com/docs/reference/errors/#breach_check_unavailable). A form post gets `breach_check_unavailable` in the `error` query parameter of a 302 back to its own page.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "breach_check_unavailable"
                      ]
                    }
                  }
                }
              }
            }
          }
        },
        "security": []
      }
    },
    "/password/change": {
      "post": {
        "tags": [
          "password"
        ],
        "summary": "POST /password/change",
        "operationId": "post-password-change",
        "externalDocs": {
          "url": "https://authtempo.com/docs/reference/routes/#post-password-change"
        },
        "x-authtempo-feature": "password",
        "x-authtempo-default": "off",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "currentPassword": {
                    "type": "string",
                    "maxLength": 1024
                  },
                  "newPassword": {
                    "type": "string",
                    "maxLength": 1024
                  }
                },
                "required": [
                  "newPassword"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The answer.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OkAnswer"
                }
              }
            }
          },
          "400": {
            "description": "The codes: [`invalid_body`](https://authtempo.com/docs/reference/errors/#invalid_body), [`password_policy`](https://authtempo.com/docs/reference/errors/#password_policy), [`password_breached`](https://authtempo.com/docs/reference/errors/#password_breached).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "invalid_body",
                        "password_policy",
                        "password_breached"
                      ]
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The codes: [`unauthorized`](https://authtempo.com/docs/reference/errors/#unauthorized), [`invalid_credentials`](https://authtempo.com/docs/reference/errors/#invalid_credentials).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "unauthorized",
                        "invalid_credentials"
                      ]
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "The codes: [`email_unverified`](https://authtempo.com/docs/reference/errors/#email_unverified), [`session_not_fresh`](https://authtempo.com/docs/reference/errors/#session_not_fresh), [`impersonation_session`](https://authtempo.com/docs/reference/errors/#impersonation_session), [`sso_required`](https://authtempo.com/docs/reference/errors/#sso_required), [`anonymous_refused`](https://authtempo.com/docs/reference/errors/#anonymous_refused), [`origin_not_trusted`](https://authtempo.com/docs/reference/errors/#origin_not_trusted).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "email_unverified",
                        "session_not_fresh",
                        "impersonation_session",
                        "sso_required",
                        "anonymous_refused",
                        "origin_not_trusted"
                      ]
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "The codes: [`not_found`](https://authtempo.com/docs/reference/errors/#not_found).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "not_found"
                      ]
                    }
                  }
                }
              }
            }
          },
          "409": {
            "description": "The codes: [`conflict`](https://authtempo.com/docs/reference/errors/#conflict).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "conflict"
                      ]
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "The codes: [`rate_limited`](https://authtempo.com/docs/reference/errors/#rate_limited).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "rate_limited"
                      ]
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "The codes: [`internal`](https://authtempo.com/docs/reference/errors/#internal).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "internal"
                      ]
                    }
                  }
                }
              }
            }
          },
          "503": {
            "description": "The codes: [`breach_check_unavailable`](https://authtempo.com/docs/reference/errors/#breach_check_unavailable).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "breach_check_unavailable"
                      ]
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "sessionCookie": []
          },
          {
            "sessionBearer": []
          }
        ]
      }
    },
    "/totp/setup": {
      "post": {
        "tags": [
          "totp"
        ],
        "summary": "POST /totp/setup",
        "operationId": "post-totp-setup",
        "externalDocs": {
          "url": "https://authtempo.com/docs/reference/routes/#post-totp-setup"
        },
        "x-authtempo-feature": "totp",
        "x-authtempo-default": "off",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "oneOf": [
                  {
                    "type": "object",
                    "properties": {
                      "password": {
                        "type": "string",
                        "maxLength": 1024
                      }
                    },
                    "required": [
                      "password"
                    ]
                  },
                  {
                    "type": "object",
                    "properties": {
                      "emailCode": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 16
                      }
                    },
                    "required": [
                      "emailCode"
                    ]
                  }
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The answer.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "secret": {
                      "type": "string"
                    },
                    "uri": {
                      "type": "string"
                    },
                    "backupCodes": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    }
                  },
                  "required": [
                    "secret",
                    "uri",
                    "backupCodes"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "The codes: [`invalid_body`](https://authtempo.com/docs/reference/errors/#invalid_body), [`invalid_code`](https://authtempo.com/docs/reference/errors/#invalid_code), [`too_many_attempts`](https://authtempo.com/docs/reference/errors/#too_many_attempts).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "invalid_body",
                        "invalid_code",
                        "too_many_attempts"
                      ]
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The codes: [`unauthorized`](https://authtempo.com/docs/reference/errors/#unauthorized), [`invalid_credentials`](https://authtempo.com/docs/reference/errors/#invalid_credentials).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "unauthorized",
                        "invalid_credentials"
                      ]
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "The codes: [`email_unverified`](https://authtempo.com/docs/reference/errors/#email_unverified), [`impersonation_session`](https://authtempo.com/docs/reference/errors/#impersonation_session), [`anonymous_refused`](https://authtempo.com/docs/reference/errors/#anonymous_refused), [`origin_not_trusted`](https://authtempo.com/docs/reference/errors/#origin_not_trusted).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "email_unverified",
                        "impersonation_session",
                        "anonymous_refused",
                        "origin_not_trusted"
                      ]
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "The codes: [`not_found`](https://authtempo.com/docs/reference/errors/#not_found).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "not_found"
                      ]
                    }
                  }
                }
              }
            }
          },
          "409": {
            "description": "The codes: [`totp_enabled`](https://authtempo.com/docs/reference/errors/#totp_enabled), [`conflict`](https://authtempo.com/docs/reference/errors/#conflict).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "totp_enabled",
                        "conflict"
                      ]
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "The codes: [`rate_limited`](https://authtempo.com/docs/reference/errors/#rate_limited).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "rate_limited"
                      ]
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "The codes: [`internal`](https://authtempo.com/docs/reference/errors/#internal).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "internal"
                      ]
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "sessionCookie": []
          },
          {
            "sessionBearer": []
          }
        ]
      }
    },
    "/totp/enable": {
      "post": {
        "tags": [
          "totp"
        ],
        "summary": "POST /totp/enable",
        "operationId": "post-totp-enable",
        "externalDocs": {
          "url": "https://authtempo.com/docs/reference/routes/#post-totp-enable"
        },
        "x-authtempo-feature": "totp",
        "x-authtempo-default": "off",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "code": {
                    "type": "string",
                    "maxLength": 64
                  }
                },
                "required": [
                  "code"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The answer.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "enabled": {
                      "type": "boolean"
                    },
                    "enabledAt": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "date-time",
                          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "backupCodesLeft": {
                      "type": "integer",
                      "minimum": 0,
                      "maximum": 9007199254740991
                    },
                    "trustedDevices": {
                      "type": "integer",
                      "minimum": 0,
                      "maximum": 9007199254740991
                    },
                    "methods": {
                      "type": "array",
                      "items": {
                        "type": "string",
                        "enum": [
                          "totp",
                          "passkey",
                          "email"
                        ]
                      }
                    },
                    "backupCodesVersion": {
                      "anyOf": [
                        {
                          "type": "integer",
                          "minimum": -9007199254740991,
                          "maximum": 9007199254740991
                        },
                        {
                          "type": "null"
                        }
                      ]
                    }
                  },
                  "required": [
                    "enabled",
                    "enabledAt",
                    "backupCodesLeft",
                    "trustedDevices",
                    "methods",
                    "backupCodesVersion"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "The codes: [`invalid_body`](https://authtempo.com/docs/reference/errors/#invalid_body), [`totp_not_enabled`](https://authtempo.com/docs/reference/errors/#totp_not_enabled), [`invalid_code`](https://authtempo.com/docs/reference/errors/#invalid_code).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "invalid_body",
                        "totp_not_enabled",
                        "invalid_code"
                      ]
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The codes: [`unauthorized`](https://authtempo.com/docs/reference/errors/#unauthorized).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "unauthorized"
                      ]
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "The codes: [`email_unverified`](https://authtempo.com/docs/reference/errors/#email_unverified), [`session_not_fresh`](https://authtempo.com/docs/reference/errors/#session_not_fresh), [`impersonation_session`](https://authtempo.com/docs/reference/errors/#impersonation_session), [`anonymous_refused`](https://authtempo.com/docs/reference/errors/#anonymous_refused), [`origin_not_trusted`](https://authtempo.com/docs/reference/errors/#origin_not_trusted).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "email_unverified",
                        "session_not_fresh",
                        "impersonation_session",
                        "anonymous_refused",
                        "origin_not_trusted"
                      ]
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "The codes: [`not_found`](https://authtempo.com/docs/reference/errors/#not_found).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "not_found"
                      ]
                    }
                  }
                }
              }
            }
          },
          "409": {
            "description": "The codes: [`totp_enabled`](https://authtempo.com/docs/reference/errors/#totp_enabled), [`conflict`](https://authtempo.com/docs/reference/errors/#conflict).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "totp_enabled",
                        "conflict"
                      ]
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "The codes: [`rate_limited`](https://authtempo.com/docs/reference/errors/#rate_limited).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "rate_limited"
                      ]
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "The codes: [`internal`](https://authtempo.com/docs/reference/errors/#internal).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "internal"
                      ]
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "sessionCookie": []
          },
          {
            "sessionBearer": []
          }
        ]
      }
    },
    "/totp/disable": {
      "post": {
        "tags": [
          "totp"
        ],
        "summary": "POST /totp/disable",
        "operationId": "post-totp-disable",
        "externalDocs": {
          "url": "https://authtempo.com/docs/reference/routes/#post-totp-disable"
        },
        "x-authtempo-feature": "totp",
        "x-authtempo-default": "off",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "code": {
                    "type": "string",
                    "maxLength": 64
                  }
                },
                "required": [
                  "code"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The answer.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OkAnswer"
                }
              }
            }
          },
          "400": {
            "description": "The codes: [`invalid_body`](https://authtempo.com/docs/reference/errors/#invalid_body), [`totp_not_enabled`](https://authtempo.com/docs/reference/errors/#totp_not_enabled), [`invalid_code`](https://authtempo.com/docs/reference/errors/#invalid_code).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "invalid_body",
                        "totp_not_enabled",
                        "invalid_code"
                      ]
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The codes: [`unauthorized`](https://authtempo.com/docs/reference/errors/#unauthorized).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "unauthorized"
                      ]
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "The codes: [`session_not_fresh`](https://authtempo.com/docs/reference/errors/#session_not_fresh), [`impersonation_session`](https://authtempo.com/docs/reference/errors/#impersonation_session), [`origin_not_trusted`](https://authtempo.com/docs/reference/errors/#origin_not_trusted).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "session_not_fresh",
                        "impersonation_session",
                        "origin_not_trusted"
                      ]
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "The codes: [`not_found`](https://authtempo.com/docs/reference/errors/#not_found).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "not_found"
                      ]
                    }
                  }
                }
              }
            }
          },
          "409": {
            "description": "The codes: [`conflict`](https://authtempo.com/docs/reference/errors/#conflict).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "conflict"
                      ]
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "The codes: [`rate_limited`](https://authtempo.com/docs/reference/errors/#rate_limited).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "rate_limited"
                      ]
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "The codes: [`internal`](https://authtempo.com/docs/reference/errors/#internal).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "internal"
                      ]
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "sessionCookie": []
          },
          {
            "sessionBearer": []
          }
        ]
      }
    },
    "/totp/backup-codes": {
      "post": {
        "tags": [
          "totp"
        ],
        "summary": "POST /totp/backup-codes",
        "operationId": "post-totp-backup-codes",
        "externalDocs": {
          "url": "https://authtempo.com/docs/reference/routes/#post-totp-backup-codes"
        },
        "x-authtempo-feature": "totp",
        "x-authtempo-default": "off",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "code": {
                    "type": "string",
                    "maxLength": 64
                  }
                },
                "required": [
                  "code"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The answer.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "backupCodes": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    }
                  },
                  "required": [
                    "backupCodes"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "The codes: [`invalid_body`](https://authtempo.com/docs/reference/errors/#invalid_body), [`totp_not_enabled`](https://authtempo.com/docs/reference/errors/#totp_not_enabled), [`invalid_code`](https://authtempo.com/docs/reference/errors/#invalid_code).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "invalid_body",
                        "totp_not_enabled",
                        "invalid_code"
                      ]
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The codes: [`unauthorized`](https://authtempo.com/docs/reference/errors/#unauthorized).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "unauthorized"
                      ]
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "The codes: [`session_not_fresh`](https://authtempo.com/docs/reference/errors/#session_not_fresh), [`impersonation_session`](https://authtempo.com/docs/reference/errors/#impersonation_session), [`origin_not_trusted`](https://authtempo.com/docs/reference/errors/#origin_not_trusted).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "session_not_fresh",
                        "impersonation_session",
                        "origin_not_trusted"
                      ]
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "The codes: [`not_found`](https://authtempo.com/docs/reference/errors/#not_found).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "not_found"
                      ]
                    }
                  }
                }
              }
            }
          },
          "409": {
            "description": "The codes: [`conflict`](https://authtempo.com/docs/reference/errors/#conflict).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "conflict"
                      ]
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "The codes: [`rate_limited`](https://authtempo.com/docs/reference/errors/#rate_limited).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "rate_limited"
                      ]
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "The codes: [`internal`](https://authtempo.com/docs/reference/errors/#internal).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "internal"
                      ]
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "sessionCookie": []
          },
          {
            "sessionBearer": []
          }
        ]
      }
    },
    "/totp": {
      "get": {
        "tags": [
          "totp"
        ],
        "summary": "GET /totp",
        "operationId": "get-totp",
        "externalDocs": {
          "url": "https://authtempo.com/docs/reference/routes/#get-totp"
        },
        "x-authtempo-feature": "totp",
        "x-authtempo-default": "off",
        "responses": {
          "200": {
            "description": "The answer.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "enabled": {
                      "type": "boolean"
                    },
                    "enabledAt": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "date-time",
                          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "backupCodesLeft": {
                      "type": "integer",
                      "minimum": 0,
                      "maximum": 9007199254740991
                    },
                    "trustedDevices": {
                      "type": "integer",
                      "minimum": 0,
                      "maximum": 9007199254740991
                    },
                    "methods": {
                      "type": "array",
                      "items": {
                        "type": "string",
                        "enum": [
                          "totp",
                          "passkey",
                          "email"
                        ]
                      }
                    },
                    "backupCodesVersion": {
                      "anyOf": [
                        {
                          "type": "integer",
                          "minimum": -9007199254740991,
                          "maximum": 9007199254740991
                        },
                        {
                          "type": "null"
                        }
                      ]
                    }
                  },
                  "required": [
                    "enabled",
                    "enabledAt",
                    "backupCodesLeft",
                    "trustedDevices",
                    "methods",
                    "backupCodesVersion"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "401": {
            "description": "The codes: [`unauthorized`](https://authtempo.com/docs/reference/errors/#unauthorized).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "unauthorized"
                      ]
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "The codes: [`impersonation_session`](https://authtempo.com/docs/reference/errors/#impersonation_session).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "impersonation_session"
                      ]
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "The codes: [`not_found`](https://authtempo.com/docs/reference/errors/#not_found).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "not_found"
                      ]
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "The codes: [`internal`](https://authtempo.com/docs/reference/errors/#internal).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "internal"
                      ]
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "sessionCookie": []
          },
          {
            "sessionBearer": []
          }
        ]
      }
    },
    "/totp/devices/revoke": {
      "post": {
        "tags": [
          "totp"
        ],
        "summary": "POST /totp/devices/revoke",
        "operationId": "post-totp-devices-revoke",
        "externalDocs": {
          "url": "https://authtempo.com/docs/reference/routes/#post-totp-devices-revoke"
        },
        "x-authtempo-feature": "totp",
        "x-authtempo-default": "off",
        "responses": {
          "200": {
            "description": "The answer.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OkAnswer"
                }
              }
            }
          },
          "401": {
            "description": "The codes: [`unauthorized`](https://authtempo.com/docs/reference/errors/#unauthorized).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "unauthorized"
                      ]
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "The codes: [`impersonation_session`](https://authtempo.com/docs/reference/errors/#impersonation_session), [`origin_not_trusted`](https://authtempo.com/docs/reference/errors/#origin_not_trusted).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "impersonation_session",
                        "origin_not_trusted"
                      ]
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "The codes: [`not_found`](https://authtempo.com/docs/reference/errors/#not_found).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "not_found"
                      ]
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "The codes: [`internal`](https://authtempo.com/docs/reference/errors/#internal).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "internal"
                      ]
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "sessionCookie": []
          },
          {
            "sessionBearer": []
          }
        ]
      }
    },
    "/totp/verify": {
      "post": {
        "tags": [
          "totp"
        ],
        "summary": "POST /totp/verify",
        "operationId": "post-totp-verify",
        "externalDocs": {
          "url": "https://authtempo.com/docs/reference/routes/#post-totp-verify"
        },
        "x-authtempo-feature": "totp",
        "x-authtempo-default": "off",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "challenge": {
                    "type": "string",
                    "maxLength": 64
                  },
                  "code": {
                    "type": "string",
                    "maxLength": 16
                  },
                  "backupCode": {
                    "type": "string",
                    "maxLength": 64
                  },
                  "emailCode": {
                    "type": "string",
                    "maxLength": 16
                  },
                  "passkey": {},
                  "trustDevice": {
                    "type": "boolean"
                  }
                },
                "required": [
                  "challenge"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The answer.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "token": {
                      "type": "string"
                    },
                    "user": {
                      "$ref": "#/components/schemas/UserJson"
                    },
                    "session": {
                      "$ref": "#/components/schemas/SessionJson"
                    },
                    "next": {
                      "type": "string"
                    },
                    "backupCodesLeft": {
                      "type": "integer",
                      "minimum": 0,
                      "maximum": 9007199254740991
                    },
                    "trustDevice": {
                      "anyOf": [
                        {
                          "type": "object",
                          "properties": {
                            "token": {
                              "type": "string"
                            },
                            "expiresAt": {
                              "type": "string",
                              "format": "date-time",
                              "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                            }
                          },
                          "required": [
                            "token",
                            "expiresAt"
                          ],
                          "additionalProperties": false
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "via": {
                      "$ref": "#/components/schemas/LastMethodJson"
                    }
                  },
                  "required": [
                    "token",
                    "user",
                    "session",
                    "next",
                    "backupCodesLeft",
                    "trustDevice"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "The codes: [`invalid_body`](https://authtempo.com/docs/reference/errors/#invalid_body), [`invalid_token`](https://authtempo.com/docs/reference/errors/#invalid_token), [`invalid_code`](https://authtempo.com/docs/reference/errors/#invalid_code), [`too_many_attempts`](https://authtempo.com/docs/reference/errors/#too_many_attempts).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "invalid_body",
                        "invalid_token",
                        "invalid_code",
                        "too_many_attempts"
                      ]
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "The codes: [`hook_refused`](https://authtempo.com/docs/reference/errors/#hook_refused), [`account_banned`](https://authtempo.com/docs/reference/errors/#account_banned), [`impersonation_session`](https://authtempo.com/docs/reference/errors/#impersonation_session), [`sso_required`](https://authtempo.com/docs/reference/errors/#sso_required), [`origin_not_trusted`](https://authtempo.com/docs/reference/errors/#origin_not_trusted).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "hook_refused",
                        "account_banned",
                        "impersonation_session",
                        "sso_required",
                        "origin_not_trusted"
                      ]
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "The codes: [`not_found`](https://authtempo.com/docs/reference/errors/#not_found).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "not_found"
                      ]
                    }
                  }
                }
              }
            }
          },
          "409": {
            "description": "The codes: [`conflict`](https://authtempo.com/docs/reference/errors/#conflict).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "conflict"
                      ]
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "The codes: [`rate_limited`](https://authtempo.com/docs/reference/errors/#rate_limited).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "rate_limited"
                      ]
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "The codes: [`hook_failed`](https://authtempo.com/docs/reference/errors/#hook_failed), [`internal`](https://authtempo.com/docs/reference/errors/#internal).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "hook_failed",
                        "internal"
                      ]
                    }
                  }
                }
              }
            }
          }
        },
        "security": []
      }
    },
    "/totp/challenge": {
      "get": {
        "tags": [
          "totp"
        ],
        "summary": "GET /totp/challenge",
        "operationId": "get-totp-challenge",
        "externalDocs": {
          "url": "https://authtempo.com/docs/reference/routes/#get-totp-challenge"
        },
        "x-authtempo-feature": "totp",
        "x-authtempo-default": "off",
        "parameters": [
          {
            "name": "challenge",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^tf_[A-Za-z0-9_-]{43}$"
            }
          },
          {
            "name": "method",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "totp",
                "email"
              ]
            }
          },
          {
            "name": "backup",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "const": "1"
            }
          },
          {
            "name": "error",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "const": "invalid_code"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "A page of core.",
            "content": {
              "text/html": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "302": {
            "description": "A redirect. A failure carries its code in the `auth_error` query parameter of the location.",
            "headers": {
              "Location": {
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "description": "The codes: [`invalid_token`](https://authtempo.com/docs/reference/errors/#invalid_token). A browser flow can get the code in the `auth_error` query parameter of a 302 in place of this answer.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "invalid_token"
                      ]
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "The codes: [`impersonation_session`](https://authtempo.com/docs/reference/errors/#impersonation_session). A browser flow can get the code in the `auth_error` query parameter of a 302 in place of this answer.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "impersonation_session"
                      ]
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "The codes: [`not_found`](https://authtempo.com/docs/reference/errors/#not_found).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "not_found"
                      ]
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "The codes: [`internal`](https://authtempo.com/docs/reference/errors/#internal).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "internal"
                      ]
                    }
                  }
                }
              }
            }
          }
        },
        "security": []
      },
      "post": {
        "tags": [
          "totp"
        ],
        "summary": "POST /totp/challenge",
        "description": "A wrong code redirects back to the second factor page with `error=<code>`. A failure of the sign-in redirects with `auth_error`.",
        "operationId": "post-totp-challenge",
        "externalDocs": {
          "url": "https://authtempo.com/docs/reference/routes/#post-totp-challenge"
        },
        "x-authtempo-feature": "totp",
        "x-authtempo-default": "off",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "challenge": {
                    "type": "string",
                    "maxLength": 64
                  },
                  "code": {
                    "type": "string",
                    "maxLength": 16
                  },
                  "backupCode": {
                    "type": "string",
                    "maxLength": 64
                  },
                  "emailCode": {
                    "type": "string",
                    "maxLength": 16
                  },
                  "trustDevice": {
                    "type": "string",
                    "const": "1"
                  },
                  "action": {
                    "type": "string",
                    "enum": [
                      "send-email",
                      "trusted"
                    ]
                  }
                },
                "required": [
                  "challenge"
                ]
              }
            },
            "application/x-www-form-urlencoded": {
              "schema": {
                "type": "object",
                "properties": {
                  "challenge": {
                    "type": "string",
                    "maxLength": 64
                  },
                  "code": {
                    "type": "string",
                    "maxLength": 16
                  },
                  "backupCode": {
                    "type": "string",
                    "maxLength": 64
                  },
                  "emailCode": {
                    "type": "string",
                    "maxLength": 16
                  },
                  "trustDevice": {
                    "type": "string",
                    "const": "1"
                  },
                  "action": {
                    "type": "string",
                    "enum": [
                      "send-email",
                      "trusted"
                    ]
                  }
                },
                "required": [
                  "challenge"
                ]
              }
            }
          }
        },
        "responses": {
          "302": {
            "description": "A redirect. A failure carries its code in the `auth_error` query parameter of the location.",
            "headers": {
              "Location": {
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "description": "The codes: [`invalid_token`](https://authtempo.com/docs/reference/errors/#invalid_token), [`invalid_body`](https://authtempo.com/docs/reference/errors/#invalid_body), [`invalid_code`](https://authtempo.com/docs/reference/errors/#invalid_code), [`too_many_attempts`](https://authtempo.com/docs/reference/errors/#too_many_attempts). A form post gets `invalid_code` in the `error` query parameter of a 302 back to its own page. A browser flow can get `invalid_token`, `invalid_body`, `too_many_attempts` in the `auth_error` query parameter of a 302 in place of this answer.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "invalid_token",
                        "invalid_body",
                        "invalid_code",
                        "too_many_attempts"
                      ]
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "The codes: [`hook_refused`](https://authtempo.com/docs/reference/errors/#hook_refused), [`account_banned`](https://authtempo.com/docs/reference/errors/#account_banned), [`impersonation_session`](https://authtempo.com/docs/reference/errors/#impersonation_session), [`sso_required`](https://authtempo.com/docs/reference/errors/#sso_required), [`origin_not_trusted`](https://authtempo.com/docs/reference/errors/#origin_not_trusted). A browser flow can get the code in the `auth_error` query parameter of a 302 in place of this answer.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "hook_refused",
                        "account_banned",
                        "impersonation_session",
                        "sso_required",
                        "origin_not_trusted"
                      ]
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "The codes: [`not_found`](https://authtempo.com/docs/reference/errors/#not_found).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "not_found"
                      ]
                    }
                  }
                }
              }
            }
          },
          "409": {
            "description": "The codes: [`conflict`](https://authtempo.com/docs/reference/errors/#conflict). A browser flow can get the code in the `auth_error` query parameter of a 302 in place of this answer.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "conflict"
                      ]
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "The codes: [`rate_limited`](https://authtempo.com/docs/reference/errors/#rate_limited). A browser flow can get the code in the `auth_error` query parameter of a 302 in place of this answer.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "rate_limited"
                      ]
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "The codes: [`hook_failed`](https://authtempo.com/docs/reference/errors/#hook_failed), [`internal`](https://authtempo.com/docs/reference/errors/#internal). A browser flow can get the code in the `auth_error` query parameter of a 302 in place of this answer.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "hook_failed",
                        "internal"
                      ]
                    }
                  }
                }
              }
            }
          }
        },
        "security": []
      }
    },
    "/second-factor/passkey/enable": {
      "post": {
        "tags": [
          "totp"
        ],
        "summary": "POST /second-factor/passkey/enable",
        "operationId": "post-second-factor-passkey-enable",
        "externalDocs": {
          "url": "https://authtempo.com/docs/reference/routes/#post-second-factor-passkey-enable"
        },
        "x-authtempo-feature": "totp",
        "x-authtempo-default": "off",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "password": {
                    "type": "string",
                    "maxLength": 1024
                  },
                  "response": {}
                },
                "required": [
                  "password",
                  "response"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The answer.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "methods": {
                      "type": "array",
                      "items": {
                        "type": "string",
                        "enum": [
                          "totp",
                          "passkey",
                          "email"
                        ]
                      }
                    },
                    "backupCodes": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    }
                  },
                  "required": [
                    "methods",
                    "backupCodes"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "The codes: [`invalid_body`](https://authtempo.com/docs/reference/errors/#invalid_body), [`passkey_failed`](https://authtempo.com/docs/reference/errors/#passkey_failed).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "invalid_body",
                        "passkey_failed"
                      ]
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The codes: [`unauthorized`](https://authtempo.com/docs/reference/errors/#unauthorized), [`invalid_credentials`](https://authtempo.com/docs/reference/errors/#invalid_credentials).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "unauthorized",
                        "invalid_credentials"
                      ]
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "The codes: [`email_unverified`](https://authtempo.com/docs/reference/errors/#email_unverified), [`session_not_fresh`](https://authtempo.com/docs/reference/errors/#session_not_fresh), [`impersonation_session`](https://authtempo.com/docs/reference/errors/#impersonation_session), [`anonymous_refused`](https://authtempo.com/docs/reference/errors/#anonymous_refused), [`origin_not_trusted`](https://authtempo.com/docs/reference/errors/#origin_not_trusted).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "email_unverified",
                        "session_not_fresh",
                        "impersonation_session",
                        "anonymous_refused",
                        "origin_not_trusted"
                      ]
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "The codes: [`not_found`](https://authtempo.com/docs/reference/errors/#not_found).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "not_found"
                      ]
                    }
                  }
                }
              }
            }
          },
          "409": {
            "description": "The codes: [`conflict`](https://authtempo.com/docs/reference/errors/#conflict).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "conflict"
                      ]
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "The codes: [`rate_limited`](https://authtempo.com/docs/reference/errors/#rate_limited).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "rate_limited"
                      ]
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "The codes: [`internal`](https://authtempo.com/docs/reference/errors/#internal).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "internal"
                      ]
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "sessionCookie": []
          },
          {
            "sessionBearer": []
          }
        ]
      }
    },
    "/second-factor/passkey/options": {
      "post": {
        "tags": [
          "totp"
        ],
        "summary": "POST /second-factor/passkey/options",
        "operationId": "post-second-factor-passkey-options",
        "externalDocs": {
          "url": "https://authtempo.com/docs/reference/routes/#post-second-factor-passkey-options"
        },
        "x-authtempo-feature": "totp",
        "x-authtempo-default": "off",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "challenge": {
                    "type": "string",
                    "maxLength": 64
                  }
                },
                "required": [
                  "challenge"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The answer.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RequestOptionsJson"
                }
              }
            }
          },
          "400": {
            "description": "The codes: [`invalid_body`](https://authtempo.com/docs/reference/errors/#invalid_body), [`invalid_token`](https://authtempo.com/docs/reference/errors/#invalid_token).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "invalid_body",
                        "invalid_token"
                      ]
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "The codes: [`impersonation_session`](https://authtempo.com/docs/reference/errors/#impersonation_session), [`anonymous_refused`](https://authtempo.com/docs/reference/errors/#anonymous_refused), [`origin_not_trusted`](https://authtempo.com/docs/reference/errors/#origin_not_trusted).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "impersonation_session",
                        "anonymous_refused",
                        "origin_not_trusted"
                      ]
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "The codes: [`not_found`](https://authtempo.com/docs/reference/errors/#not_found).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "not_found"
                      ]
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "The codes: [`rate_limited`](https://authtempo.com/docs/reference/errors/#rate_limited).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "rate_limited"
                      ]
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "The codes: [`internal`](https://authtempo.com/docs/reference/errors/#internal).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "internal"
                      ]
                    }
                  }
                }
              }
            }
          }
        },
        "security": []
      }
    },
    "/second-factor/disable": {
      "post": {
        "tags": [
          "totp"
        ],
        "summary": "POST /second-factor/disable",
        "operationId": "post-second-factor-disable",
        "externalDocs": {
          "url": "https://authtempo.com/docs/reference/routes/#post-second-factor-disable"
        },
        "x-authtempo-feature": "totp",
        "x-authtempo-default": "off",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "method": {
                    "type": "string",
                    "enum": [
                      "passkey",
                      "email"
                    ]
                  },
                  "password": {
                    "type": "string",
                    "maxLength": 1024
                  }
                },
                "required": [
                  "method",
                  "password"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The answer.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "ok": {
                      "type": "boolean",
                      "const": true
                    },
                    "methods": {
                      "type": "array",
                      "items": {
                        "type": "string",
                        "enum": [
                          "totp",
                          "passkey",
                          "email"
                        ]
                      }
                    }
                  },
                  "required": [
                    "ok",
                    "methods"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "The codes: [`invalid_body`](https://authtempo.com/docs/reference/errors/#invalid_body), [`totp_not_enabled`](https://authtempo.com/docs/reference/errors/#totp_not_enabled).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "invalid_body",
                        "totp_not_enabled"
                      ]
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The codes: [`unauthorized`](https://authtempo.com/docs/reference/errors/#unauthorized), [`invalid_credentials`](https://authtempo.com/docs/reference/errors/#invalid_credentials).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "unauthorized",
                        "invalid_credentials"
                      ]
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "The codes: [`session_not_fresh`](https://authtempo.com/docs/reference/errors/#session_not_fresh), [`impersonation_session`](https://authtempo.com/docs/reference/errors/#impersonation_session), [`origin_not_trusted`](https://authtempo.com/docs/reference/errors/#origin_not_trusted).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "session_not_fresh",
                        "impersonation_session",
                        "origin_not_trusted"
                      ]
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "The codes: [`not_found`](https://authtempo.com/docs/reference/errors/#not_found).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "not_found"
                      ]
                    }
                  }
                }
              }
            }
          },
          "409": {
            "description": "The codes: [`conflict`](https://authtempo.com/docs/reference/errors/#conflict).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "conflict"
                      ]
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "The codes: [`rate_limited`](https://authtempo.com/docs/reference/errors/#rate_limited).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "rate_limited"
                      ]
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "The codes: [`internal`](https://authtempo.com/docs/reference/errors/#internal).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "internal"
                      ]
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "sessionCookie": []
          },
          {
            "sessionBearer": []
          }
        ]
      }
    },
    "/second-factor/email/enable": {
      "post": {
        "tags": [
          "totp"
        ],
        "summary": "POST /second-factor/email/enable",
        "operationId": "post-second-factor-email-enable",
        "externalDocs": {
          "url": "https://authtempo.com/docs/reference/routes/#post-second-factor-email-enable"
        },
        "x-authtempo-feature": "totp",
        "x-authtempo-default": "off",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "password": {
                    "type": "string",
                    "maxLength": 1024
                  }
                },
                "required": [
                  "password"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The answer.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "methods": {
                      "type": "array",
                      "items": {
                        "type": "string",
                        "enum": [
                          "totp",
                          "passkey",
                          "email"
                        ]
                      }
                    },
                    "backupCodes": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    }
                  },
                  "required": [
                    "methods",
                    "backupCodes"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "The codes: [`invalid_body`](https://authtempo.com/docs/reference/errors/#invalid_body).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "invalid_body"
                      ]
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The codes: [`unauthorized`](https://authtempo.com/docs/reference/errors/#unauthorized), [`invalid_credentials`](https://authtempo.com/docs/reference/errors/#invalid_credentials).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "unauthorized",
                        "invalid_credentials"
                      ]
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "The codes: [`email_unverified`](https://authtempo.com/docs/reference/errors/#email_unverified), [`session_not_fresh`](https://authtempo.com/docs/reference/errors/#session_not_fresh), [`impersonation_session`](https://authtempo.com/docs/reference/errors/#impersonation_session), [`anonymous_refused`](https://authtempo.com/docs/reference/errors/#anonymous_refused), [`origin_not_trusted`](https://authtempo.com/docs/reference/errors/#origin_not_trusted).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "email_unverified",
                        "session_not_fresh",
                        "impersonation_session",
                        "anonymous_refused",
                        "origin_not_trusted"
                      ]
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "The codes: [`not_found`](https://authtempo.com/docs/reference/errors/#not_found).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "not_found"
                      ]
                    }
                  }
                }
              }
            }
          },
          "409": {
            "description": "The codes: [`conflict`](https://authtempo.com/docs/reference/errors/#conflict).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "conflict"
                      ]
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "The codes: [`rate_limited`](https://authtempo.com/docs/reference/errors/#rate_limited).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "rate_limited"
                      ]
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "The codes: [`internal`](https://authtempo.com/docs/reference/errors/#internal).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "internal"
                      ]
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "sessionCookie": []
          },
          {
            "sessionBearer": []
          }
        ]
      }
    },
    "/second-factor/email/send": {
      "post": {
        "tags": [
          "totp"
        ],
        "summary": "POST /second-factor/email/send",
        "operationId": "post-second-factor-email-send",
        "externalDocs": {
          "url": "https://authtempo.com/docs/reference/routes/#post-second-factor-email-send"
        },
        "x-authtempo-feature": "totp",
        "x-authtempo-default": "off",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "challenge": {
                    "type": "string",
                    "maxLength": 64
                  }
                },
                "required": [
                  "challenge"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The answer.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SentAnswer"
                }
              }
            }
          },
          "400": {
            "description": "The codes: [`invalid_body`](https://authtempo.com/docs/reference/errors/#invalid_body), [`invalid_token`](https://authtempo.com/docs/reference/errors/#invalid_token).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "invalid_body",
                        "invalid_token"
                      ]
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "The codes: [`impersonation_session`](https://authtempo.com/docs/reference/errors/#impersonation_session), [`origin_not_trusted`](https://authtempo.com/docs/reference/errors/#origin_not_trusted).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "impersonation_session",
                        "origin_not_trusted"
                      ]
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "The codes: [`not_found`](https://authtempo.com/docs/reference/errors/#not_found).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "not_found"
                      ]
                    }
                  }
                }
              }
            }
          },
          "409": {
            "description": "The codes: [`conflict`](https://authtempo.com/docs/reference/errors/#conflict).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "conflict"
                      ]
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "The codes: [`rate_limited`](https://authtempo.com/docs/reference/errors/#rate_limited).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "rate_limited"
                      ]
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "The codes: [`internal`](https://authtempo.com/docs/reference/errors/#internal).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "internal"
                      ]
                    }
                  }
                }
              }
            }
          }
        },
        "security": []
      }
    },
    "/otp/request": {
      "post": {
        "tags": [
          "emailOtp"
        ],
        "summary": "POST /otp/request",
        "operationId": "post-otp-request",
        "externalDocs": {
          "url": "https://authtempo.com/docs/reference/routes/#post-otp-request"
        },
        "x-authtempo-feature": "emailOtp",
        "x-authtempo-default": "on",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "email": {
                    "type": "string",
                    "maxLength": 320
                  }
                },
                "required": [
                  "email"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The answer.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SentAnswer"
                }
              }
            }
          },
          "400": {
            "description": "The codes: [`invalid_body`](https://authtempo.com/docs/reference/errors/#invalid_body), [`captcha_required`](https://authtempo.com/docs/reference/errors/#captcha_required).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "invalid_body",
                        "captcha_required"
                      ]
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "The codes: [`captcha_failed`](https://authtempo.com/docs/reference/errors/#captcha_failed), [`origin_not_trusted`](https://authtempo.com/docs/reference/errors/#origin_not_trusted).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "captcha_failed",
                        "origin_not_trusted"
                      ]
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "The codes: [`not_found`](https://authtempo.com/docs/reference/errors/#not_found).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "not_found"
                      ]
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "The codes: [`rate_limited`](https://authtempo.com/docs/reference/errors/#rate_limited).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "rate_limited"
                      ]
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "The codes: [`internal`](https://authtempo.com/docs/reference/errors/#internal).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "internal"
                      ]
                    }
                  }
                }
              }
            }
          },
          "503": {
            "description": "The codes: [`captcha_unavailable`](https://authtempo.com/docs/reference/errors/#captcha_unavailable).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "captcha_unavailable"
                      ]
                    }
                  }
                }
              }
            }
          }
        },
        "security": []
      }
    },
    "/otp/verify": {
      "post": {
        "tags": [
          "emailOtp"
        ],
        "summary": "POST /otp/verify",
        "operationId": "post-otp-verify",
        "externalDocs": {
          "url": "https://authtempo.com/docs/reference/routes/#post-otp-verify"
        },
        "x-authtempo-feature": "emailOtp",
        "x-authtempo-default": "on",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "email": {
                    "type": "string",
                    "maxLength": 320
                  },
                  "code": {
                    "type": "string",
                    "maxLength": 16
                  },
                  "trustDevice": {
                    "type": "string",
                    "maxLength": 64
                  }
                },
                "required": [
                  "email",
                  "code"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The answer.",
            "content": {
              "application/json": {
                "schema": {
                  "anyOf": [
                    {
                      "$ref": "#/components/schemas/SignInAnswer"
                    },
                    {
                      "$ref": "#/components/schemas/TwoFactorChallenge"
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "description": "The codes: [`invalid_body`](https://authtempo.com/docs/reference/errors/#invalid_body), [`invalid_code`](https://authtempo.com/docs/reference/errors/#invalid_code), [`too_many_attempts`](https://authtempo.com/docs/reference/errors/#too_many_attempts).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "invalid_body",
                        "invalid_code",
                        "too_many_attempts"
                      ]
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "The codes: [`sign_up_closed`](https://authtempo.com/docs/reference/errors/#sign_up_closed), [`hook_refused`](https://authtempo.com/docs/reference/errors/#hook_refused), [`account_banned`](https://authtempo.com/docs/reference/errors/#account_banned), [`sso_required`](https://authtempo.com/docs/reference/errors/#sso_required), [`origin_not_trusted`](https://authtempo.com/docs/reference/errors/#origin_not_trusted).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "sign_up_closed",
                        "hook_refused",
                        "account_banned",
                        "sso_required",
                        "origin_not_trusted"
                      ]
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "The codes: [`not_found`](https://authtempo.com/docs/reference/errors/#not_found).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "not_found"
                      ]
                    }
                  }
                }
              }
            }
          },
          "409": {
            "description": "The codes: [`conflict`](https://authtempo.com/docs/reference/errors/#conflict).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "conflict"
                      ]
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "The codes: [`rate_limited`](https://authtempo.com/docs/reference/errors/#rate_limited).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "rate_limited"
                      ]
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "The codes: [`hook_failed`](https://authtempo.com/docs/reference/errors/#hook_failed), [`internal`](https://authtempo.com/docs/reference/errors/#internal).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "hook_failed",
                        "internal"
                      ]
                    }
                  }
                }
              }
            }
          }
        },
        "security": []
      }
    },
    "/otp/reset/request": {
      "post": {
        "tags": [
          "emailOtpReset"
        ],
        "summary": "POST /otp/reset/request",
        "operationId": "post-otp-reset-request",
        "externalDocs": {
          "url": "https://authtempo.com/docs/reference/routes/#post-otp-reset-request"
        },
        "x-authtempo-feature": "emailOtpReset",
        "x-authtempo-default": "off",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "email": {
                    "type": "string",
                    "maxLength": 320
                  }
                },
                "required": [
                  "email"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The answer.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SentAnswer"
                }
              }
            }
          },
          "400": {
            "description": "The codes: [`invalid_body`](https://authtempo.com/docs/reference/errors/#invalid_body), [`captcha_required`](https://authtempo.com/docs/reference/errors/#captcha_required).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "invalid_body",
                        "captcha_required"
                      ]
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "The codes: [`captcha_failed`](https://authtempo.com/docs/reference/errors/#captcha_failed), [`origin_not_trusted`](https://authtempo.com/docs/reference/errors/#origin_not_trusted).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "captcha_failed",
                        "origin_not_trusted"
                      ]
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "The codes: [`not_found`](https://authtempo.com/docs/reference/errors/#not_found).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "not_found"
                      ]
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "The codes: [`rate_limited`](https://authtempo.com/docs/reference/errors/#rate_limited).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "rate_limited"
                      ]
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "The codes: [`internal`](https://authtempo.com/docs/reference/errors/#internal).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "internal"
                      ]
                    }
                  }
                }
              }
            }
          },
          "503": {
            "description": "The codes: [`captcha_unavailable`](https://authtempo.com/docs/reference/errors/#captcha_unavailable).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "captcha_unavailable"
                      ]
                    }
                  }
                }
              }
            }
          }
        },
        "security": []
      }
    },
    "/otp/reset": {
      "post": {
        "tags": [
          "emailOtpReset"
        ],
        "summary": "POST /otp/reset",
        "operationId": "post-otp-reset",
        "externalDocs": {
          "url": "https://authtempo.com/docs/reference/routes/#post-otp-reset"
        },
        "x-authtempo-feature": "emailOtpReset",
        "x-authtempo-default": "off",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "email": {
                    "type": "string",
                    "maxLength": 320
                  },
                  "code": {
                    "type": "string",
                    "maxLength": 16
                  },
                  "password": {
                    "type": "string",
                    "maxLength": 1024
                  },
                  "trustDevice": {
                    "type": "string",
                    "maxLength": 64
                  }
                },
                "required": [
                  "email",
                  "code",
                  "password"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The answer.",
            "content": {
              "application/json": {
                "schema": {
                  "anyOf": [
                    {
                      "$ref": "#/components/schemas/SignedInAnswer"
                    },
                    {
                      "$ref": "#/components/schemas/TwoFactorChallenge"
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "description": "The codes: [`invalid_body`](https://authtempo.com/docs/reference/errors/#invalid_body), [`invalid_code`](https://authtempo.com/docs/reference/errors/#invalid_code), [`too_many_attempts`](https://authtempo.com/docs/reference/errors/#too_many_attempts), [`password_policy`](https://authtempo.com/docs/reference/errors/#password_policy), [`password_breached`](https://authtempo.com/docs/reference/errors/#password_breached).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "invalid_body",
                        "invalid_code",
                        "too_many_attempts",
                        "password_policy",
                        "password_breached"
                      ]
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "The codes: [`sign_up_closed`](https://authtempo.com/docs/reference/errors/#sign_up_closed), [`hook_refused`](https://authtempo.com/docs/reference/errors/#hook_refused), [`account_banned`](https://authtempo.com/docs/reference/errors/#account_banned), [`sso_required`](https://authtempo.com/docs/reference/errors/#sso_required), [`origin_not_trusted`](https://authtempo.com/docs/reference/errors/#origin_not_trusted).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "sign_up_closed",
                        "hook_refused",
                        "account_banned",
                        "sso_required",
                        "origin_not_trusted"
                      ]
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "The codes: [`not_found`](https://authtempo.com/docs/reference/errors/#not_found).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "not_found"
                      ]
                    }
                  }
                }
              }
            }
          },
          "409": {
            "description": "The codes: [`conflict`](https://authtempo.com/docs/reference/errors/#conflict).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "conflict"
                      ]
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "The codes: [`rate_limited`](https://authtempo.com/docs/reference/errors/#rate_limited).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "rate_limited"
                      ]
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "The codes: [`hook_failed`](https://authtempo.com/docs/reference/errors/#hook_failed), [`internal`](https://authtempo.com/docs/reference/errors/#internal).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "hook_failed",
                        "internal"
                      ]
                    }
                  }
                }
              }
            }
          },
          "503": {
            "description": "The codes: [`breach_check_unavailable`](https://authtempo.com/docs/reference/errors/#breach_check_unavailable).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "breach_check_unavailable"
                      ]
                    }
                  }
                }
              }
            }
          }
        },
        "security": []
      }
    },
    "/phone/request": {
      "post": {
        "tags": [
          "phone"
        ],
        "summary": "POST /phone/request",
        "operationId": "post-phone-request",
        "externalDocs": {
          "url": "https://authtempo.com/docs/reference/routes/#post-phone-request"
        },
        "x-authtempo-feature": "phone",
        "x-authtempo-default": "off",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "phone": {
                    "type": "string",
                    "maxLength": 32
                  }
                },
                "required": [
                  "phone"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The answer.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SentAnswer"
                }
              }
            }
          },
          "400": {
            "description": "The codes: [`invalid_body`](https://authtempo.com/docs/reference/errors/#invalid_body), [`captcha_required`](https://authtempo.com/docs/reference/errors/#captcha_required), [`phone_invalid`](https://authtempo.com/docs/reference/errors/#phone_invalid), [`phone_region`](https://authtempo.com/docs/reference/errors/#phone_region).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "invalid_body",
                        "captcha_required",
                        "phone_invalid",
                        "phone_region"
                      ]
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "The codes: [`captcha_failed`](https://authtempo.com/docs/reference/errors/#captcha_failed), [`origin_not_trusted`](https://authtempo.com/docs/reference/errors/#origin_not_trusted).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "captcha_failed",
                        "origin_not_trusted"
                      ]
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "The codes: [`not_found`](https://authtempo.com/docs/reference/errors/#not_found).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "not_found"
                      ]
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "The codes: [`rate_limited`](https://authtempo.com/docs/reference/errors/#rate_limited).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "rate_limited"
                      ]
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "The codes: [`internal`](https://authtempo.com/docs/reference/errors/#internal).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "internal"
                      ]
                    }
                  }
                }
              }
            }
          },
          "503": {
            "description": "The codes: [`captcha_unavailable`](https://authtempo.com/docs/reference/errors/#captcha_unavailable).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "captcha_unavailable"
                      ]
                    }
                  }
                }
              }
            }
          }
        },
        "security": []
      }
    },
    "/phone/verify": {
      "post": {
        "tags": [
          "phone"
        ],
        "summary": "POST /phone/verify",
        "operationId": "post-phone-verify",
        "externalDocs": {
          "url": "https://authtempo.com/docs/reference/routes/#post-phone-verify"
        },
        "x-authtempo-feature": "phone",
        "x-authtempo-default": "off",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "phone": {
                    "type": "string",
                    "maxLength": 32
                  },
                  "code": {
                    "type": "string",
                    "maxLength": 16
                  },
                  "trustDevice": {
                    "type": "string",
                    "maxLength": 64
                  }
                },
                "required": [
                  "phone",
                  "code"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The answer.",
            "content": {
              "application/json": {
                "schema": {
                  "anyOf": [
                    {
                      "$ref": "#/components/schemas/SignInAnswer"
                    },
                    {
                      "$ref": "#/components/schemas/TwoFactorChallenge"
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "description": "The codes: [`invalid_body`](https://authtempo.com/docs/reference/errors/#invalid_body), [`invalid_code`](https://authtempo.com/docs/reference/errors/#invalid_code), [`too_many_attempts`](https://authtempo.com/docs/reference/errors/#too_many_attempts).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "invalid_body",
                        "invalid_code",
                        "too_many_attempts"
                      ]
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "The codes: [`sign_up_closed`](https://authtempo.com/docs/reference/errors/#sign_up_closed), [`hook_refused`](https://authtempo.com/docs/reference/errors/#hook_refused), [`account_banned`](https://authtempo.com/docs/reference/errors/#account_banned), [`sso_required`](https://authtempo.com/docs/reference/errors/#sso_required), [`origin_not_trusted`](https://authtempo.com/docs/reference/errors/#origin_not_trusted).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "sign_up_closed",
                        "hook_refused",
                        "account_banned",
                        "sso_required",
                        "origin_not_trusted"
                      ]
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "The codes: [`not_found`](https://authtempo.com/docs/reference/errors/#not_found).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "not_found"
                      ]
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "The codes: [`rate_limited`](https://authtempo.com/docs/reference/errors/#rate_limited).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "rate_limited"
                      ]
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "The codes: [`hook_failed`](https://authtempo.com/docs/reference/errors/#hook_failed), [`internal`](https://authtempo.com/docs/reference/errors/#internal).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "hook_failed",
                        "internal"
                      ]
                    }
                  }
                }
              }
            }
          }
        },
        "security": []
      }
    },
    "/phone/add": {
      "post": {
        "tags": [
          "phone"
        ],
        "summary": "POST /phone/add",
        "operationId": "post-phone-add",
        "externalDocs": {
          "url": "https://authtempo.com/docs/reference/routes/#post-phone-add"
        },
        "x-authtempo-feature": "phone",
        "x-authtempo-default": "off",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "phone": {
                    "type": "string",
                    "maxLength": 32
                  }
                },
                "required": [
                  "phone"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The answer.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SentAnswer"
                }
              }
            }
          },
          "400": {
            "description": "The codes: [`invalid_body`](https://authtempo.com/docs/reference/errors/#invalid_body), [`phone_invalid`](https://authtempo.com/docs/reference/errors/#phone_invalid), [`phone_region`](https://authtempo.com/docs/reference/errors/#phone_region).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "invalid_body",
                        "phone_invalid",
                        "phone_region"
                      ]
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The codes: [`unauthorized`](https://authtempo.com/docs/reference/errors/#unauthorized).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "unauthorized"
                      ]
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "The codes: [`email_unverified`](https://authtempo.com/docs/reference/errors/#email_unverified), [`session_not_fresh`](https://authtempo.com/docs/reference/errors/#session_not_fresh), [`impersonation_session`](https://authtempo.com/docs/reference/errors/#impersonation_session), [`anonymous_refused`](https://authtempo.com/docs/reference/errors/#anonymous_refused), [`origin_not_trusted`](https://authtempo.com/docs/reference/errors/#origin_not_trusted).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "email_unverified",
                        "session_not_fresh",
                        "impersonation_session",
                        "anonymous_refused",
                        "origin_not_trusted"
                      ]
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "The codes: [`not_found`](https://authtempo.com/docs/reference/errors/#not_found).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "not_found"
                      ]
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "The codes: [`rate_limited`](https://authtempo.com/docs/reference/errors/#rate_limited).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "rate_limited"
                      ]
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "The codes: [`internal`](https://authtempo.com/docs/reference/errors/#internal).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "internal"
                      ]
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "sessionCookie": []
          },
          {
            "sessionBearer": []
          }
        ]
      }
    },
    "/phone/add/verify": {
      "post": {
        "tags": [
          "phone"
        ],
        "summary": "POST /phone/add/verify",
        "operationId": "post-phone-add-verify",
        "externalDocs": {
          "url": "https://authtempo.com/docs/reference/routes/#post-phone-add-verify"
        },
        "x-authtempo-feature": "phone",
        "x-authtempo-default": "off",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "code": {
                    "type": "string",
                    "maxLength": 16
                  }
                },
                "required": [
                  "code"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The answer.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "phone": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "phone"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "The codes: [`invalid_body`](https://authtempo.com/docs/reference/errors/#invalid_body), [`invalid_code`](https://authtempo.com/docs/reference/errors/#invalid_code), [`too_many_attempts`](https://authtempo.com/docs/reference/errors/#too_many_attempts).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "invalid_body",
                        "invalid_code",
                        "too_many_attempts"
                      ]
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The codes: [`unauthorized`](https://authtempo.com/docs/reference/errors/#unauthorized).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "unauthorized"
                      ]
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "The codes: [`email_unverified`](https://authtempo.com/docs/reference/errors/#email_unverified), [`session_not_fresh`](https://authtempo.com/docs/reference/errors/#session_not_fresh), [`hook_refused`](https://authtempo.com/docs/reference/errors/#hook_refused), [`impersonation_session`](https://authtempo.com/docs/reference/errors/#impersonation_session), [`anonymous_refused`](https://authtempo.com/docs/reference/errors/#anonymous_refused), [`origin_not_trusted`](https://authtempo.com/docs/reference/errors/#origin_not_trusted).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "email_unverified",
                        "session_not_fresh",
                        "hook_refused",
                        "impersonation_session",
                        "anonymous_refused",
                        "origin_not_trusted"
                      ]
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "The codes: [`not_found`](https://authtempo.com/docs/reference/errors/#not_found).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "not_found"
                      ]
                    }
                  }
                }
              }
            }
          },
          "409": {
            "description": "The codes: [`phone_taken`](https://authtempo.com/docs/reference/errors/#phone_taken), [`conflict`](https://authtempo.com/docs/reference/errors/#conflict).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "phone_taken",
                        "conflict"
                      ]
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "The codes: [`rate_limited`](https://authtempo.com/docs/reference/errors/#rate_limited).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "rate_limited"
                      ]
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "The codes: [`hook_failed`](https://authtempo.com/docs/reference/errors/#hook_failed), [`internal`](https://authtempo.com/docs/reference/errors/#internal).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "hook_failed",
                        "internal"
                      ]
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "sessionCookie": []
          },
          {
            "sessionBearer": []
          }
        ]
      }
    },
    "/phone/remove": {
      "post": {
        "tags": [
          "phone"
        ],
        "summary": "POST /phone/remove",
        "operationId": "post-phone-remove",
        "externalDocs": {
          "url": "https://authtempo.com/docs/reference/routes/#post-phone-remove"
        },
        "x-authtempo-feature": "phone",
        "x-authtempo-default": "off",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {},
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The answer.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OkAnswer"
                }
              }
            }
          },
          "400": {
            "description": "The codes: [`invalid_body`](https://authtempo.com/docs/reference/errors/#invalid_body).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "invalid_body"
                      ]
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The codes: [`unauthorized`](https://authtempo.com/docs/reference/errors/#unauthorized).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "unauthorized"
                      ]
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "The codes: [`session_not_fresh`](https://authtempo.com/docs/reference/errors/#session_not_fresh), [`hook_refused`](https://authtempo.com/docs/reference/errors/#hook_refused), [`impersonation_session`](https://authtempo.com/docs/reference/errors/#impersonation_session), [`origin_not_trusted`](https://authtempo.com/docs/reference/errors/#origin_not_trusted).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "session_not_fresh",
                        "hook_refused",
                        "impersonation_session",
                        "origin_not_trusted"
                      ]
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "The codes: [`not_found`](https://authtempo.com/docs/reference/errors/#not_found).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "not_found"
                      ]
                    }
                  }
                }
              }
            }
          },
          "409": {
            "description": "The codes: [`last_credential`](https://authtempo.com/docs/reference/errors/#last_credential), [`conflict`](https://authtempo.com/docs/reference/errors/#conflict).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "last_credential",
                        "conflict"
                      ]
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "The codes: [`hook_failed`](https://authtempo.com/docs/reference/errors/#hook_failed), [`internal`](https://authtempo.com/docs/reference/errors/#internal).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "hook_failed",
                        "internal"
                      ]
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "sessionCookie": []
          },
          {
            "sessionBearer": []
          }
        ]
      }
    },
    "/anonymous/sign-in": {
      "post": {
        "tags": [
          "anonymous"
        ],
        "summary": "POST /anonymous/sign-in",
        "operationId": "post-anonymous-sign-in",
        "externalDocs": {
          "url": "https://authtempo.com/docs/reference/routes/#post-anonymous-sign-in"
        },
        "x-authtempo-feature": "anonymous",
        "x-authtempo-default": "off",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {},
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The answer.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SignedInAnswer"
                }
              }
            }
          },
          "400": {
            "description": "The codes: [`invalid_body`](https://authtempo.com/docs/reference/errors/#invalid_body), [`captcha_required`](https://authtempo.com/docs/reference/errors/#captcha_required).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "invalid_body",
                        "captcha_required"
                      ]
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "The codes: [`captcha_failed`](https://authtempo.com/docs/reference/errors/#captcha_failed), [`sign_up_closed`](https://authtempo.com/docs/reference/errors/#sign_up_closed), [`hook_refused`](https://authtempo.com/docs/reference/errors/#hook_refused), [`origin_not_trusted`](https://authtempo.com/docs/reference/errors/#origin_not_trusted).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "captcha_failed",
                        "sign_up_closed",
                        "hook_refused",
                        "origin_not_trusted"
                      ]
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "The codes: [`not_found`](https://authtempo.com/docs/reference/errors/#not_found).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "not_found"
                      ]
                    }
                  }
                }
              }
            }
          },
          "409": {
            "description": "The codes: [`conflict`](https://authtempo.com/docs/reference/errors/#conflict).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "conflict"
                      ]
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "The codes: [`rate_limited`](https://authtempo.com/docs/reference/errors/#rate_limited).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "rate_limited"
                      ]
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "The codes: [`hook_failed`](https://authtempo.com/docs/reference/errors/#hook_failed), [`internal`](https://authtempo.com/docs/reference/errors/#internal).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "hook_failed",
                        "internal"
                      ]
                    }
                  }
                }
              }
            }
          },
          "503": {
            "description": "The codes: [`captcha_unavailable`](https://authtempo.com/docs/reference/errors/#captcha_unavailable).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "captcha_unavailable"
                      ]
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {},
          {
            "sessionCookie": []
          },
          {
            "sessionBearer": []
          }
        ]
      }
    },
    "/anonymous/delete": {
      "post": {
        "tags": [
          "anonymous"
        ],
        "summary": "POST /anonymous/delete",
        "operationId": "post-anonymous-delete",
        "externalDocs": {
          "url": "https://authtempo.com/docs/reference/routes/#post-anonymous-delete"
        },
        "x-authtempo-feature": "anonymous",
        "x-authtempo-default": "off",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {},
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The answer.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OkAnswer"
                }
              }
            }
          },
          "400": {
            "description": "The codes: [`invalid_body`](https://authtempo.com/docs/reference/errors/#invalid_body).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "invalid_body"
                      ]
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The codes: [`unauthorized`](https://authtempo.com/docs/reference/errors/#unauthorized).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "unauthorized"
                      ]
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "The codes: [`anonymous_refused`](https://authtempo.com/docs/reference/errors/#anonymous_refused), [`hook_refused`](https://authtempo.com/docs/reference/errors/#hook_refused), [`impersonation_session`](https://authtempo.com/docs/reference/errors/#impersonation_session), [`origin_not_trusted`](https://authtempo.com/docs/reference/errors/#origin_not_trusted).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "anonymous_refused",
                        "hook_refused",
                        "impersonation_session",
                        "origin_not_trusted"
                      ]
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "The codes: [`not_found`](https://authtempo.com/docs/reference/errors/#not_found).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "not_found"
                      ]
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "The codes: [`rate_limited`](https://authtempo.com/docs/reference/errors/#rate_limited).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "rate_limited"
                      ]
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "The codes: [`hook_failed`](https://authtempo.com/docs/reference/errors/#hook_failed), [`internal`](https://authtempo.com/docs/reference/errors/#internal).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "hook_failed",
                        "internal"
                      ]
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "sessionCookie": []
          },
          {
            "sessionBearer": []
          }
        ]
      }
    },
    "/handoff/start": {
      "get": {
        "tags": [
          "handoff"
        ],
        "summary": "GET /handoff/start",
        "operationId": "get-handoff-start",
        "externalDocs": {
          "url": "https://authtempo.com/docs/reference/routes/#get-handoff-start"
        },
        "x-authtempo-feature": "handoff",
        "x-authtempo-default": "off",
        "parameters": [
          {
            "name": "challenge",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^[A-Za-z0-9_-]{43}$"
            }
          },
          {
            "name": "redirect",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1
            }
          }
        ],
        "responses": {
          "200": {
            "description": "A page of core.",
            "content": {
              "text/html": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "302": {
            "description": "A redirect.",
            "headers": {
              "Location": {
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "description": "The codes: [`invalid_body`](https://authtempo.com/docs/reference/errors/#invalid_body).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "invalid_body"
                      ]
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "The codes: [`impersonation_session`](https://authtempo.com/docs/reference/errors/#impersonation_session).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "impersonation_session"
                      ]
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "The codes: [`not_found`](https://authtempo.com/docs/reference/errors/#not_found).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "not_found"
                      ]
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "The codes: [`rate_limited`](https://authtempo.com/docs/reference/errors/#rate_limited).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "rate_limited"
                      ]
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "The codes: [`internal`](https://authtempo.com/docs/reference/errors/#internal).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "internal"
                      ]
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {},
          {
            "sessionCookie": []
          },
          {
            "sessionBearer": []
          }
        ]
      }
    },
    "/handoff/continue": {
      "get": {
        "tags": [
          "handoff"
        ],
        "summary": "GET /handoff/continue",
        "operationId": "get-handoff-continue",
        "externalDocs": {
          "url": "https://authtempo.com/docs/reference/routes/#get-handoff-continue"
        },
        "x-authtempo-feature": "handoff",
        "x-authtempo-default": "off",
        "parameters": [
          {
            "name": "h",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^hs_[A-Za-z0-9_-]{43}$"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "A page of core.",
            "content": {
              "text/html": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "302": {
            "description": "A redirect. A failure carries its code in the `auth_error` query parameter of the location.",
            "headers": {
              "Location": {
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "description": "The codes: [`invalid_token`](https://authtempo.com/docs/reference/errors/#invalid_token), [`token_expired`](https://authtempo.com/docs/reference/errors/#token_expired). A browser flow can get the code in the `auth_error` query parameter of a 302 in place of this answer.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "invalid_token",
                        "token_expired"
                      ]
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "The codes: [`impersonation_session`](https://authtempo.com/docs/reference/errors/#impersonation_session). A browser flow can get the code in the `auth_error` query parameter of a 302 in place of this answer.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "impersonation_session"
                      ]
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "The codes: [`not_found`](https://authtempo.com/docs/reference/errors/#not_found).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "not_found"
                      ]
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "The codes: [`internal`](https://authtempo.com/docs/reference/errors/#internal).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "internal"
                      ]
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {},
          {
            "sessionCookie": []
          },
          {
            "sessionBearer": []
          }
        ]
      },
      "post": {
        "tags": [
          "handoff"
        ],
        "summary": "POST /handoff/continue",
        "operationId": "post-handoff-continue",
        "externalDocs": {
          "url": "https://authtempo.com/docs/reference/routes/#post-handoff-continue"
        },
        "x-authtempo-feature": "handoff",
        "x-authtempo-default": "off",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "h": {
                    "type": "string",
                    "maxLength": 64
                  }
                },
                "required": [
                  "h"
                ]
              }
            },
            "application/x-www-form-urlencoded": {
              "schema": {
                "type": "object",
                "properties": {
                  "h": {
                    "type": "string",
                    "maxLength": 64
                  }
                },
                "required": [
                  "h"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "A page of core.",
            "content": {
              "text/html": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "302": {
            "description": "A redirect. A failure carries its code in the `auth_error` query parameter of the location.",
            "headers": {
              "Location": {
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "description": "The codes: [`invalid_token`](https://authtempo.com/docs/reference/errors/#invalid_token), [`token_expired`](https://authtempo.com/docs/reference/errors/#token_expired). A browser flow can get the code in the `auth_error` query parameter of a 302 in place of this answer.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "invalid_token",
                        "token_expired"
                      ]
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "The codes: [`impersonation_session`](https://authtempo.com/docs/reference/errors/#impersonation_session), [`origin_not_trusted`](https://authtempo.com/docs/reference/errors/#origin_not_trusted). A browser flow can get the code in the `auth_error` query parameter of a 302 in place of this answer.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "impersonation_session",
                        "origin_not_trusted"
                      ]
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "The codes: [`not_found`](https://authtempo.com/docs/reference/errors/#not_found).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "not_found"
                      ]
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "The codes: [`internal`](https://authtempo.com/docs/reference/errors/#internal).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "internal"
                      ]
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {},
          {
            "sessionCookie": []
          },
          {
            "sessionBearer": []
          }
        ]
      }
    },
    "/handoff/redeem": {
      "post": {
        "tags": [
          "handoff"
        ],
        "summary": "POST /handoff/redeem",
        "operationId": "post-handoff-redeem",
        "externalDocs": {
          "url": "https://authtempo.com/docs/reference/routes/#post-handoff-redeem"
        },
        "x-authtempo-feature": "handoff",
        "x-authtempo-default": "off",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "code": {
                    "type": "string",
                    "maxLength": 64
                  },
                  "verifier": {
                    "type": "string",
                    "minLength": 43,
                    "maxLength": 128
                  }
                },
                "required": [
                  "code",
                  "verifier"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The answer.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SignedInAnswer"
                }
              }
            }
          },
          "400": {
            "description": "The codes: [`invalid_body`](https://authtempo.com/docs/reference/errors/#invalid_body), [`invalid_token`](https://authtempo.com/docs/reference/errors/#invalid_token), [`token_expired`](https://authtempo.com/docs/reference/errors/#token_expired).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "invalid_body",
                        "invalid_token",
                        "token_expired"
                      ]
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "The codes: [`hook_refused`](https://authtempo.com/docs/reference/errors/#hook_refused), [`account_banned`](https://authtempo.com/docs/reference/errors/#account_banned), [`origin_not_trusted`](https://authtempo.com/docs/reference/errors/#origin_not_trusted).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "hook_refused",
                        "account_banned",
                        "origin_not_trusted"
                      ]
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "The codes: [`not_found`](https://authtempo.com/docs/reference/errors/#not_found).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "not_found"
                      ]
                    }
                  }
                }
              }
            }
          },
          "409": {
            "description": "The codes: [`conflict`](https://authtempo.com/docs/reference/errors/#conflict).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "conflict"
                      ]
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "The codes: [`rate_limited`](https://authtempo.com/docs/reference/errors/#rate_limited).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "rate_limited"
                      ]
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "The codes: [`hook_failed`](https://authtempo.com/docs/reference/errors/#hook_failed), [`internal`](https://authtempo.com/docs/reference/errors/#internal).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "hook_failed",
                        "internal"
                      ]
                    }
                  }
                }
              }
            }
          }
        },
        "security": []
      }
    },
    "/organizations/create": {
      "post": {
        "tags": [
          "organizations"
        ],
        "summary": "POST /organizations/create",
        "operationId": "post-organizations-create",
        "externalDocs": {
          "url": "https://authtempo.com/docs/reference/routes/#post-organizations-create"
        },
        "x-authtempo-feature": "organizations",
        "x-authtempo-default": "off",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "slug": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64
                  },
                  "name": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 120
                  },
                  "metadata": {
                    "anyOf": [
                      {
                        "type": "object",
                        "propertyNames": {
                          "type": "string"
                        },
                        "additionalProperties": {}
                      },
                      {
                        "type": "null"
                      }
                    ]
                  }
                },
                "required": [
                  "slug",
                  "name"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The answer.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "organization": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string"
                        },
                        "slug": {
                          "type": "string"
                        },
                        "name": {
                          "type": "string"
                        },
                        "metadata": {
                          "anyOf": [
                            {
                              "type": "object",
                              "propertyNames": {
                                "type": "string"
                              },
                              "additionalProperties": {}
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "createdAt": {
                          "type": "string",
                          "format": "date-time",
                          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                        }
                      },
                      "required": [
                        "id",
                        "slug",
                        "name",
                        "metadata",
                        "createdAt"
                      ],
                      "additionalProperties": false
                    },
                    "member": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string"
                        },
                        "userId": {
                          "type": "string"
                        },
                        "role": {
                          "type": "string"
                        },
                        "email": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "name": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "createdAt": {
                          "type": "string",
                          "format": "date-time",
                          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                        }
                      },
                      "required": [
                        "id",
                        "userId",
                        "role",
                        "email",
                        "name",
                        "createdAt"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "required": [
                    "organization",
                    "member"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "The codes: [`invalid_body`](https://authtempo.com/docs/reference/errors/#invalid_body), [`slug_reserved`](https://authtempo.com/docs/reference/errors/#slug_reserved).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "invalid_body",
                        "slug_reserved"
                      ]
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The codes: [`unauthorized`](https://authtempo.com/docs/reference/errors/#unauthorized).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "unauthorized"
                      ]
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "The codes: [`email_unverified`](https://authtempo.com/docs/reference/errors/#email_unverified), [`hook_refused`](https://authtempo.com/docs/reference/errors/#hook_refused), [`anonymous_refused`](https://authtempo.com/docs/reference/errors/#anonymous_refused), [`origin_not_trusted`](https://authtempo.com/docs/reference/errors/#origin_not_trusted).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "email_unverified",
                        "hook_refused",
                        "anonymous_refused",
                        "origin_not_trusted"
                      ]
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "The codes: [`not_found`](https://authtempo.com/docs/reference/errors/#not_found).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "not_found"
                      ]
                    }
                  }
                }
              }
            }
          },
          "409": {
            "description": "The codes: [`slug_taken`](https://authtempo.com/docs/reference/errors/#slug_taken), [`organization_limit`](https://authtempo.com/docs/reference/errors/#organization_limit), [`conflict`](https://authtempo.com/docs/reference/errors/#conflict).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "slug_taken",
                        "organization_limit",
                        "conflict"
                      ]
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "The codes: [`rate_limited`](https://authtempo.com/docs/reference/errors/#rate_limited).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "rate_limited"
                      ]
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "The codes: [`hook_failed`](https://authtempo.com/docs/reference/errors/#hook_failed), [`internal`](https://authtempo.com/docs/reference/errors/#internal).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "hook_failed",
                        "internal"
                      ]
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "sessionCookie": []
          },
          {
            "sessionBearer": []
          }
        ]
      }
    },
    "/organizations": {
      "get": {
        "tags": [
          "organizations"
        ],
        "summary": "GET /organizations",
        "operationId": "get-organizations",
        "externalDocs": {
          "url": "https://authtempo.com/docs/reference/routes/#get-organizations"
        },
        "x-authtempo-feature": "organizations",
        "x-authtempo-default": "off",
        "responses": {
          "200": {
            "description": "The answer.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "organizations": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "organization": {
                            "type": "object",
                            "properties": {
                              "id": {
                                "type": "string"
                              },
                              "slug": {
                                "type": "string"
                              },
                              "name": {
                                "type": "string"
                              },
                              "metadata": {
                                "anyOf": [
                                  {
                                    "type": "object",
                                    "propertyNames": {
                                      "type": "string"
                                    },
                                    "additionalProperties": {}
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "createdAt": {
                                "type": "string",
                                "format": "date-time",
                                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                              }
                            },
                            "required": [
                              "id",
                              "slug",
                              "name",
                              "metadata",
                              "createdAt"
                            ],
                            "additionalProperties": false
                          },
                          "role": {
                            "type": "string"
                          }
                        },
                        "required": [
                          "organization",
                          "role"
                        ],
                        "additionalProperties": false
                      }
                    }
                  },
                  "required": [
                    "organizations"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "401": {
            "description": "The codes: [`unauthorized`](https://authtempo.com/docs/reference/errors/#unauthorized).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "unauthorized"
                      ]
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "The codes: [`not_found`](https://authtempo.com/docs/reference/errors/#not_found).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "not_found"
                      ]
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "The codes: [`internal`](https://authtempo.com/docs/reference/errors/#internal).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "internal"
                      ]
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "sessionCookie": []
          },
          {
            "sessionBearer": []
          }
        ]
      }
    },
    "/organizations/update": {
      "post": {
        "tags": [
          "organizations"
        ],
        "summary": "POST /organizations/update",
        "operationId": "post-organizations-update",
        "externalDocs": {
          "url": "https://authtempo.com/docs/reference/routes/#post-organizations-update"
        },
        "x-authtempo-feature": "organizations",
        "x-authtempo-default": "off",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "organizationId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64
                  },
                  "name": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 120
                  },
                  "slug": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64
                  },
                  "metadata": {
                    "anyOf": [
                      {
                        "type": "object",
                        "propertyNames": {
                          "type": "string"
                        },
                        "additionalProperties": {}
                      },
                      {
                        "type": "null"
                      }
                    ]
                  }
                },
                "required": [
                  "organizationId"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The answer.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "organization": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string"
                        },
                        "slug": {
                          "type": "string"
                        },
                        "name": {
                          "type": "string"
                        },
                        "metadata": {
                          "anyOf": [
                            {
                              "type": "object",
                              "propertyNames": {
                                "type": "string"
                              },
                              "additionalProperties": {}
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "createdAt": {
                          "type": "string",
                          "format": "date-time",
                          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                        }
                      },
                      "required": [
                        "id",
                        "slug",
                        "name",
                        "metadata",
                        "createdAt"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "required": [
                    "organization"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "The codes: [`invalid_body`](https://authtempo.com/docs/reference/errors/#invalid_body), [`slug_reserved`](https://authtempo.com/docs/reference/errors/#slug_reserved).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "invalid_body",
                        "slug_reserved"
                      ]
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The codes: [`unauthorized`](https://authtempo.com/docs/reference/errors/#unauthorized).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "unauthorized"
                      ]
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "The codes: [`email_unverified`](https://authtempo.com/docs/reference/errors/#email_unverified), [`forbidden_rank`](https://authtempo.com/docs/reference/errors/#forbidden_rank), [`hook_refused`](https://authtempo.com/docs/reference/errors/#hook_refused), [`origin_not_trusted`](https://authtempo.com/docs/reference/errors/#origin_not_trusted).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "email_unverified",
                        "forbidden_rank",
                        "hook_refused",
                        "origin_not_trusted"
                      ]
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "The codes: [`not_found`](https://authtempo.com/docs/reference/errors/#not_found).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "not_found"
                      ]
                    }
                  }
                }
              }
            }
          },
          "409": {
            "description": "The codes: [`slug_taken`](https://authtempo.com/docs/reference/errors/#slug_taken).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "slug_taken"
                      ]
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "The codes: [`rate_limited`](https://authtempo.com/docs/reference/errors/#rate_limited).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "rate_limited"
                      ]
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "The codes: [`hook_failed`](https://authtempo.com/docs/reference/errors/#hook_failed), [`internal`](https://authtempo.com/docs/reference/errors/#internal).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "hook_failed",
                        "internal"
                      ]
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "sessionCookie": []
          },
          {
            "sessionBearer": []
          }
        ]
      }
    },
    "/organizations/delete": {
      "post": {
        "tags": [
          "organizations"
        ],
        "summary": "POST /organizations/delete",
        "operationId": "post-organizations-delete",
        "externalDocs": {
          "url": "https://authtempo.com/docs/reference/routes/#post-organizations-delete"
        },
        "x-authtempo-feature": "organizations",
        "x-authtempo-default": "off",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "organizationId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64
                  }
                },
                "required": [
                  "organizationId"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The answer.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OkAnswer"
                }
              }
            }
          },
          "400": {
            "description": "The codes: [`invalid_body`](https://authtempo.com/docs/reference/errors/#invalid_body), [`slug_reserved`](https://authtempo.com/docs/reference/errors/#slug_reserved).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "invalid_body",
                        "slug_reserved"
                      ]
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The codes: [`unauthorized`](https://authtempo.com/docs/reference/errors/#unauthorized).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "unauthorized"
                      ]
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "The codes: [`email_unverified`](https://authtempo.com/docs/reference/errors/#email_unverified), [`forbidden_rank`](https://authtempo.com/docs/reference/errors/#forbidden_rank), [`hook_refused`](https://authtempo.com/docs/reference/errors/#hook_refused), [`impersonation_session`](https://authtempo.com/docs/reference/errors/#impersonation_session), [`origin_not_trusted`](https://authtempo.com/docs/reference/errors/#origin_not_trusted).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "email_unverified",
                        "forbidden_rank",
                        "hook_refused",
                        "impersonation_session",
                        "origin_not_trusted"
                      ]
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "The codes: [`not_found`](https://authtempo.com/docs/reference/errors/#not_found).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "not_found"
                      ]
                    }
                  }
                }
              }
            }
          },
          "409": {
            "description": "The codes: [`conflict`](https://authtempo.com/docs/reference/errors/#conflict), [`delete_too_large`](https://authtempo.com/docs/reference/errors/#delete_too_large).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "conflict",
                        "delete_too_large"
                      ]
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "The codes: [`hook_failed`](https://authtempo.com/docs/reference/errors/#hook_failed), [`internal`](https://authtempo.com/docs/reference/errors/#internal).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "hook_failed",
                        "internal"
                      ]
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "sessionCookie": []
          },
          {
            "sessionBearer": []
          }
        ]
      }
    },
    "/organizations/members": {
      "get": {
        "tags": [
          "organizations"
        ],
        "summary": "GET /organizations/members",
        "operationId": "get-organizations-members",
        "externalDocs": {
          "url": "https://authtempo.com/docs/reference/routes/#get-organizations-members"
        },
        "x-authtempo-feature": "organizations",
        "x-authtempo-default": "off",
        "parameters": [
          {
            "name": "organizationId",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 64
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The answer.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "members": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string"
                          },
                          "userId": {
                            "type": "string"
                          },
                          "role": {
                            "type": "string"
                          },
                          "email": {
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "name": {
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "createdAt": {
                            "type": "string",
                            "format": "date-time",
                            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                          }
                        },
                        "required": [
                          "id",
                          "userId",
                          "role",
                          "email",
                          "name",
                          "createdAt"
                        ],
                        "additionalProperties": false
                      }
                    }
                  },
                  "required": [
                    "members"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "The codes: [`invalid_body`](https://authtempo.com/docs/reference/errors/#invalid_body).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "invalid_body"
                      ]
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The codes: [`unauthorized`](https://authtempo.com/docs/reference/errors/#unauthorized).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "unauthorized"
                      ]
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "The codes: [`forbidden_rank`](https://authtempo.com/docs/reference/errors/#forbidden_rank).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "forbidden_rank"
                      ]
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "The codes: [`not_found`](https://authtempo.com/docs/reference/errors/#not_found).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "not_found"
                      ]
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "The codes: [`internal`](https://authtempo.com/docs/reference/errors/#internal).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "internal"
                      ]
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "sessionCookie": []
          },
          {
            "sessionBearer": []
          }
        ]
      }
    },
    "/organizations/members/add": {
      "post": {
        "tags": [
          "organizations"
        ],
        "summary": "POST /organizations/members/add",
        "operationId": "post-organizations-members-add",
        "externalDocs": {
          "url": "https://authtempo.com/docs/reference/routes/#post-organizations-members-add"
        },
        "x-authtempo-feature": "organizations",
        "x-authtempo-default": "off",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "organizationId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64
                  },
                  "userId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64
                  },
                  "role": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64
                  }
                },
                "required": [
                  "organizationId",
                  "userId",
                  "role"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The answer.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "member": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string"
                        },
                        "userId": {
                          "type": "string"
                        },
                        "role": {
                          "type": "string"
                        },
                        "email": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "name": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "createdAt": {
                          "type": "string",
                          "format": "date-time",
                          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                        }
                      },
                      "required": [
                        "id",
                        "userId",
                        "role",
                        "email",
                        "name",
                        "createdAt"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "required": [
                    "member"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "The codes: [`invalid_body`](https://authtempo.com/docs/reference/errors/#invalid_body).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "invalid_body"
                      ]
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The codes: [`unauthorized`](https://authtempo.com/docs/reference/errors/#unauthorized).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "unauthorized"
                      ]
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "The codes: [`email_unverified`](https://authtempo.com/docs/reference/errors/#email_unverified), [`forbidden_rank`](https://authtempo.com/docs/reference/errors/#forbidden_rank), [`hook_refused`](https://authtempo.com/docs/reference/errors/#hook_refused), [`impersonation_session`](https://authtempo.com/docs/reference/errors/#impersonation_session), [`origin_not_trusted`](https://authtempo.com/docs/reference/errors/#origin_not_trusted).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "email_unverified",
                        "forbidden_rank",
                        "hook_refused",
                        "impersonation_session",
                        "origin_not_trusted"
                      ]
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "The codes: [`not_found`](https://authtempo.com/docs/reference/errors/#not_found).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "not_found"
                      ]
                    }
                  }
                }
              }
            }
          },
          "409": {
            "description": "The codes: [`already_member`](https://authtempo.com/docs/reference/errors/#already_member), [`member_limit`](https://authtempo.com/docs/reference/errors/#member_limit), [`conflict`](https://authtempo.com/docs/reference/errors/#conflict).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "already_member",
                        "member_limit",
                        "conflict"
                      ]
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "The codes: [`hook_failed`](https://authtempo.com/docs/reference/errors/#hook_failed), [`internal`](https://authtempo.com/docs/reference/errors/#internal).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "hook_failed",
                        "internal"
                      ]
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "sessionCookie": []
          },
          {
            "sessionBearer": []
          }
        ]
      }
    },
    "/organizations/members/role": {
      "post": {
        "tags": [
          "organizations"
        ],
        "summary": "POST /organizations/members/role",
        "operationId": "post-organizations-members-role",
        "externalDocs": {
          "url": "https://authtempo.com/docs/reference/routes/#post-organizations-members-role"
        },
        "x-authtempo-feature": "organizations",
        "x-authtempo-default": "off",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "organizationId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64
                  },
                  "userId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64
                  },
                  "role": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64
                  }
                },
                "required": [
                  "organizationId",
                  "userId",
                  "role"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The answer.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "member": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string"
                        },
                        "userId": {
                          "type": "string"
                        },
                        "role": {
                          "type": "string"
                        },
                        "email": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "name": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "createdAt": {
                          "type": "string",
                          "format": "date-time",
                          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                        }
                      },
                      "required": [
                        "id",
                        "userId",
                        "role",
                        "email",
                        "name",
                        "createdAt"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "required": [
                    "member"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "The codes: [`invalid_body`](https://authtempo.com/docs/reference/errors/#invalid_body).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "invalid_body"
                      ]
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The codes: [`unauthorized`](https://authtempo.com/docs/reference/errors/#unauthorized).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "unauthorized"
                      ]
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "The codes: [`email_unverified`](https://authtempo.com/docs/reference/errors/#email_unverified), [`forbidden_rank`](https://authtempo.com/docs/reference/errors/#forbidden_rank), [`hook_refused`](https://authtempo.com/docs/reference/errors/#hook_refused), [`impersonation_session`](https://authtempo.com/docs/reference/errors/#impersonation_session), [`origin_not_trusted`](https://authtempo.com/docs/reference/errors/#origin_not_trusted).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "email_unverified",
                        "forbidden_rank",
                        "hook_refused",
                        "impersonation_session",
                        "origin_not_trusted"
                      ]
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "The codes: [`not_found`](https://authtempo.com/docs/reference/errors/#not_found).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "not_found"
                      ]
                    }
                  }
                }
              }
            }
          },
          "409": {
            "description": "The codes: [`last_owner`](https://authtempo.com/docs/reference/errors/#last_owner), [`conflict`](https://authtempo.com/docs/reference/errors/#conflict).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "last_owner",
                        "conflict"
                      ]
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "The codes: [`hook_failed`](https://authtempo.com/docs/reference/errors/#hook_failed), [`internal`](https://authtempo.com/docs/reference/errors/#internal).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "hook_failed",
                        "internal"
                      ]
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "sessionCookie": []
          },
          {
            "sessionBearer": []
          }
        ]
      }
    },
    "/organizations/members/remove": {
      "post": {
        "tags": [
          "organizations"
        ],
        "summary": "POST /organizations/members/remove",
        "operationId": "post-organizations-members-remove",
        "externalDocs": {
          "url": "https://authtempo.com/docs/reference/routes/#post-organizations-members-remove"
        },
        "x-authtempo-feature": "organizations",
        "x-authtempo-default": "off",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "organizationId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64
                  },
                  "userId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64
                  },
                  "revokeTokens": {
                    "type": "boolean"
                  }
                },
                "required": [
                  "organizationId",
                  "userId"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The answer.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OkAnswer"
                }
              }
            }
          },
          "400": {
            "description": "The codes: [`invalid_body`](https://authtempo.com/docs/reference/errors/#invalid_body).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "invalid_body"
                      ]
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The codes: [`unauthorized`](https://authtempo.com/docs/reference/errors/#unauthorized).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "unauthorized"
                      ]
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "The codes: [`session_not_fresh`](https://authtempo.com/docs/reference/errors/#session_not_fresh), [`email_unverified`](https://authtempo.com/docs/reference/errors/#email_unverified), [`forbidden_rank`](https://authtempo.com/docs/reference/errors/#forbidden_rank), [`hook_refused`](https://authtempo.com/docs/reference/errors/#hook_refused), [`impersonation_session`](https://authtempo.com/docs/reference/errors/#impersonation_session), [`origin_not_trusted`](https://authtempo.com/docs/reference/errors/#origin_not_trusted).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "session_not_fresh",
                        "email_unverified",
                        "forbidden_rank",
                        "hook_refused",
                        "impersonation_session",
                        "origin_not_trusted"
                      ]
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "The codes: [`not_found`](https://authtempo.com/docs/reference/errors/#not_found).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "not_found"
                      ]
                    }
                  }
                }
              }
            }
          },
          "409": {
            "description": "The codes: [`last_owner`](https://authtempo.com/docs/reference/errors/#last_owner), [`conflict`](https://authtempo.com/docs/reference/errors/#conflict).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "last_owner",
                        "conflict"
                      ]
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "The codes: [`hook_failed`](https://authtempo.com/docs/reference/errors/#hook_failed), [`internal`](https://authtempo.com/docs/reference/errors/#internal).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "hook_failed",
                        "internal"
                      ]
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "sessionCookie": []
          },
          {
            "sessionBearer": []
          }
        ]
      }
    },
    "/organizations/invite": {
      "post": {
        "tags": [
          "organizations"
        ],
        "summary": "POST /organizations/invite",
        "operationId": "post-organizations-invite",
        "externalDocs": {
          "url": "https://authtempo.com/docs/reference/routes/#post-organizations-invite"
        },
        "x-authtempo-feature": "organizations",
        "x-authtempo-default": "off",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "organizationId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64
                  },
                  "email": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 320
                  },
                  "role": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64
                  },
                  "teamIds": {
                    "maxItems": 20,
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64
                    }
                  }
                },
                "required": [
                  "organizationId",
                  "email",
                  "role"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The answer.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "invitation": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string"
                        },
                        "organizationId": {
                          "type": "string"
                        },
                        "email": {
                          "type": "string"
                        },
                        "role": {
                          "type": "string"
                        },
                        "inviterId": {
                          "type": "string"
                        },
                        "expiresAt": {
                          "type": "string",
                          "format": "date-time",
                          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                        },
                        "createdAt": {
                          "type": "string",
                          "format": "date-time",
                          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                        }
                      },
                      "required": [
                        "id",
                        "organizationId",
                        "email",
                        "role",
                        "inviterId",
                        "expiresAt",
                        "createdAt"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "required": [
                    "invitation"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "The codes: [`invalid_body`](https://authtempo.com/docs/reference/errors/#invalid_body).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "invalid_body"
                      ]
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The codes: [`unauthorized`](https://authtempo.com/docs/reference/errors/#unauthorized).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "unauthorized"
                      ]
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "The codes: [`email_unverified`](https://authtempo.com/docs/reference/errors/#email_unverified), [`forbidden_rank`](https://authtempo.com/docs/reference/errors/#forbidden_rank), [`hook_refused`](https://authtempo.com/docs/reference/errors/#hook_refused), [`impersonation_session`](https://authtempo.com/docs/reference/errors/#impersonation_session), [`origin_not_trusted`](https://authtempo.com/docs/reference/errors/#origin_not_trusted).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "email_unverified",
                        "forbidden_rank",
                        "hook_refused",
                        "impersonation_session",
                        "origin_not_trusted"
                      ]
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "The codes: [`not_found`](https://authtempo.com/docs/reference/errors/#not_found).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "not_found"
                      ]
                    }
                  }
                }
              }
            }
          },
          "409": {
            "description": "The codes: [`invitation_limit`](https://authtempo.com/docs/reference/errors/#invitation_limit).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "invitation_limit"
                      ]
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "The codes: [`rate_limited`](https://authtempo.com/docs/reference/errors/#rate_limited).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "rate_limited"
                      ]
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "The codes: [`hook_failed`](https://authtempo.com/docs/reference/errors/#hook_failed), [`internal`](https://authtempo.com/docs/reference/errors/#internal).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "hook_failed",
                        "internal"
                      ]
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "sessionCookie": []
          },
          {
            "sessionBearer": []
          }
        ]
      }
    },
    "/organizations/invitations": {
      "get": {
        "tags": [
          "organizations"
        ],
        "summary": "GET /organizations/invitations",
        "operationId": "get-organizations-invitations",
        "externalDocs": {
          "url": "https://authtempo.com/docs/reference/routes/#get-organizations-invitations"
        },
        "x-authtempo-feature": "organizations",
        "x-authtempo-default": "off",
        "parameters": [
          {
            "name": "organizationId",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 64
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The answer.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "invitations": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string"
                          },
                          "organizationId": {
                            "type": "string"
                          },
                          "email": {
                            "type": "string"
                          },
                          "role": {
                            "type": "string"
                          },
                          "inviterId": {
                            "type": "string"
                          },
                          "expiresAt": {
                            "type": "string",
                            "format": "date-time",
                            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                          },
                          "createdAt": {
                            "type": "string",
                            "format": "date-time",
                            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                          }
                        },
                        "required": [
                          "id",
                          "organizationId",
                          "email",
                          "role",
                          "inviterId",
                          "expiresAt",
                          "createdAt"
                        ],
                        "additionalProperties": false
                      }
                    }
                  },
                  "required": [
                    "invitations"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "The codes: [`invalid_body`](https://authtempo.com/docs/reference/errors/#invalid_body).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "invalid_body"
                      ]
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The codes: [`unauthorized`](https://authtempo.com/docs/reference/errors/#unauthorized).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "unauthorized"
                      ]
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "The codes: [`forbidden_rank`](https://authtempo.com/docs/reference/errors/#forbidden_rank).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "forbidden_rank"
                      ]
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "The codes: [`not_found`](https://authtempo.com/docs/reference/errors/#not_found).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "not_found"
                      ]
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "The codes: [`internal`](https://authtempo.com/docs/reference/errors/#internal).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "internal"
                      ]
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "sessionCookie": []
          },
          {
            "sessionBearer": []
          }
        ]
      }
    },
    "/organizations/audit": {
      "get": {
        "tags": [
          "organizations"
        ],
        "summary": "GET /organizations/audit",
        "operationId": "get-organizations-audit",
        "externalDocs": {
          "url": "https://authtempo.com/docs/reference/routes/#get-organizations-audit"
        },
        "x-authtempo-feature": "organizations",
        "x-authtempo-default": "off",
        "parameters": [
          {
            "name": "organizationId",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 64
            }
          },
          {
            "name": "after",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 64
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "pattern": "^(?:[1-9][0-9]?|100)$"
            }
          },
          {
            "name": "action",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "sso_connection_create",
                "sso_connection_update",
                "sso_connection_delete",
                "sso_domain_add",
                "sso_domain_verify",
                "sso_domain_update",
                "sso_domain_delete",
                "sso_domain_lost",
                "sso_enforce_off",
                "scim_token_create",
                "scim_token_revoke",
                "scim_user_create",
                "scim_user_update",
                "scim_user_deactivate",
                "scim_user_delete",
                "scim_group_create",
                "scim_group_update",
                "scim_group_delete",
                "sso_setup_link_create",
                "sso_setup_link_open",
                "sso_setup_link_revoke",
                "sso_setup_link_activate",
                "sso_test_run",
                "sso_setup_link_ready",
                "organization_member_add",
                "organization_member_remove",
                "organization_member_role_change",
                "organization_invitation_create",
                "organization_invitation_accept",
                "organization_invitation_revoke",
                "organization_token_create",
                "organization_token_revoke",
                "organization_role_create",
                "organization_role_update",
                "organization_role_delete"
              ]
            }
          },
          {
            "name": "from",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "format": "date-time",
              "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
            }
          },
          {
            "name": "to",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "format": "date-time",
              "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The answer.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "rows": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string"
                          },
                          "at": {
                            "type": "string",
                            "format": "date-time",
                            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                          },
                          "actor": {
                            "type": "object",
                            "properties": {
                              "kind": {
                                "type": "string",
                                "enum": [
                                  "member",
                                  "platform",
                                  "scim",
                                  "app"
                                ]
                              },
                              "id": {
                                "type": [
                                  "string",
                                  "null"
                                ]
                              },
                              "email": {
                                "type": [
                                  "string",
                                  "null"
                                ]
                              }
                            },
                            "required": [
                              "kind",
                              "id",
                              "email"
                            ],
                            "additionalProperties": false
                          },
                          "action": {
                            "type": "string"
                          },
                          "targetUserId": {
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "data": {
                            "anyOf": [
                              {
                                "type": "object",
                                "propertyNames": {
                                  "type": "string"
                                },
                                "additionalProperties": {}
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "ip": {
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "userAgent": {
                            "type": [
                              "string",
                              "null"
                            ]
                          }
                        },
                        "required": [
                          "id",
                          "at",
                          "actor",
                          "action",
                          "targetUserId",
                          "data",
                          "ip",
                          "userAgent"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "next": {
                      "type": [
                        "string",
                        "null"
                      ]
                    }
                  },
                  "required": [
                    "rows",
                    "next"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "The codes: [`invalid_body`](https://authtempo.com/docs/reference/errors/#invalid_body).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "invalid_body"
                      ]
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The codes: [`unauthorized`](https://authtempo.com/docs/reference/errors/#unauthorized).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "unauthorized"
                      ]
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "The codes: [`forbidden_rank`](https://authtempo.com/docs/reference/errors/#forbidden_rank).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "forbidden_rank"
                      ]
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "The codes: [`not_found`](https://authtempo.com/docs/reference/errors/#not_found).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "not_found"
                      ]
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "The codes: [`internal`](https://authtempo.com/docs/reference/errors/#internal).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "internal"
                      ]
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "sessionCookie": []
          },
          {
            "sessionBearer": []
          }
        ]
      }
    },
    "/organizations/invitations/revoke": {
      "post": {
        "tags": [
          "organizations"
        ],
        "summary": "POST /organizations/invitations/revoke",
        "operationId": "post-organizations-invitations-revoke",
        "externalDocs": {
          "url": "https://authtempo.com/docs/reference/routes/#post-organizations-invitations-revoke"
        },
        "x-authtempo-feature": "organizations",
        "x-authtempo-default": "off",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "organizationId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64
                  },
                  "invitationId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64
                  }
                },
                "required": [
                  "organizationId",
                  "invitationId"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The answer.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OkAnswer"
                }
              }
            }
          },
          "400": {
            "description": "The codes: [`invalid_body`](https://authtempo.com/docs/reference/errors/#invalid_body).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "invalid_body"
                      ]
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The codes: [`unauthorized`](https://authtempo.com/docs/reference/errors/#unauthorized).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "unauthorized"
                      ]
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "The codes: [`email_unverified`](https://authtempo.com/docs/reference/errors/#email_unverified), [`forbidden_rank`](https://authtempo.com/docs/reference/errors/#forbidden_rank), [`origin_not_trusted`](https://authtempo.com/docs/reference/errors/#origin_not_trusted).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "email_unverified",
                        "forbidden_rank",
                        "origin_not_trusted"
                      ]
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "The codes: [`not_found`](https://authtempo.com/docs/reference/errors/#not_found).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "not_found"
                      ]
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "The codes: [`internal`](https://authtempo.com/docs/reference/errors/#internal).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "internal"
                      ]
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "sessionCookie": []
          },
          {
            "sessionBearer": []
          }
        ]
      }
    },
    "/organizations/invitations/accept": {
      "post": {
        "tags": [
          "organizations"
        ],
        "summary": "POST /organizations/invitations/accept",
        "operationId": "post-organizations-invitations-accept",
        "externalDocs": {
          "url": "https://authtempo.com/docs/reference/routes/#post-organizations-invitations-accept"
        },
        "x-authtempo-feature": "organizations",
        "x-authtempo-default": "off",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "token": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64
                  }
                },
                "required": [
                  "token"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The answer.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "organization": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string"
                        },
                        "slug": {
                          "type": "string"
                        },
                        "name": {
                          "type": "string"
                        },
                        "metadata": {
                          "anyOf": [
                            {
                              "type": "object",
                              "propertyNames": {
                                "type": "string"
                              },
                              "additionalProperties": {}
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "createdAt": {
                          "type": "string",
                          "format": "date-time",
                          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                        }
                      },
                      "required": [
                        "id",
                        "slug",
                        "name",
                        "metadata",
                        "createdAt"
                      ],
                      "additionalProperties": false
                    },
                    "member": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string"
                        },
                        "userId": {
                          "type": "string"
                        },
                        "role": {
                          "type": "string"
                        },
                        "email": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "name": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "createdAt": {
                          "type": "string",
                          "format": "date-time",
                          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                        }
                      },
                      "required": [
                        "id",
                        "userId",
                        "role",
                        "email",
                        "name",
                        "createdAt"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "required": [
                    "organization",
                    "member"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "The codes: [`invalid_body`](https://authtempo.com/docs/reference/errors/#invalid_body), [`invalid_token`](https://authtempo.com/docs/reference/errors/#invalid_token), [`token_expired`](https://authtempo.com/docs/reference/errors/#token_expired).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "invalid_body",
                        "invalid_token",
                        "token_expired"
                      ]
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The codes: [`unauthorized`](https://authtempo.com/docs/reference/errors/#unauthorized).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "unauthorized"
                      ]
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "The codes: [`email_unverified`](https://authtempo.com/docs/reference/errors/#email_unverified), [`email_mismatch`](https://authtempo.com/docs/reference/errors/#email_mismatch), [`hook_refused`](https://authtempo.com/docs/reference/errors/#hook_refused), [`anonymous_refused`](https://authtempo.com/docs/reference/errors/#anonymous_refused), [`origin_not_trusted`](https://authtempo.com/docs/reference/errors/#origin_not_trusted).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "email_unverified",
                        "email_mismatch",
                        "hook_refused",
                        "anonymous_refused",
                        "origin_not_trusted"
                      ]
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "The codes: [`not_found`](https://authtempo.com/docs/reference/errors/#not_found).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "not_found"
                      ]
                    }
                  }
                }
              }
            }
          },
          "409": {
            "description": "The codes: [`already_member`](https://authtempo.com/docs/reference/errors/#already_member), [`member_limit`](https://authtempo.com/docs/reference/errors/#member_limit), [`team_member_limit`](https://authtempo.com/docs/reference/errors/#team_member_limit), [`conflict`](https://authtempo.com/docs/reference/errors/#conflict).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "already_member",
                        "member_limit",
                        "team_member_limit",
                        "conflict"
                      ]
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "The codes: [`rate_limited`](https://authtempo.com/docs/reference/errors/#rate_limited).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "rate_limited"
                      ]
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "The codes: [`hook_failed`](https://authtempo.com/docs/reference/errors/#hook_failed), [`internal`](https://authtempo.com/docs/reference/errors/#internal).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "hook_failed",
                        "internal"
                      ]
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "sessionCookie": []
          },
          {
            "sessionBearer": []
          }
        ]
      }
    },
    "/organizations/invitations/decline": {
      "post": {
        "tags": [
          "organizations"
        ],
        "summary": "POST /organizations/invitations/decline",
        "operationId": "post-organizations-invitations-decline",
        "externalDocs": {
          "url": "https://authtempo.com/docs/reference/routes/#post-organizations-invitations-decline"
        },
        "x-authtempo-feature": "organizations",
        "x-authtempo-default": "off",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "token": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64
                  }
                },
                "required": [
                  "token"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The answer.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OkAnswer"
                }
              }
            }
          },
          "400": {
            "description": "The codes: [`invalid_body`](https://authtempo.com/docs/reference/errors/#invalid_body), [`invalid_token`](https://authtempo.com/docs/reference/errors/#invalid_token), [`token_expired`](https://authtempo.com/docs/reference/errors/#token_expired).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "invalid_body",
                        "invalid_token",
                        "token_expired"
                      ]
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "The codes: [`origin_not_trusted`](https://authtempo.com/docs/reference/errors/#origin_not_trusted).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "origin_not_trusted"
                      ]
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "The codes: [`not_found`](https://authtempo.com/docs/reference/errors/#not_found).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "not_found"
                      ]
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "The codes: [`internal`](https://authtempo.com/docs/reference/errors/#internal).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "internal"
                      ]
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {},
          {
            "sessionCookie": []
          },
          {
            "sessionBearer": []
          }
        ]
      }
    },
    "/organizations/has-permission": {
      "post": {
        "tags": [
          "organizations"
        ],
        "summary": "POST /organizations/has-permission",
        "operationId": "post-organizations-has-permission",
        "externalDocs": {
          "url": "https://authtempo.com/docs/reference/routes/#post-organizations-has-permission"
        },
        "x-authtempo-feature": "organizations",
        "x-authtempo-default": "off",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "organizationId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64
                  },
                  "permissions": {
                    "type": "object",
                    "propertyNames": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 32
                    },
                    "additionalProperties": {
                      "maxItems": 64,
                      "type": "array",
                      "items": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 32
                      }
                    }
                  }
                },
                "required": [
                  "organizationId",
                  "permissions"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The answer.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean"
                    }
                  },
                  "required": [
                    "success"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "The codes: [`invalid_body`](https://authtempo.com/docs/reference/errors/#invalid_body).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "invalid_body"
                      ]
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The codes: [`unauthorized`](https://authtempo.com/docs/reference/errors/#unauthorized).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "unauthorized"
                      ]
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "The codes: [`origin_not_trusted`](https://authtempo.com/docs/reference/errors/#origin_not_trusted).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "origin_not_trusted"
                      ]
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "The codes: [`not_found`](https://authtempo.com/docs/reference/errors/#not_found).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "not_found"
                      ]
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "The codes: [`internal`](https://authtempo.com/docs/reference/errors/#internal).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "internal"
                      ]
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "sessionCookie": []
          },
          {
            "sessionBearer": []
          }
        ]
      }
    },
    "/organizations/permissions": {
      "get": {
        "tags": [
          "organizations"
        ],
        "summary": "GET /organizations/permissions",
        "operationId": "get-organizations-permissions",
        "externalDocs": {
          "url": "https://authtempo.com/docs/reference/routes/#get-organizations-permissions"
        },
        "x-authtempo-feature": "organizations",
        "x-authtempo-default": "off",
        "parameters": [
          {
            "name": "organizationId",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 64
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The answer.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "role": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "permissions": {
                      "type": "object",
                      "propertyNames": {
                        "type": "string"
                      },
                      "additionalProperties": {
                        "type": "array",
                        "items": {
                          "type": "string"
                        }
                      }
                    }
                  },
                  "required": [
                    "role",
                    "permissions"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "The codes: [`invalid_body`](https://authtempo.com/docs/reference/errors/#invalid_body).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "invalid_body"
                      ]
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The codes: [`unauthorized`](https://authtempo.com/docs/reference/errors/#unauthorized).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "unauthorized"
                      ]
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "The codes: [`not_found`](https://authtempo.com/docs/reference/errors/#not_found).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "not_found"
                      ]
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "The codes: [`internal`](https://authtempo.com/docs/reference/errors/#internal).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "internal"
                      ]
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "sessionCookie": []
          },
          {
            "sessionBearer": []
          }
        ]
      }
    },
    "/organizations/check-slug": {
      "post": {
        "tags": [
          "organizations"
        ],
        "summary": "POST /organizations/check-slug",
        "operationId": "post-organizations-check-slug",
        "externalDocs": {
          "url": "https://authtempo.com/docs/reference/routes/#post-organizations-check-slug"
        },
        "x-authtempo-feature": "organizations",
        "x-authtempo-default": "off",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "slug": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64
                  }
                },
                "required": [
                  "slug"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The answer.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "slug": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "status": {
                      "type": "string",
                      "enum": [
                        "available",
                        "taken",
                        "reserved",
                        "invalid"
                      ]
                    }
                  },
                  "required": [
                    "slug",
                    "status"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "The codes: [`invalid_body`](https://authtempo.com/docs/reference/errors/#invalid_body).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "invalid_body"
                      ]
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The codes: [`unauthorized`](https://authtempo.com/docs/reference/errors/#unauthorized).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "unauthorized"
                      ]
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "The codes: [`email_unverified`](https://authtempo.com/docs/reference/errors/#email_unverified), [`origin_not_trusted`](https://authtempo.com/docs/reference/errors/#origin_not_trusted).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "email_unverified",
                        "origin_not_trusted"
                      ]
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "The codes: [`not_found`](https://authtempo.com/docs/reference/errors/#not_found).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "not_found"
                      ]
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "The codes: [`rate_limited`](https://authtempo.com/docs/reference/errors/#rate_limited).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "rate_limited"
                      ]
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "The codes: [`internal`](https://authtempo.com/docs/reference/errors/#internal).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "internal"
                      ]
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "sessionCookie": []
          },
          {
            "sessionBearer": []
          }
        ]
      }
    },
    "/organizations/tokens": {
      "post": {
        "tags": [
          "organizations"
        ],
        "summary": "POST /organizations/tokens",
        "operationId": "post-organizations-tokens",
        "externalDocs": {
          "url": "https://authtempo.com/docs/reference/routes/#post-organizations-tokens"
        },
        "x-authtempo-feature": "organizations",
        "x-authtempo-default": "off",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "organizationId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64
                  },
                  "name": {
                    "type": "string",
                    "maxLength": 200
                  },
                  "expiresInDays": {
                    "anyOf": [
                      {
                        "type": "integer",
                        "minimum": 1,
                        "maximum": 3650
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "permissions": {
                    "type": "object",
                    "propertyNames": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 32
                    },
                    "additionalProperties": {
                      "maxItems": 64,
                      "type": "array",
                      "items": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 32
                      }
                    }
                  },
                  "metadata": {
                    "anyOf": [
                      {
                        "type": "object",
                        "propertyNames": {
                          "type": "string"
                        },
                        "additionalProperties": {}
                      },
                      {
                        "type": "null"
                      }
                    ]
                  }
                },
                "required": [
                  "organizationId",
                  "name",
                  "permissions"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The answer.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "token": {
                      "type": "string"
                    },
                    "apiToken": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string"
                        },
                        "organizationId": {
                          "type": "string"
                        },
                        "name": {
                          "type": "string"
                        },
                        "hint": {
                          "type": "string"
                        },
                        "permissions": {
                          "type": "object",
                          "propertyNames": {
                            "type": "string"
                          },
                          "additionalProperties": {
                            "type": "array",
                            "items": {
                              "type": "string"
                            }
                          }
                        },
                        "metadata": {
                          "anyOf": [
                            {
                              "type": "object",
                              "propertyNames": {
                                "type": "string"
                              },
                              "additionalProperties": {}
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "expiresAt": {
                          "anyOf": [
                            {
                              "type": "string",
                              "format": "date-time",
                              "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "lastUsedAt": {
                          "anyOf": [
                            {
                              "type": "string",
                              "format": "date-time",
                              "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "rateLimit": {
                          "anyOf": [
                            {
                              "type": "object",
                              "properties": {
                                "seconds": {
                                  "type": "integer",
                                  "minimum": -9007199254740991,
                                  "maximum": 9007199254740991
                                },
                                "max": {
                                  "type": "integer",
                                  "minimum": -9007199254740991,
                                  "maximum": 9007199254740991
                                }
                              },
                              "required": [
                                "seconds",
                                "max"
                              ],
                              "additionalProperties": false
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "remaining": {
                          "anyOf": [
                            {
                              "type": "integer",
                              "minimum": -9007199254740991,
                              "maximum": 9007199254740991
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "retired": {
                          "type": "boolean"
                        },
                        "createdById": {
                          "type": "string"
                        },
                        "creatorIsMember": {
                          "type": "boolean"
                        },
                        "createdAt": {
                          "type": "string",
                          "format": "date-time",
                          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                        }
                      },
                      "required": [
                        "id",
                        "organizationId",
                        "name",
                        "hint",
                        "permissions",
                        "metadata",
                        "expiresAt",
                        "lastUsedAt",
                        "rateLimit",
                        "remaining",
                        "retired",
                        "createdById",
                        "creatorIsMember",
                        "createdAt"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "required": [
                    "token",
                    "apiToken"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "The codes: [`invalid_body`](https://authtempo.com/docs/reference/errors/#invalid_body).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "invalid_body"
                      ]
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The codes: [`unauthorized`](https://authtempo.com/docs/reference/errors/#unauthorized).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "unauthorized"
                      ]
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "The codes: [`session_not_fresh`](https://authtempo.com/docs/reference/errors/#session_not_fresh), [`email_unverified`](https://authtempo.com/docs/reference/errors/#email_unverified), [`forbidden_rank`](https://authtempo.com/docs/reference/errors/#forbidden_rank), [`impersonation_session`](https://authtempo.com/docs/reference/errors/#impersonation_session), [`origin_not_trusted`](https://authtempo.com/docs/reference/errors/#origin_not_trusted).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "session_not_fresh",
                        "email_unverified",
                        "forbidden_rank",
                        "impersonation_session",
                        "origin_not_trusted"
                      ]
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "The codes: [`not_found`](https://authtempo.com/docs/reference/errors/#not_found).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "not_found"
                      ]
                    }
                  }
                }
              }
            }
          },
          "409": {
            "description": "The codes: [`organization_token_limit`](https://authtempo.com/docs/reference/errors/#organization_token_limit).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "organization_token_limit"
                      ]
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "The codes: [`rate_limited`](https://authtempo.com/docs/reference/errors/#rate_limited).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "rate_limited"
                      ]
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "The codes: [`internal`](https://authtempo.com/docs/reference/errors/#internal).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "internal"
                      ]
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "sessionCookie": []
          },
          {
            "sessionBearer": []
          }
        ]
      },
      "get": {
        "tags": [
          "organizations"
        ],
        "summary": "GET /organizations/tokens",
        "operationId": "get-organizations-tokens",
        "externalDocs": {
          "url": "https://authtempo.com/docs/reference/routes/#get-organizations-tokens"
        },
        "x-authtempo-feature": "organizations",
        "x-authtempo-default": "off",
        "parameters": [
          {
            "name": "organizationId",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 64
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The answer.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "tokens": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string"
                          },
                          "organizationId": {
                            "type": "string"
                          },
                          "name": {
                            "type": "string"
                          },
                          "hint": {
                            "type": "string"
                          },
                          "permissions": {
                            "type": "object",
                            "propertyNames": {
                              "type": "string"
                            },
                            "additionalProperties": {
                              "type": "array",
                              "items": {
                                "type": "string"
                              }
                            }
                          },
                          "metadata": {
                            "anyOf": [
                              {
                                "type": "object",
                                "propertyNames": {
                                  "type": "string"
                                },
                                "additionalProperties": {}
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "expiresAt": {
                            "anyOf": [
                              {
                                "type": "string",
                                "format": "date-time",
                                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "lastUsedAt": {
                            "anyOf": [
                              {
                                "type": "string",
                                "format": "date-time",
                                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "rateLimit": {
                            "anyOf": [
                              {
                                "type": "object",
                                "properties": {
                                  "seconds": {
                                    "type": "integer",
                                    "minimum": -9007199254740991,
                                    "maximum": 9007199254740991
                                  },
                                  "max": {
                                    "type": "integer",
                                    "minimum": -9007199254740991,
                                    "maximum": 9007199254740991
                                  }
                                },
                                "required": [
                                  "seconds",
                                  "max"
                                ],
                                "additionalProperties": false
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "remaining": {
                            "anyOf": [
                              {
                                "type": "integer",
                                "minimum": -9007199254740991,
                                "maximum": 9007199254740991
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "retired": {
                            "type": "boolean"
                          },
                          "createdById": {
                            "type": "string"
                          },
                          "creatorIsMember": {
                            "type": "boolean"
                          },
                          "createdAt": {
                            "type": "string",
                            "format": "date-time",
                            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                          }
                        },
                        "required": [
                          "id",
                          "organizationId",
                          "name",
                          "hint",
                          "permissions",
                          "metadata",
                          "expiresAt",
                          "lastUsedAt",
                          "rateLimit",
                          "remaining",
                          "retired",
                          "createdById",
                          "creatorIsMember",
                          "createdAt"
                        ],
                        "additionalProperties": false
                      }
                    }
                  },
                  "required": [
                    "tokens"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "The codes: [`invalid_body`](https://authtempo.com/docs/reference/errors/#invalid_body).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "invalid_body"
                      ]
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The codes: [`unauthorized`](https://authtempo.com/docs/reference/errors/#unauthorized).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "unauthorized"
                      ]
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "The codes: [`email_unverified`](https://authtempo.com/docs/reference/errors/#email_unverified), [`forbidden_rank`](https://authtempo.com/docs/reference/errors/#forbidden_rank).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "email_unverified",
                        "forbidden_rank"
                      ]
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "The codes: [`not_found`](https://authtempo.com/docs/reference/errors/#not_found).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "not_found"
                      ]
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "The codes: [`internal`](https://authtempo.com/docs/reference/errors/#internal).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "internal"
                      ]
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "sessionCookie": []
          },
          {
            "sessionBearer": []
          }
        ]
      }
    },
    "/organizations/tokens/update": {
      "post": {
        "tags": [
          "organizations"
        ],
        "summary": "POST /organizations/tokens/update",
        "operationId": "post-organizations-tokens-update",
        "externalDocs": {
          "url": "https://authtempo.com/docs/reference/routes/#post-organizations-tokens-update"
        },
        "x-authtempo-feature": "organizations",
        "x-authtempo-default": "off",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "organizationId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64
                  },
                  "id": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64
                  },
                  "name": {
                    "type": "string",
                    "maxLength": 200
                  },
                  "permissions": {
                    "type": "object",
                    "propertyNames": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 32
                    },
                    "additionalProperties": {
                      "maxItems": 64,
                      "type": "array",
                      "items": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 32
                      }
                    }
                  },
                  "expiresAt": {
                    "anyOf": [
                      {
                        "type": "string",
                        "format": "date-time",
                        "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  }
                },
                "required": [
                  "organizationId",
                  "id"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The answer.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string"
                    },
                    "organizationId": {
                      "type": "string"
                    },
                    "name": {
                      "type": "string"
                    },
                    "hint": {
                      "type": "string"
                    },
                    "permissions": {
                      "type": "object",
                      "propertyNames": {
                        "type": "string"
                      },
                      "additionalProperties": {
                        "type": "array",
                        "items": {
                          "type": "string"
                        }
                      }
                    },
                    "metadata": {
                      "anyOf": [
                        {
                          "type": "object",
                          "propertyNames": {
                            "type": "string"
                          },
                          "additionalProperties": {}
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "expiresAt": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "date-time",
                          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "lastUsedAt": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "date-time",
                          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "rateLimit": {
                      "anyOf": [
                        {
                          "type": "object",
                          "properties": {
                            "seconds": {
                              "type": "integer",
                              "minimum": -9007199254740991,
                              "maximum": 9007199254740991
                            },
                            "max": {
                              "type": "integer",
                              "minimum": -9007199254740991,
                              "maximum": 9007199254740991
                            }
                          },
                          "required": [
                            "seconds",
                            "max"
                          ],
                          "additionalProperties": false
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "remaining": {
                      "anyOf": [
                        {
                          "type": "integer",
                          "minimum": -9007199254740991,
                          "maximum": 9007199254740991
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "retired": {
                      "type": "boolean"
                    },
                    "createdById": {
                      "type": "string"
                    },
                    "creatorIsMember": {
                      "type": "boolean"
                    },
                    "createdAt": {
                      "type": "string",
                      "format": "date-time",
                      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                    }
                  },
                  "required": [
                    "id",
                    "organizationId",
                    "name",
                    "hint",
                    "permissions",
                    "metadata",
                    "expiresAt",
                    "lastUsedAt",
                    "rateLimit",
                    "remaining",
                    "retired",
                    "createdById",
                    "creatorIsMember",
                    "createdAt"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "The codes: [`invalid_body`](https://authtempo.com/docs/reference/errors/#invalid_body).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "invalid_body"
                      ]
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The codes: [`unauthorized`](https://authtempo.com/docs/reference/errors/#unauthorized).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "unauthorized"
                      ]
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "The codes: [`session_not_fresh`](https://authtempo.com/docs/reference/errors/#session_not_fresh), [`email_unverified`](https://authtempo.com/docs/reference/errors/#email_unverified), [`forbidden_rank`](https://authtempo.com/docs/reference/errors/#forbidden_rank), [`impersonation_session`](https://authtempo.com/docs/reference/errors/#impersonation_session), [`origin_not_trusted`](https://authtempo.com/docs/reference/errors/#origin_not_trusted).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "session_not_fresh",
                        "email_unverified",
                        "forbidden_rank",
                        "impersonation_session",
                        "origin_not_trusted"
                      ]
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "The codes: [`not_found`](https://authtempo.com/docs/reference/errors/#not_found).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "not_found"
                      ]
                    }
                  }
                }
              }
            }
          },
          "409": {
            "description": "The codes: [`conflict`](https://authtempo.com/docs/reference/errors/#conflict).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "conflict"
                      ]
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "The codes: [`internal`](https://authtempo.com/docs/reference/errors/#internal).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "internal"
                      ]
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "sessionCookie": []
          },
          {
            "sessionBearer": []
          }
        ]
      }
    },
    "/organizations/tokens/revoke": {
      "post": {
        "tags": [
          "organizations"
        ],
        "summary": "POST /organizations/tokens/revoke",
        "operationId": "post-organizations-tokens-revoke",
        "externalDocs": {
          "url": "https://authtempo.com/docs/reference/routes/#post-organizations-tokens-revoke"
        },
        "x-authtempo-feature": "organizations",
        "x-authtempo-default": "off",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "organizationId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64
                  },
                  "id": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64
                  }
                },
                "required": [
                  "organizationId",
                  "id"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The answer.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OkAnswer"
                }
              }
            }
          },
          "400": {
            "description": "The codes: [`invalid_body`](https://authtempo.com/docs/reference/errors/#invalid_body).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "invalid_body"
                      ]
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The codes: [`unauthorized`](https://authtempo.com/docs/reference/errors/#unauthorized).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "unauthorized"
                      ]
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "The codes: [`email_unverified`](https://authtempo.com/docs/reference/errors/#email_unverified), [`forbidden_rank`](https://authtempo.com/docs/reference/errors/#forbidden_rank), [`impersonation_session`](https://authtempo.com/docs/reference/errors/#impersonation_session), [`origin_not_trusted`](https://authtempo.com/docs/reference/errors/#origin_not_trusted).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "email_unverified",
                        "forbidden_rank",
                        "impersonation_session",
                        "origin_not_trusted"
                      ]
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "The codes: [`not_found`](https://authtempo.com/docs/reference/errors/#not_found).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "not_found"
                      ]
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "The codes: [`internal`](https://authtempo.com/docs/reference/errors/#internal).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "internal"
                      ]
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "sessionCookie": []
          },
          {
            "sessionBearer": []
          }
        ]
      }
    },
    "/organizations/tokens/current": {
      "get": {
        "tags": [
          "organizations"
        ],
        "summary": "GET /organizations/tokens/current",
        "operationId": "get-organizations-tokens-current",
        "externalDocs": {
          "url": "https://authtempo.com/docs/reference/routes/#get-organizations-tokens-current"
        },
        "x-authtempo-feature": "organizations",
        "x-authtempo-default": "off",
        "responses": {
          "200": {
            "description": "The answer.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "organization": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string"
                        },
                        "slug": {
                          "type": "string"
                        },
                        "name": {
                          "type": "string"
                        },
                        "metadata": {
                          "anyOf": [
                            {
                              "type": "object",
                              "propertyNames": {
                                "type": "string"
                              },
                              "additionalProperties": {}
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "createdAt": {
                          "type": "string",
                          "format": "date-time",
                          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                        }
                      },
                      "required": [
                        "id",
                        "slug",
                        "name",
                        "metadata",
                        "createdAt"
                      ],
                      "additionalProperties": false
                    },
                    "apiToken": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string"
                        },
                        "organizationId": {
                          "type": "string"
                        },
                        "name": {
                          "type": "string"
                        },
                        "hint": {
                          "type": "string"
                        },
                        "permissions": {
                          "type": "object",
                          "propertyNames": {
                            "type": "string"
                          },
                          "additionalProperties": {
                            "type": "array",
                            "items": {
                              "type": "string"
                            }
                          }
                        },
                        "metadata": {
                          "anyOf": [
                            {
                              "type": "object",
                              "propertyNames": {
                                "type": "string"
                              },
                              "additionalProperties": {}
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "expiresAt": {
                          "anyOf": [
                            {
                              "type": "string",
                              "format": "date-time",
                              "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "lastUsedAt": {
                          "anyOf": [
                            {
                              "type": "string",
                              "format": "date-time",
                              "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "rateLimit": {
                          "anyOf": [
                            {
                              "type": "object",
                              "properties": {
                                "seconds": {
                                  "type": "integer",
                                  "minimum": -9007199254740991,
                                  "maximum": 9007199254740991
                                },
                                "max": {
                                  "type": "integer",
                                  "minimum": -9007199254740991,
                                  "maximum": 9007199254740991
                                }
                              },
                              "required": [
                                "seconds",
                                "max"
                              ],
                              "additionalProperties": false
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "remaining": {
                          "anyOf": [
                            {
                              "type": "integer",
                              "minimum": -9007199254740991,
                              "maximum": 9007199254740991
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "retired": {
                          "type": "boolean"
                        },
                        "createdById": {
                          "type": "string"
                        },
                        "creatorIsMember": {
                          "type": "boolean"
                        },
                        "createdAt": {
                          "type": "string",
                          "format": "date-time",
                          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                        }
                      },
                      "required": [
                        "id",
                        "organizationId",
                        "name",
                        "hint",
                        "permissions",
                        "metadata",
                        "expiresAt",
                        "lastUsedAt",
                        "rateLimit",
                        "remaining",
                        "retired",
                        "createdById",
                        "creatorIsMember",
                        "createdAt"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "required": [
                    "organization",
                    "apiToken"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "401": {
            "description": "The codes: [`unauthorized`](https://authtempo.com/docs/reference/errors/#unauthorized).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "unauthorized"
                      ]
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "The codes: [`not_found`](https://authtempo.com/docs/reference/errors/#not_found).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "not_found"
                      ]
                    }
                  }
                }
              }
            }
          },
          "409": {
            "description": "The codes: [`conflict`](https://authtempo.com/docs/reference/errors/#conflict).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "conflict"
                      ]
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "The codes: [`rate_limited`](https://authtempo.com/docs/reference/errors/#rate_limited), [`token_exhausted`](https://authtempo.com/docs/reference/errors/#token_exhausted).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "rate_limited",
                        "token_exhausted"
                      ]
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "The codes: [`internal`](https://authtempo.com/docs/reference/errors/#internal).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "internal"
                      ]
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "organizationToken": []
          }
        ]
      }
    },
    "/organizations/active": {
      "post": {
        "tags": [
          "organizations"
        ],
        "summary": "POST /organizations/active",
        "operationId": "post-organizations-active",
        "externalDocs": {
          "url": "https://authtempo.com/docs/reference/routes/#post-organizations-active"
        },
        "x-authtempo-feature": "organizations",
        "x-authtempo-default": "off",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "organizationId": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 64
                      },
                      {
                        "type": "null"
                      }
                    ]
                  }
                },
                "required": [
                  "organizationId"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The answer.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SessionAnswer"
                }
              }
            }
          },
          "400": {
            "description": "The codes: [`invalid_body`](https://authtempo.com/docs/reference/errors/#invalid_body).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "invalid_body"
                      ]
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The codes: [`unauthorized`](https://authtempo.com/docs/reference/errors/#unauthorized).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "unauthorized"
                      ]
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "The codes: [`forbidden_rank`](https://authtempo.com/docs/reference/errors/#forbidden_rank), [`origin_not_trusted`](https://authtempo.com/docs/reference/errors/#origin_not_trusted).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "forbidden_rank",
                        "origin_not_trusted"
                      ]
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "The codes: [`not_found`](https://authtempo.com/docs/reference/errors/#not_found).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "not_found"
                      ]
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "The codes: [`internal`](https://authtempo.com/docs/reference/errors/#internal).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "internal"
                      ]
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "sessionCookie": []
          },
          {
            "sessionBearer": []
          }
        ]
      }
    },
    "/organizations/roles": {
      "get": {
        "tags": [
          "dynamicRoles"
        ],
        "summary": "GET /organizations/roles",
        "operationId": "get-organizations-roles",
        "externalDocs": {
          "url": "https://authtempo.com/docs/reference/routes/#get-organizations-roles"
        },
        "x-authtempo-feature": "dynamicRoles",
        "x-authtempo-default": "off",
        "parameters": [
          {
            "name": "organizationId",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 64
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The answer.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "roles": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string"
                          },
                          "name": {
                            "type": "string"
                          },
                          "rank": {
                            "type": "integer",
                            "minimum": -9007199254740991,
                            "maximum": 9007199254740991
                          },
                          "permissions": {
                            "type": "object",
                            "propertyNames": {
                              "type": "string"
                            },
                            "additionalProperties": {
                              "type": "array",
                              "items": {
                                "type": "string"
                              }
                            }
                          },
                          "createdAt": {
                            "type": "string",
                            "format": "date-time",
                            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                          },
                          "updatedAt": {
                            "type": "string",
                            "format": "date-time",
                            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                          }
                        },
                        "required": [
                          "id",
                          "name",
                          "rank",
                          "permissions",
                          "createdAt",
                          "updatedAt"
                        ],
                        "additionalProperties": false
                      }
                    }
                  },
                  "required": [
                    "roles"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "The codes: [`invalid_body`](https://authtempo.com/docs/reference/errors/#invalid_body).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "invalid_body"
                      ]
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The codes: [`unauthorized`](https://authtempo.com/docs/reference/errors/#unauthorized).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "unauthorized"
                      ]
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "The codes: [`forbidden_rank`](https://authtempo.com/docs/reference/errors/#forbidden_rank).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "forbidden_rank"
                      ]
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "The codes: [`not_found`](https://authtempo.com/docs/reference/errors/#not_found).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "not_found"
                      ]
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "The codes: [`internal`](https://authtempo.com/docs/reference/errors/#internal).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "internal"
                      ]
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "sessionCookie": []
          },
          {
            "sessionBearer": []
          }
        ]
      }
    },
    "/organizations/roles/get": {
      "get": {
        "tags": [
          "dynamicRoles"
        ],
        "summary": "GET /organizations/roles/get",
        "operationId": "get-organizations-roles-get",
        "externalDocs": {
          "url": "https://authtempo.com/docs/reference/routes/#get-organizations-roles-get"
        },
        "x-authtempo-feature": "dynamicRoles",
        "x-authtempo-default": "off",
        "parameters": [
          {
            "name": "organizationId",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 64
            }
          },
          {
            "name": "name",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 64
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The answer.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "role": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string"
                        },
                        "name": {
                          "type": "string"
                        },
                        "rank": {
                          "type": "integer",
                          "minimum": -9007199254740991,
                          "maximum": 9007199254740991
                        },
                        "permissions": {
                          "type": "object",
                          "propertyNames": {
                            "type": "string"
                          },
                          "additionalProperties": {
                            "type": "array",
                            "items": {
                              "type": "string"
                            }
                          }
                        },
                        "createdAt": {
                          "type": "string",
                          "format": "date-time",
                          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                        },
                        "updatedAt": {
                          "type": "string",
                          "format": "date-time",
                          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                        }
                      },
                      "required": [
                        "id",
                        "name",
                        "rank",
                        "permissions",
                        "createdAt",
                        "updatedAt"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "required": [
                    "role"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "The codes: [`invalid_body`](https://authtempo.com/docs/reference/errors/#invalid_body).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "invalid_body"
                      ]
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The codes: [`unauthorized`](https://authtempo.com/docs/reference/errors/#unauthorized).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "unauthorized"
                      ]
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "The codes: [`forbidden_rank`](https://authtempo.com/docs/reference/errors/#forbidden_rank).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "forbidden_rank"
                      ]
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "The codes: [`not_found`](https://authtempo.com/docs/reference/errors/#not_found).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "not_found"
                      ]
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "The codes: [`internal`](https://authtempo.com/docs/reference/errors/#internal).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "internal"
                      ]
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "sessionCookie": []
          },
          {
            "sessionBearer": []
          }
        ]
      }
    },
    "/organizations/roles/create": {
      "post": {
        "tags": [
          "dynamicRoles"
        ],
        "summary": "POST /organizations/roles/create",
        "operationId": "post-organizations-roles-create",
        "externalDocs": {
          "url": "https://authtempo.com/docs/reference/routes/#post-organizations-roles-create"
        },
        "x-authtempo-feature": "dynamicRoles",
        "x-authtempo-default": "off",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "organizationId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64
                  },
                  "name": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64
                  },
                  "rank": {
                    "type": "integer",
                    "minimum": -9007199254740991,
                    "maximum": 9007199254740991
                  },
                  "permissions": {
                    "type": "object",
                    "propertyNames": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 32
                    },
                    "additionalProperties": {
                      "maxItems": 64,
                      "type": "array",
                      "items": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 32
                      }
                    }
                  }
                },
                "required": [
                  "organizationId",
                  "name",
                  "permissions"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The answer.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "role": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string"
                        },
                        "name": {
                          "type": "string"
                        },
                        "rank": {
                          "type": "integer",
                          "minimum": -9007199254740991,
                          "maximum": 9007199254740991
                        },
                        "permissions": {
                          "type": "object",
                          "propertyNames": {
                            "type": "string"
                          },
                          "additionalProperties": {
                            "type": "array",
                            "items": {
                              "type": "string"
                            }
                          }
                        },
                        "createdAt": {
                          "type": "string",
                          "format": "date-time",
                          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                        },
                        "updatedAt": {
                          "type": "string",
                          "format": "date-time",
                          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                        }
                      },
                      "required": [
                        "id",
                        "name",
                        "rank",
                        "permissions",
                        "createdAt",
                        "updatedAt"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "required": [
                    "role"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "The codes: [`invalid_body`](https://authtempo.com/docs/reference/errors/#invalid_body), [`statement_not_grantable`](https://authtempo.com/docs/reference/errors/#statement_not_grantable).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "invalid_body",
                        "statement_not_grantable"
                      ]
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The codes: [`unauthorized`](https://authtempo.com/docs/reference/errors/#unauthorized).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "unauthorized"
                      ]
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "The codes: [`session_not_fresh`](https://authtempo.com/docs/reference/errors/#session_not_fresh), [`forbidden_rank`](https://authtempo.com/docs/reference/errors/#forbidden_rank), [`impersonation_session`](https://authtempo.com/docs/reference/errors/#impersonation_session), [`origin_not_trusted`](https://authtempo.com/docs/reference/errors/#origin_not_trusted).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "session_not_fresh",
                        "forbidden_rank",
                        "impersonation_session",
                        "origin_not_trusted"
                      ]
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "The codes: [`not_found`](https://authtempo.com/docs/reference/errors/#not_found).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "not_found"
                      ]
                    }
                  }
                }
              }
            }
          },
          "409": {
            "description": "The codes: [`role_taken`](https://authtempo.com/docs/reference/errors/#role_taken), [`role_in_use`](https://authtempo.com/docs/reference/errors/#role_in_use), [`role_limit`](https://authtempo.com/docs/reference/errors/#role_limit).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "role_taken",
                        "role_in_use",
                        "role_limit"
                      ]
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "The codes: [`internal`](https://authtempo.com/docs/reference/errors/#internal).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "internal"
                      ]
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "sessionCookie": []
          },
          {
            "sessionBearer": []
          }
        ]
      }
    },
    "/organizations/roles/update": {
      "post": {
        "tags": [
          "dynamicRoles"
        ],
        "summary": "POST /organizations/roles/update",
        "operationId": "post-organizations-roles-update",
        "externalDocs": {
          "url": "https://authtempo.com/docs/reference/routes/#post-organizations-roles-update"
        },
        "x-authtempo-feature": "dynamicRoles",
        "x-authtempo-default": "off",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "organizationId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64
                  },
                  "name": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64
                  },
                  "rank": {
                    "type": "integer",
                    "minimum": -9007199254740991,
                    "maximum": 9007199254740991
                  },
                  "permissions": {
                    "type": "object",
                    "propertyNames": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 32
                    },
                    "additionalProperties": {
                      "maxItems": 64,
                      "type": "array",
                      "items": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 32
                      }
                    }
                  }
                },
                "required": [
                  "organizationId",
                  "name"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The answer.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "role": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string"
                        },
                        "name": {
                          "type": "string"
                        },
                        "rank": {
                          "type": "integer",
                          "minimum": -9007199254740991,
                          "maximum": 9007199254740991
                        },
                        "permissions": {
                          "type": "object",
                          "propertyNames": {
                            "type": "string"
                          },
                          "additionalProperties": {
                            "type": "array",
                            "items": {
                              "type": "string"
                            }
                          }
                        },
                        "createdAt": {
                          "type": "string",
                          "format": "date-time",
                          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                        },
                        "updatedAt": {
                          "type": "string",
                          "format": "date-time",
                          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                        }
                      },
                      "required": [
                        "id",
                        "name",
                        "rank",
                        "permissions",
                        "createdAt",
                        "updatedAt"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "required": [
                    "role"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "The codes: [`invalid_body`](https://authtempo.com/docs/reference/errors/#invalid_body), [`statement_not_grantable`](https://authtempo.com/docs/reference/errors/#statement_not_grantable).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "invalid_body",
                        "statement_not_grantable"
                      ]
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The codes: [`unauthorized`](https://authtempo.com/docs/reference/errors/#unauthorized).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "unauthorized"
                      ]
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "The codes: [`session_not_fresh`](https://authtempo.com/docs/reference/errors/#session_not_fresh), [`forbidden_rank`](https://authtempo.com/docs/reference/errors/#forbidden_rank), [`impersonation_session`](https://authtempo.com/docs/reference/errors/#impersonation_session), [`origin_not_trusted`](https://authtempo.com/docs/reference/errors/#origin_not_trusted).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "session_not_fresh",
                        "forbidden_rank",
                        "impersonation_session",
                        "origin_not_trusted"
                      ]
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "The codes: [`not_found`](https://authtempo.com/docs/reference/errors/#not_found).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "not_found"
                      ]
                    }
                  }
                }
              }
            }
          },
          "409": {
            "description": "The codes: [`conflict`](https://authtempo.com/docs/reference/errors/#conflict).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "conflict"
                      ]
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "The codes: [`internal`](https://authtempo.com/docs/reference/errors/#internal).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "internal"
                      ]
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "sessionCookie": []
          },
          {
            "sessionBearer": []
          }
        ]
      }
    },
    "/organizations/roles/delete": {
      "post": {
        "tags": [
          "dynamicRoles"
        ],
        "summary": "POST /organizations/roles/delete",
        "operationId": "post-organizations-roles-delete",
        "externalDocs": {
          "url": "https://authtempo.com/docs/reference/routes/#post-organizations-roles-delete"
        },
        "x-authtempo-feature": "dynamicRoles",
        "x-authtempo-default": "off",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "organizationId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64
                  },
                  "name": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64
                  }
                },
                "required": [
                  "organizationId",
                  "name"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The answer.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OkAnswer"
                }
              }
            }
          },
          "400": {
            "description": "The codes: [`invalid_body`](https://authtempo.com/docs/reference/errors/#invalid_body).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "invalid_body"
                      ]
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The codes: [`unauthorized`](https://authtempo.com/docs/reference/errors/#unauthorized).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "unauthorized"
                      ]
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "The codes: [`session_not_fresh`](https://authtempo.com/docs/reference/errors/#session_not_fresh), [`forbidden_rank`](https://authtempo.com/docs/reference/errors/#forbidden_rank), [`impersonation_session`](https://authtempo.com/docs/reference/errors/#impersonation_session), [`origin_not_trusted`](https://authtempo.com/docs/reference/errors/#origin_not_trusted).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "session_not_fresh",
                        "forbidden_rank",
                        "impersonation_session",
                        "origin_not_trusted"
                      ]
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "The codes: [`not_found`](https://authtempo.com/docs/reference/errors/#not_found).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "not_found"
                      ]
                    }
                  }
                }
              }
            }
          },
          "409": {
            "description": "The codes: [`role_in_use`](https://authtempo.com/docs/reference/errors/#role_in_use).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "role_in_use"
                      ]
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "The codes: [`internal`](https://authtempo.com/docs/reference/errors/#internal).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "internal"
                      ]
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "sessionCookie": []
          },
          {
            "sessionBearer": []
          }
        ]
      }
    },
    "/organizations/teams": {
      "get": {
        "tags": [
          "teams"
        ],
        "summary": "GET /organizations/teams",
        "operationId": "get-organizations-teams",
        "externalDocs": {
          "url": "https://authtempo.com/docs/reference/routes/#get-organizations-teams"
        },
        "x-authtempo-feature": "teams",
        "x-authtempo-default": "off",
        "parameters": [
          {
            "name": "organizationId",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 64
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The answer.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "teams": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string"
                          },
                          "organizationId": {
                            "type": "string"
                          },
                          "name": {
                            "type": "string"
                          },
                          "createdAt": {
                            "type": "string",
                            "format": "date-time",
                            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                          },
                          "updatedAt": {
                            "type": "string",
                            "format": "date-time",
                            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                          }
                        },
                        "required": [
                          "id",
                          "organizationId",
                          "name",
                          "createdAt",
                          "updatedAt"
                        ],
                        "additionalProperties": false
                      }
                    }
                  },
                  "required": [
                    "teams"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "The codes: [`invalid_body`](https://authtempo.com/docs/reference/errors/#invalid_body).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "invalid_body"
                      ]
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The codes: [`unauthorized`](https://authtempo.com/docs/reference/errors/#unauthorized).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "unauthorized"
                      ]
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "The codes: [`forbidden_rank`](https://authtempo.com/docs/reference/errors/#forbidden_rank).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "forbidden_rank"
                      ]
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "The codes: [`not_found`](https://authtempo.com/docs/reference/errors/#not_found).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "not_found"
                      ]
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "The codes: [`internal`](https://authtempo.com/docs/reference/errors/#internal).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "internal"
                      ]
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "sessionCookie": []
          },
          {
            "sessionBearer": []
          }
        ]
      }
    },
    "/organizations/teams/create": {
      "post": {
        "tags": [
          "teams"
        ],
        "summary": "POST /organizations/teams/create",
        "operationId": "post-organizations-teams-create",
        "externalDocs": {
          "url": "https://authtempo.com/docs/reference/routes/#post-organizations-teams-create"
        },
        "x-authtempo-feature": "teams",
        "x-authtempo-default": "off",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "organizationId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64
                  },
                  "name": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 120
                  }
                },
                "required": [
                  "organizationId",
                  "name"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The answer.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "team": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string"
                        },
                        "organizationId": {
                          "type": "string"
                        },
                        "name": {
                          "type": "string"
                        },
                        "createdAt": {
                          "type": "string",
                          "format": "date-time",
                          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                        },
                        "updatedAt": {
                          "type": "string",
                          "format": "date-time",
                          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                        }
                      },
                      "required": [
                        "id",
                        "organizationId",
                        "name",
                        "createdAt",
                        "updatedAt"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "required": [
                    "team"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "The codes: [`invalid_body`](https://authtempo.com/docs/reference/errors/#invalid_body).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "invalid_body"
                      ]
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The codes: [`unauthorized`](https://authtempo.com/docs/reference/errors/#unauthorized).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "unauthorized"
                      ]
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "The codes: [`email_unverified`](https://authtempo.com/docs/reference/errors/#email_unverified), [`forbidden_rank`](https://authtempo.com/docs/reference/errors/#forbidden_rank), [`hook_refused`](https://authtempo.com/docs/reference/errors/#hook_refused), [`origin_not_trusted`](https://authtempo.com/docs/reference/errors/#origin_not_trusted).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "email_unverified",
                        "forbidden_rank",
                        "hook_refused",
                        "origin_not_trusted"
                      ]
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "The codes: [`not_found`](https://authtempo.com/docs/reference/errors/#not_found).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "not_found"
                      ]
                    }
                  }
                }
              }
            }
          },
          "409": {
            "description": "The codes: [`team_limit`](https://authtempo.com/docs/reference/errors/#team_limit).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "team_limit"
                      ]
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "The codes: [`hook_failed`](https://authtempo.com/docs/reference/errors/#hook_failed), [`internal`](https://authtempo.com/docs/reference/errors/#internal).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "hook_failed",
                        "internal"
                      ]
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "sessionCookie": []
          },
          {
            "sessionBearer": []
          }
        ]
      }
    },
    "/organizations/teams/update": {
      "post": {
        "tags": [
          "teams"
        ],
        "summary": "POST /organizations/teams/update",
        "operationId": "post-organizations-teams-update",
        "externalDocs": {
          "url": "https://authtempo.com/docs/reference/routes/#post-organizations-teams-update"
        },
        "x-authtempo-feature": "teams",
        "x-authtempo-default": "off",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "teamId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64
                  },
                  "name": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 120
                  }
                },
                "required": [
                  "teamId",
                  "name"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The answer.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "team": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string"
                        },
                        "organizationId": {
                          "type": "string"
                        },
                        "name": {
                          "type": "string"
                        },
                        "createdAt": {
                          "type": "string",
                          "format": "date-time",
                          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                        },
                        "updatedAt": {
                          "type": "string",
                          "format": "date-time",
                          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                        }
                      },
                      "required": [
                        "id",
                        "organizationId",
                        "name",
                        "createdAt",
                        "updatedAt"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "required": [
                    "team"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "The codes: [`invalid_body`](https://authtempo.com/docs/reference/errors/#invalid_body).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "invalid_body"
                      ]
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The codes: [`unauthorized`](https://authtempo.com/docs/reference/errors/#unauthorized).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "unauthorized"
                      ]
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "The codes: [`email_unverified`](https://authtempo.com/docs/reference/errors/#email_unverified), [`forbidden_rank`](https://authtempo.com/docs/reference/errors/#forbidden_rank), [`hook_refused`](https://authtempo.com/docs/reference/errors/#hook_refused), [`origin_not_trusted`](https://authtempo.com/docs/reference/errors/#origin_not_trusted).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "email_unverified",
                        "forbidden_rank",
                        "hook_refused",
                        "origin_not_trusted"
                      ]
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "The codes: [`not_found`](https://authtempo.com/docs/reference/errors/#not_found).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "not_found"
                      ]
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "The codes: [`hook_failed`](https://authtempo.com/docs/reference/errors/#hook_failed), [`internal`](https://authtempo.com/docs/reference/errors/#internal).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "hook_failed",
                        "internal"
                      ]
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "sessionCookie": []
          },
          {
            "sessionBearer": []
          }
        ]
      }
    },
    "/organizations/teams/delete": {
      "post": {
        "tags": [
          "teams"
        ],
        "summary": "POST /organizations/teams/delete",
        "operationId": "post-organizations-teams-delete",
        "externalDocs": {
          "url": "https://authtempo.com/docs/reference/routes/#post-organizations-teams-delete"
        },
        "x-authtempo-feature": "teams",
        "x-authtempo-default": "off",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "teamId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64
                  }
                },
                "required": [
                  "teamId"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The answer.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OkAnswer"
                }
              }
            }
          },
          "400": {
            "description": "The codes: [`invalid_body`](https://authtempo.com/docs/reference/errors/#invalid_body).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "invalid_body"
                      ]
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The codes: [`unauthorized`](https://authtempo.com/docs/reference/errors/#unauthorized).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "unauthorized"
                      ]
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "The codes: [`email_unverified`](https://authtempo.com/docs/reference/errors/#email_unverified), [`forbidden_rank`](https://authtempo.com/docs/reference/errors/#forbidden_rank), [`hook_refused`](https://authtempo.com/docs/reference/errors/#hook_refused), [`origin_not_trusted`](https://authtempo.com/docs/reference/errors/#origin_not_trusted).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "email_unverified",
                        "forbidden_rank",
                        "hook_refused",
                        "origin_not_trusted"
                      ]
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "The codes: [`not_found`](https://authtempo.com/docs/reference/errors/#not_found).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "not_found"
                      ]
                    }
                  }
                }
              }
            }
          },
          "409": {
            "description": "The codes: [`last_team`](https://authtempo.com/docs/reference/errors/#last_team), [`conflict`](https://authtempo.com/docs/reference/errors/#conflict).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "last_team",
                        "conflict"
                      ]
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "The codes: [`hook_failed`](https://authtempo.com/docs/reference/errors/#hook_failed), [`internal`](https://authtempo.com/docs/reference/errors/#internal).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "hook_failed",
                        "internal"
                      ]
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "sessionCookie": []
          },
          {
            "sessionBearer": []
          }
        ]
      }
    },
    "/organizations/teams/members": {
      "get": {
        "tags": [
          "teams"
        ],
        "summary": "GET /organizations/teams/members",
        "operationId": "get-organizations-teams-members",
        "externalDocs": {
          "url": "https://authtempo.com/docs/reference/routes/#get-organizations-teams-members"
        },
        "x-authtempo-feature": "teams",
        "x-authtempo-default": "off",
        "parameters": [
          {
            "name": "teamId",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 64
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The answer.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "members": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string"
                          },
                          "teamId": {
                            "type": "string"
                          },
                          "userId": {
                            "type": "string"
                          },
                          "email": {
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "name": {
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "createdAt": {
                            "type": "string",
                            "format": "date-time",
                            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                          }
                        },
                        "required": [
                          "id",
                          "teamId",
                          "userId",
                          "email",
                          "name",
                          "createdAt"
                        ],
                        "additionalProperties": false
                      }
                    }
                  },
                  "required": [
                    "members"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "The codes: [`invalid_body`](https://authtempo.com/docs/reference/errors/#invalid_body).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "invalid_body"
                      ]
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The codes: [`unauthorized`](https://authtempo.com/docs/reference/errors/#unauthorized).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "unauthorized"
                      ]
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "The codes: [`forbidden_rank`](https://authtempo.com/docs/reference/errors/#forbidden_rank).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "forbidden_rank"
                      ]
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "The codes: [`not_found`](https://authtempo.com/docs/reference/errors/#not_found).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "not_found"
                      ]
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "The codes: [`internal`](https://authtempo.com/docs/reference/errors/#internal).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "internal"
                      ]
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "sessionCookie": []
          },
          {
            "sessionBearer": []
          }
        ]
      }
    },
    "/organizations/teams/members/add": {
      "post": {
        "tags": [
          "teams"
        ],
        "summary": "POST /organizations/teams/members/add",
        "operationId": "post-organizations-teams-members-add",
        "externalDocs": {
          "url": "https://authtempo.com/docs/reference/routes/#post-organizations-teams-members-add"
        },
        "x-authtempo-feature": "teams",
        "x-authtempo-default": "off",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "teamId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64
                  },
                  "userId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64
                  }
                },
                "required": [
                  "teamId",
                  "userId"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The answer.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "member": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string"
                        },
                        "teamId": {
                          "type": "string"
                        },
                        "userId": {
                          "type": "string"
                        },
                        "email": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "name": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "createdAt": {
                          "type": "string",
                          "format": "date-time",
                          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                        }
                      },
                      "required": [
                        "id",
                        "teamId",
                        "userId",
                        "email",
                        "name",
                        "createdAt"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "required": [
                    "member"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "The codes: [`invalid_body`](https://authtempo.com/docs/reference/errors/#invalid_body).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "invalid_body"
                      ]
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The codes: [`unauthorized`](https://authtempo.com/docs/reference/errors/#unauthorized).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "unauthorized"
                      ]
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "The codes: [`email_unverified`](https://authtempo.com/docs/reference/errors/#email_unverified), [`forbidden_rank`](https://authtempo.com/docs/reference/errors/#forbidden_rank), [`hook_refused`](https://authtempo.com/docs/reference/errors/#hook_refused), [`origin_not_trusted`](https://authtempo.com/docs/reference/errors/#origin_not_trusted).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "email_unverified",
                        "forbidden_rank",
                        "hook_refused",
                        "origin_not_trusted"
                      ]
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "The codes: [`not_found`](https://authtempo.com/docs/reference/errors/#not_found).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "not_found"
                      ]
                    }
                  }
                }
              }
            }
          },
          "409": {
            "description": "The codes: [`already_member`](https://authtempo.com/docs/reference/errors/#already_member), [`team_member_limit`](https://authtempo.com/docs/reference/errors/#team_member_limit), [`conflict`](https://authtempo.com/docs/reference/errors/#conflict).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "already_member",
                        "team_member_limit",
                        "conflict"
                      ]
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "The codes: [`hook_failed`](https://authtempo.com/docs/reference/errors/#hook_failed), [`internal`](https://authtempo.com/docs/reference/errors/#internal).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "hook_failed",
                        "internal"
                      ]
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "sessionCookie": []
          },
          {
            "sessionBearer": []
          }
        ]
      }
    },
    "/organizations/teams/members/remove": {
      "post": {
        "tags": [
          "teams"
        ],
        "summary": "POST /organizations/teams/members/remove",
        "operationId": "post-organizations-teams-members-remove",
        "externalDocs": {
          "url": "https://authtempo.com/docs/reference/routes/#post-organizations-teams-members-remove"
        },
        "x-authtempo-feature": "teams",
        "x-authtempo-default": "off",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "teamId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64
                  },
                  "userId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64
                  }
                },
                "required": [
                  "teamId",
                  "userId"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The answer.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OkAnswer"
                }
              }
            }
          },
          "400": {
            "description": "The codes: [`invalid_body`](https://authtempo.com/docs/reference/errors/#invalid_body).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "invalid_body"
                      ]
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The codes: [`unauthorized`](https://authtempo.com/docs/reference/errors/#unauthorized).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "unauthorized"
                      ]
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "The codes: [`email_unverified`](https://authtempo.com/docs/reference/errors/#email_unverified), [`forbidden_rank`](https://authtempo.com/docs/reference/errors/#forbidden_rank), [`hook_refused`](https://authtempo.com/docs/reference/errors/#hook_refused), [`origin_not_trusted`](https://authtempo.com/docs/reference/errors/#origin_not_trusted).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "email_unverified",
                        "forbidden_rank",
                        "hook_refused",
                        "origin_not_trusted"
                      ]
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "The codes: [`not_found`](https://authtempo.com/docs/reference/errors/#not_found).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "not_found"
                      ]
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "The codes: [`hook_failed`](https://authtempo.com/docs/reference/errors/#hook_failed), [`internal`](https://authtempo.com/docs/reference/errors/#internal).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "hook_failed",
                        "internal"
                      ]
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "sessionCookie": []
          },
          {
            "sessionBearer": []
          }
        ]
      }
    },
    "/organizations/teams/active": {
      "post": {
        "tags": [
          "teams"
        ],
        "summary": "POST /organizations/teams/active",
        "operationId": "post-organizations-teams-active",
        "externalDocs": {
          "url": "https://authtempo.com/docs/reference/routes/#post-organizations-teams-active"
        },
        "x-authtempo-feature": "teams",
        "x-authtempo-default": "off",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "teamId": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 64
                      },
                      {
                        "type": "null"
                      }
                    ]
                  }
                },
                "required": [
                  "teamId"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The answer.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SessionAnswer"
                }
              }
            }
          },
          "400": {
            "description": "The codes: [`invalid_body`](https://authtempo.com/docs/reference/errors/#invalid_body).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "invalid_body"
                      ]
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The codes: [`unauthorized`](https://authtempo.com/docs/reference/errors/#unauthorized).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "unauthorized"
                      ]
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "The codes: [`forbidden_rank`](https://authtempo.com/docs/reference/errors/#forbidden_rank), [`origin_not_trusted`](https://authtempo.com/docs/reference/errors/#origin_not_trusted).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "forbidden_rank",
                        "origin_not_trusted"
                      ]
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "The codes: [`not_found`](https://authtempo.com/docs/reference/errors/#not_found).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "not_found"
                      ]
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "The codes: [`internal`](https://authtempo.com/docs/reference/errors/#internal).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "internal"
                      ]
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "sessionCookie": []
          },
          {
            "sessionBearer": []
          }
        ]
      }
    },
    "/organizations/teams/mine": {
      "get": {
        "tags": [
          "teams"
        ],
        "summary": "GET /organizations/teams/mine",
        "operationId": "get-organizations-teams-mine",
        "externalDocs": {
          "url": "https://authtempo.com/docs/reference/routes/#get-organizations-teams-mine"
        },
        "x-authtempo-feature": "teams",
        "x-authtempo-default": "off",
        "responses": {
          "200": {
            "description": "The answer.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "teams": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string"
                          },
                          "organizationId": {
                            "type": "string"
                          },
                          "name": {
                            "type": "string"
                          },
                          "createdAt": {
                            "type": "string",
                            "format": "date-time",
                            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                          },
                          "updatedAt": {
                            "type": "string",
                            "format": "date-time",
                            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                          }
                        },
                        "required": [
                          "id",
                          "organizationId",
                          "name",
                          "createdAt",
                          "updatedAt"
                        ],
                        "additionalProperties": false
                      }
                    }
                  },
                  "required": [
                    "teams"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "401": {
            "description": "The codes: [`unauthorized`](https://authtempo.com/docs/reference/errors/#unauthorized).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "unauthorized"
                      ]
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "The codes: [`not_found`](https://authtempo.com/docs/reference/errors/#not_found).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "not_found"
                      ]
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "The codes: [`internal`](https://authtempo.com/docs/reference/errors/#internal).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "internal"
                      ]
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "sessionCookie": []
          },
          {
            "sessionBearer": []
          }
        ]
      }
    },
    "/tokens": {
      "post": {
        "tags": [
          "tokens"
        ],
        "summary": "POST /tokens",
        "operationId": "post-tokens",
        "externalDocs": {
          "url": "https://authtempo.com/docs/reference/routes/#post-tokens"
        },
        "x-authtempo-feature": "tokens",
        "x-authtempo-default": "on",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "name": {
                    "type": "string",
                    "maxLength": 200
                  },
                  "expiresInDays": {
                    "anyOf": [
                      {
                        "type": "integer",
                        "minimum": 1,
                        "maximum": 3650
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "organizationId": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 64
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "permissions": {
                    "anyOf": [
                      {
                        "type": "object",
                        "propertyNames": {
                          "type": "string",
                          "maxLength": 64
                        },
                        "additionalProperties": {
                          "maxItems": 64,
                          "type": "array",
                          "items": {
                            "type": "string",
                            "maxLength": 64
                          }
                        }
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "metadata": {
                    "anyOf": [
                      {
                        "type": "object",
                        "propertyNames": {
                          "type": "string"
                        },
                        "additionalProperties": {}
                      },
                      {
                        "type": "null"
                      }
                    ]
                  }
                },
                "required": [
                  "name"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The answer.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "token": {
                      "type": "string"
                    },
                    "apiToken": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string"
                        },
                        "name": {
                          "type": "string"
                        },
                        "hint": {
                          "type": "string"
                        },
                        "expiresAt": {
                          "anyOf": [
                            {
                              "type": "string",
                              "format": "date-time",
                              "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "lastUsedAt": {
                          "anyOf": [
                            {
                              "type": "string",
                              "format": "date-time",
                              "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "organizationId": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "permissions": {
                          "anyOf": [
                            {
                              "type": "object",
                              "propertyNames": {
                                "type": "string"
                              },
                              "additionalProperties": {
                                "type": "array",
                                "items": {
                                  "type": "string"
                                }
                              }
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "metadata": {
                          "anyOf": [
                            {
                              "type": "object",
                              "propertyNames": {
                                "type": "string"
                              },
                              "additionalProperties": {}
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "rateLimit": {
                          "anyOf": [
                            {
                              "type": "object",
                              "properties": {
                                "seconds": {
                                  "type": "integer",
                                  "minimum": -9007199254740991,
                                  "maximum": 9007199254740991
                                },
                                "max": {
                                  "type": "integer",
                                  "minimum": -9007199254740991,
                                  "maximum": 9007199254740991
                                }
                              },
                              "required": [
                                "seconds",
                                "max"
                              ],
                              "additionalProperties": false
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "remaining": {
                          "anyOf": [
                            {
                              "type": "integer",
                              "minimum": -9007199254740991,
                              "maximum": 9007199254740991
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "retired": {
                          "type": "boolean"
                        },
                        "createdAt": {
                          "type": "string",
                          "format": "date-time",
                          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                        }
                      },
                      "required": [
                        "id",
                        "name",
                        "hint",
                        "expiresAt",
                        "lastUsedAt",
                        "organizationId",
                        "permissions",
                        "metadata",
                        "rateLimit",
                        "remaining",
                        "retired",
                        "createdAt"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "required": [
                    "token",
                    "apiToken"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "The codes: [`invalid_body`](https://authtempo.com/docs/reference/errors/#invalid_body).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "invalid_body"
                      ]
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The codes: [`unauthorized`](https://authtempo.com/docs/reference/errors/#unauthorized).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "unauthorized"
                      ]
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "The codes: [`session_not_fresh`](https://authtempo.com/docs/reference/errors/#session_not_fresh), [`email_unverified`](https://authtempo.com/docs/reference/errors/#email_unverified), [`impersonation_session`](https://authtempo.com/docs/reference/errors/#impersonation_session), [`forbidden_rank`](https://authtempo.com/docs/reference/errors/#forbidden_rank), [`anonymous_refused`](https://authtempo.com/docs/reference/errors/#anonymous_refused), [`origin_not_trusted`](https://authtempo.com/docs/reference/errors/#origin_not_trusted).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "session_not_fresh",
                        "email_unverified",
                        "impersonation_session",
                        "forbidden_rank",
                        "anonymous_refused",
                        "origin_not_trusted"
                      ]
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "The codes: [`not_found`](https://authtempo.com/docs/reference/errors/#not_found).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "not_found"
                      ]
                    }
                  }
                }
              }
            }
          },
          "409": {
            "description": "The codes: [`token_limit`](https://authtempo.com/docs/reference/errors/#token_limit).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "token_limit"
                      ]
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "The codes: [`rate_limited`](https://authtempo.com/docs/reference/errors/#rate_limited).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "rate_limited"
                      ]
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "The codes: [`internal`](https://authtempo.com/docs/reference/errors/#internal).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "internal"
                      ]
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "sessionCookie": []
          },
          {
            "sessionBearer": []
          }
        ]
      },
      "get": {
        "tags": [
          "tokens"
        ],
        "summary": "GET /tokens",
        "operationId": "get-tokens",
        "externalDocs": {
          "url": "https://authtempo.com/docs/reference/routes/#get-tokens"
        },
        "x-authtempo-feature": "tokens",
        "x-authtempo-default": "on",
        "responses": {
          "200": {
            "description": "The answer.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "tokens": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string"
                          },
                          "name": {
                            "type": "string"
                          },
                          "hint": {
                            "type": "string"
                          },
                          "expiresAt": {
                            "anyOf": [
                              {
                                "type": "string",
                                "format": "date-time",
                                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "lastUsedAt": {
                            "anyOf": [
                              {
                                "type": "string",
                                "format": "date-time",
                                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "organizationId": {
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "permissions": {
                            "anyOf": [
                              {
                                "type": "object",
                                "propertyNames": {
                                  "type": "string"
                                },
                                "additionalProperties": {
                                  "type": "array",
                                  "items": {
                                    "type": "string"
                                  }
                                }
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "metadata": {
                            "anyOf": [
                              {
                                "type": "object",
                                "propertyNames": {
                                  "type": "string"
                                },
                                "additionalProperties": {}
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "rateLimit": {
                            "anyOf": [
                              {
                                "type": "object",
                                "properties": {
                                  "seconds": {
                                    "type": "integer",
                                    "minimum": -9007199254740991,
                                    "maximum": 9007199254740991
                                  },
                                  "max": {
                                    "type": "integer",
                                    "minimum": -9007199254740991,
                                    "maximum": 9007199254740991
                                  }
                                },
                                "required": [
                                  "seconds",
                                  "max"
                                ],
                                "additionalProperties": false
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "remaining": {
                            "anyOf": [
                              {
                                "type": "integer",
                                "minimum": -9007199254740991,
                                "maximum": 9007199254740991
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "retired": {
                            "type": "boolean"
                          },
                          "createdAt": {
                            "type": "string",
                            "format": "date-time",
                            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                          }
                        },
                        "required": [
                          "id",
                          "name",
                          "hint",
                          "expiresAt",
                          "lastUsedAt",
                          "organizationId",
                          "permissions",
                          "metadata",
                          "rateLimit",
                          "remaining",
                          "retired",
                          "createdAt"
                        ],
                        "additionalProperties": false
                      }
                    }
                  },
                  "required": [
                    "tokens"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "401": {
            "description": "The codes: [`unauthorized`](https://authtempo.com/docs/reference/errors/#unauthorized).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "unauthorized"
                      ]
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "The codes: [`email_unverified`](https://authtempo.com/docs/reference/errors/#email_unverified).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "email_unverified"
                      ]
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "The codes: [`not_found`](https://authtempo.com/docs/reference/errors/#not_found).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "not_found"
                      ]
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "The codes: [`internal`](https://authtempo.com/docs/reference/errors/#internal).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "internal"
                      ]
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "sessionCookie": []
          },
          {
            "sessionBearer": []
          }
        ]
      }
    },
    "/tokens/revoke": {
      "post": {
        "tags": [
          "tokens"
        ],
        "summary": "POST /tokens/revoke",
        "operationId": "post-tokens-revoke",
        "externalDocs": {
          "url": "https://authtempo.com/docs/reference/routes/#post-tokens-revoke"
        },
        "x-authtempo-feature": "tokens",
        "x-authtempo-default": "on",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64
                  }
                },
                "required": [
                  "id"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The answer.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OkAnswer"
                }
              }
            }
          },
          "400": {
            "description": "The codes: [`invalid_body`](https://authtempo.com/docs/reference/errors/#invalid_body).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "invalid_body"
                      ]
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The codes: [`unauthorized`](https://authtempo.com/docs/reference/errors/#unauthorized).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "unauthorized"
                      ]
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "The codes: [`email_unverified`](https://authtempo.com/docs/reference/errors/#email_unverified), [`origin_not_trusted`](https://authtempo.com/docs/reference/errors/#origin_not_trusted).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "email_unverified",
                        "origin_not_trusted"
                      ]
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "The codes: [`not_found`](https://authtempo.com/docs/reference/errors/#not_found).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "not_found"
                      ]
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "The codes: [`internal`](https://authtempo.com/docs/reference/errors/#internal).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "internal"
                      ]
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "sessionCookie": []
          },
          {
            "sessionBearer": []
          }
        ]
      }
    },
    "/tokens/update": {
      "post": {
        "tags": [
          "tokens"
        ],
        "summary": "POST /tokens/update",
        "operationId": "post-tokens-update",
        "externalDocs": {
          "url": "https://authtempo.com/docs/reference/routes/#post-tokens-update"
        },
        "x-authtempo-feature": "tokens",
        "x-authtempo-default": "on",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64
                  },
                  "name": {
                    "type": "string",
                    "maxLength": 200
                  },
                  "permissions": {
                    "anyOf": [
                      {
                        "type": "object",
                        "propertyNames": {
                          "type": "string",
                          "maxLength": 64
                        },
                        "additionalProperties": {
                          "maxItems": 64,
                          "type": "array",
                          "items": {
                            "type": "string",
                            "maxLength": 64
                          }
                        }
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "expiresAt": {
                    "anyOf": [
                      {
                        "type": "string",
                        "format": "date-time",
                        "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  }
                },
                "required": [
                  "id"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The answer.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string"
                    },
                    "name": {
                      "type": "string"
                    },
                    "hint": {
                      "type": "string"
                    },
                    "expiresAt": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "date-time",
                          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "lastUsedAt": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "date-time",
                          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "organizationId": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "permissions": {
                      "anyOf": [
                        {
                          "type": "object",
                          "propertyNames": {
                            "type": "string"
                          },
                          "additionalProperties": {
                            "type": "array",
                            "items": {
                              "type": "string"
                            }
                          }
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "metadata": {
                      "anyOf": [
                        {
                          "type": "object",
                          "propertyNames": {
                            "type": "string"
                          },
                          "additionalProperties": {}
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "rateLimit": {
                      "anyOf": [
                        {
                          "type": "object",
                          "properties": {
                            "seconds": {
                              "type": "integer",
                              "minimum": -9007199254740991,
                              "maximum": 9007199254740991
                            },
                            "max": {
                              "type": "integer",
                              "minimum": -9007199254740991,
                              "maximum": 9007199254740991
                            }
                          },
                          "required": [
                            "seconds",
                            "max"
                          ],
                          "additionalProperties": false
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "remaining": {
                      "anyOf": [
                        {
                          "type": "integer",
                          "minimum": -9007199254740991,
                          "maximum": 9007199254740991
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "retired": {
                      "type": "boolean"
                    },
                    "createdAt": {
                      "type": "string",
                      "format": "date-time",
                      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                    }
                  },
                  "required": [
                    "id",
                    "name",
                    "hint",
                    "expiresAt",
                    "lastUsedAt",
                    "organizationId",
                    "permissions",
                    "metadata",
                    "rateLimit",
                    "remaining",
                    "retired",
                    "createdAt"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "The codes: [`invalid_body`](https://authtempo.com/docs/reference/errors/#invalid_body).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "invalid_body"
                      ]
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The codes: [`unauthorized`](https://authtempo.com/docs/reference/errors/#unauthorized).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "unauthorized"
                      ]
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "The codes: [`session_not_fresh`](https://authtempo.com/docs/reference/errors/#session_not_fresh), [`email_unverified`](https://authtempo.com/docs/reference/errors/#email_unverified), [`impersonation_session`](https://authtempo.com/docs/reference/errors/#impersonation_session), [`origin_not_trusted`](https://authtempo.com/docs/reference/errors/#origin_not_trusted).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "session_not_fresh",
                        "email_unverified",
                        "impersonation_session",
                        "origin_not_trusted"
                      ]
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "The codes: [`not_found`](https://authtempo.com/docs/reference/errors/#not_found).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "not_found"
                      ]
                    }
                  }
                }
              }
            }
          },
          "409": {
            "description": "The codes: [`conflict`](https://authtempo.com/docs/reference/errors/#conflict).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "conflict"
                      ]
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "The codes: [`internal`](https://authtempo.com/docs/reference/errors/#internal).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "internal"
                      ]
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "sessionCookie": []
          },
          {
            "sessionBearer": []
          }
        ]
      }
    },
    "/tokens/current": {
      "get": {
        "tags": [
          "tokens"
        ],
        "summary": "GET /tokens/current",
        "operationId": "get-tokens-current",
        "externalDocs": {
          "url": "https://authtempo.com/docs/reference/routes/#get-tokens-current"
        },
        "x-authtempo-feature": "tokens",
        "x-authtempo-default": "on",
        "responses": {
          "200": {
            "description": "The answer.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "user": {
                      "$ref": "#/components/schemas/UserJson"
                    },
                    "apiToken": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string"
                        },
                        "name": {
                          "type": "string"
                        },
                        "hint": {
                          "type": "string"
                        },
                        "expiresAt": {
                          "anyOf": [
                            {
                              "type": "string",
                              "format": "date-time",
                              "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "lastUsedAt": {
                          "anyOf": [
                            {
                              "type": "string",
                              "format": "date-time",
                              "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "organizationId": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "permissions": {
                          "anyOf": [
                            {
                              "type": "object",
                              "propertyNames": {
                                "type": "string"
                              },
                              "additionalProperties": {
                                "type": "array",
                                "items": {
                                  "type": "string"
                                }
                              }
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "metadata": {
                          "anyOf": [
                            {
                              "type": "object",
                              "propertyNames": {
                                "type": "string"
                              },
                              "additionalProperties": {}
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "rateLimit": {
                          "anyOf": [
                            {
                              "type": "object",
                              "properties": {
                                "seconds": {
                                  "type": "integer",
                                  "minimum": -9007199254740991,
                                  "maximum": 9007199254740991
                                },
                                "max": {
                                  "type": "integer",
                                  "minimum": -9007199254740991,
                                  "maximum": 9007199254740991
                                }
                              },
                              "required": [
                                "seconds",
                                "max"
                              ],
                              "additionalProperties": false
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "remaining": {
                          "anyOf": [
                            {
                              "type": "integer",
                              "minimum": -9007199254740991,
                              "maximum": 9007199254740991
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "retired": {
                          "type": "boolean"
                        },
                        "createdAt": {
                          "type": "string",
                          "format": "date-time",
                          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                        }
                      },
                      "required": [
                        "id",
                        "name",
                        "hint",
                        "expiresAt",
                        "lastUsedAt",
                        "organizationId",
                        "permissions",
                        "metadata",
                        "rateLimit",
                        "remaining",
                        "retired",
                        "createdAt"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "required": [
                    "user",
                    "apiToken"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "401": {
            "description": "The codes: [`unauthorized`](https://authtempo.com/docs/reference/errors/#unauthorized), [`token_retired`](https://authtempo.com/docs/reference/errors/#token_retired).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "unauthorized",
                        "token_retired"
                      ]
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "The codes: [`not_found`](https://authtempo.com/docs/reference/errors/#not_found).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "not_found"
                      ]
                    }
                  }
                }
              }
            }
          },
          "409": {
            "description": "The codes: [`conflict`](https://authtempo.com/docs/reference/errors/#conflict).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "conflict"
                      ]
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "The codes: [`rate_limited`](https://authtempo.com/docs/reference/errors/#rate_limited), [`token_exhausted`](https://authtempo.com/docs/reference/errors/#token_exhausted).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "rate_limited",
                        "token_exhausted"
                      ]
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "The codes: [`internal`](https://authtempo.com/docs/reference/errors/#internal).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "internal"
                      ]
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "apiToken": []
          }
        ]
      }
    },
    "/jwks": {
      "get": {
        "tags": [
          "jwtMint"
        ],
        "summary": "GET /jwks",
        "operationId": "get-jwks",
        "externalDocs": {
          "url": "https://authtempo.com/docs/reference/routes/#get-jwks"
        },
        "x-authtempo-feature": "jwtMint",
        "x-authtempo-default": "on",
        "responses": {
          "200": {
            "description": "The JSON Web Key Set of RFC 7517.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "404": {
            "description": "The codes: [`not_found`](https://authtempo.com/docs/reference/errors/#not_found).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "not_found"
                      ]
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "The codes: [`internal`](https://authtempo.com/docs/reference/errors/#internal).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "internal"
                      ]
                    }
                  }
                }
              }
            }
          }
        },
        "security": []
      }
    },
    "/token": {
      "get": {
        "tags": [
          "jwtMint"
        ],
        "summary": "GET /token",
        "operationId": "get-token",
        "externalDocs": {
          "url": "https://authtempo.com/docs/reference/routes/#get-token"
        },
        "x-authtempo-feature": "jwtMint",
        "x-authtempo-default": "on",
        "responses": {
          "200": {
            "description": "The answer.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "token": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "token"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "401": {
            "description": "The codes: [`unauthorized`](https://authtempo.com/docs/reference/errors/#unauthorized).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "unauthorized"
                      ]
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "The codes: [`not_found`](https://authtempo.com/docs/reference/errors/#not_found).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "not_found"
                      ]
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "The codes: [`hook_failed`](https://authtempo.com/docs/reference/errors/#hook_failed), [`internal`](https://authtempo.com/docs/reference/errors/#internal).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "hook_failed",
                        "internal"
                      ]
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "sessionCookie": []
          },
          {
            "sessionBearer": []
          }
        ]
      }
    },
    "/token/live": {
      "post": {
        "tags": [
          "jwtMint"
        ],
        "summary": "POST /token/live",
        "operationId": "post-token-live",
        "externalDocs": {
          "url": "https://authtempo.com/docs/reference/routes/#post-token-live"
        },
        "x-authtempo-feature": "jwtMint",
        "x-authtempo-default": "on",
        "responses": {
          "200": {
            "description": "The answer.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "live": {
                      "type": "boolean"
                    }
                  },
                  "required": [
                    "live"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "401": {
            "description": "The codes: [`unauthorized`](https://authtempo.com/docs/reference/errors/#unauthorized).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "unauthorized"
                      ]
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "The codes: [`origin_not_trusted`](https://authtempo.com/docs/reference/errors/#origin_not_trusted).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "origin_not_trusted"
                      ]
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "The codes: [`not_found`](https://authtempo.com/docs/reference/errors/#not_found).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "not_found"
                      ]
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "The codes: [`rate_limited`](https://authtempo.com/docs/reference/errors/#rate_limited).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "rate_limited"
                      ]
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "The codes: [`internal`](https://authtempo.com/docs/reference/errors/#internal).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "internal"
                      ]
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "sessionJwt": []
          }
        ]
      }
    },
    "/operator/keys/rotate": {
      "post": {
        "tags": [
          "operator"
        ],
        "summary": "POST /operator/keys/rotate",
        "operationId": "post-operator-keys-rotate",
        "externalDocs": {
          "url": "https://authtempo.com/docs/reference/routes/#post-operator-keys-rotate"
        },
        "x-authtempo-feature": "operator",
        "x-authtempo-default": "off",
        "responses": {
          "200": {
            "description": "The answer.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "kid": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "kid"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "401": {
            "description": "The codes: [`unauthorized`](https://authtempo.com/docs/reference/errors/#unauthorized).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "unauthorized"
                      ]
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "The codes: [`operator_required`](https://authtempo.com/docs/reference/errors/#operator_required), [`impersonation_session`](https://authtempo.com/docs/reference/errors/#impersonation_session), [`origin_not_trusted`](https://authtempo.com/docs/reference/errors/#origin_not_trusted).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "operator_required",
                        "impersonation_session",
                        "origin_not_trusted"
                      ]
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "The codes: [`not_found`](https://authtempo.com/docs/reference/errors/#not_found).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "not_found"
                      ]
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "The codes: [`rate_limited`](https://authtempo.com/docs/reference/errors/#rate_limited).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "rate_limited"
                      ]
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "The codes: [`internal`](https://authtempo.com/docs/reference/errors/#internal).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "internal"
                      ]
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "operatorSecret": []
          }
        ]
      }
    },
    "/operator/secrets/status": {
      "get": {
        "tags": [
          "operator"
        ],
        "summary": "GET /operator/secrets/status",
        "operationId": "get-operator-secrets-status",
        "externalDocs": {
          "url": "https://authtempo.com/docs/reference/routes/#get-operator-secrets-status"
        },
        "x-authtempo-feature": "operator",
        "x-authtempo-default": "off",
        "responses": {
          "200": {
            "description": "The answer.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "versions": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "version": {
                            "type": "integer",
                            "minimum": -9007199254740991,
                            "maximum": 9007199254740991
                          },
                          "configured": {
                            "type": "boolean"
                          },
                          "current": {
                            "type": "boolean"
                          },
                          "totpSecrets": {
                            "type": "integer",
                            "minimum": -9007199254740991,
                            "maximum": 9007199254740991
                          },
                          "backupCodes": {
                            "type": "integer",
                            "minimum": -9007199254740991,
                            "maximum": 9007199254740991
                          },
                          "signingKeys": {
                            "type": "integer",
                            "minimum": -9007199254740991,
                            "maximum": 9007199254740991
                          },
                          "emailCodes": {
                            "type": "integer",
                            "minimum": -9007199254740991,
                            "maximum": 9007199254740991
                          },
                          "ssoClientSecrets": {
                            "type": "integer",
                            "minimum": -9007199254740991,
                            "maximum": 9007199254740991
                          },
                          "stateData": {
                            "type": "integer",
                            "minimum": -9007199254740991,
                            "maximum": 9007199254740991
                          }
                        },
                        "required": [
                          "version",
                          "configured",
                          "current",
                          "totpSecrets",
                          "backupCodes",
                          "signingKeys",
                          "emailCodes",
                          "ssoClientSecrets",
                          "stateData"
                        ],
                        "additionalProperties": false
                      }
                    }
                  },
                  "required": [
                    "versions"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "401": {
            "description": "The codes: [`unauthorized`](https://authtempo.com/docs/reference/errors/#unauthorized).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "unauthorized"
                      ]
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "The codes: [`operator_required`](https://authtempo.com/docs/reference/errors/#operator_required), [`impersonation_session`](https://authtempo.com/docs/reference/errors/#impersonation_session).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "operator_required",
                        "impersonation_session"
                      ]
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "The codes: [`not_found`](https://authtempo.com/docs/reference/errors/#not_found).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "not_found"
                      ]
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "The codes: [`rate_limited`](https://authtempo.com/docs/reference/errors/#rate_limited).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "rate_limited"
                      ]
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "The codes: [`internal`](https://authtempo.com/docs/reference/errors/#internal).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "internal"
                      ]
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "operatorSecret": []
          }
        ]
      }
    },
    "/operator/secrets/rewrap": {
      "post": {
        "tags": [
          "operator"
        ],
        "summary": "POST /operator/secrets/rewrap",
        "operationId": "post-operator-secrets-rewrap",
        "externalDocs": {
          "url": "https://authtempo.com/docs/reference/routes/#post-operator-secrets-rewrap"
        },
        "x-authtempo-feature": "operator",
        "x-authtempo-default": "off",
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "limit": {
                    "type": "integer",
                    "minimum": -9007199254740991,
                    "maximum": 9007199254740991
                  },
                  "after": {
                    "type": "string"
                  },
                  "callBudget": {
                    "type": "integer",
                    "minimum": -9007199254740991,
                    "maximum": 9007199254740991
                  }
                },
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The answer.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "resealed": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991
                    },
                    "failed": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991
                    },
                    "skipped": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991
                    },
                    "more": {
                      "type": "boolean"
                    },
                    "next": {
                      "type": [
                        "string",
                        "null"
                      ]
                    }
                  },
                  "required": [
                    "resealed",
                    "failed",
                    "skipped",
                    "more",
                    "next"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "The codes: [`invalid_body`](https://authtempo.com/docs/reference/errors/#invalid_body).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "invalid_body"
                      ]
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The codes: [`unauthorized`](https://authtempo.com/docs/reference/errors/#unauthorized).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "unauthorized"
                      ]
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "The codes: [`operator_required`](https://authtempo.com/docs/reference/errors/#operator_required), [`impersonation_session`](https://authtempo.com/docs/reference/errors/#impersonation_session), [`origin_not_trusted`](https://authtempo.com/docs/reference/errors/#origin_not_trusted).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "operator_required",
                        "impersonation_session",
                        "origin_not_trusted"
                      ]
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "The codes: [`not_found`](https://authtempo.com/docs/reference/errors/#not_found).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "not_found"
                      ]
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "The codes: [`rate_limited`](https://authtempo.com/docs/reference/errors/#rate_limited).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "rate_limited"
                      ]
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "The codes: [`internal`](https://authtempo.com/docs/reference/errors/#internal).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "internal"
                      ]
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "operatorSecret": []
          }
        ]
      }
    },
    "/operator/info": {
      "get": {
        "tags": [
          "operator"
        ],
        "summary": "GET /operator/info",
        "operationId": "get-operator-info",
        "externalDocs": {
          "url": "https://authtempo.com/docs/reference/routes/#get-operator-info"
        },
        "x-authtempo-feature": "operator",
        "x-authtempo-default": "off",
        "responses": {
          "200": {
            "description": "The answer.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "core": {
                      "type": "string"
                    },
                    "schemaVersion": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991
                    },
                    "configKeys": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    }
                  },
                  "required": [
                    "core",
                    "schemaVersion",
                    "configKeys"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "401": {
            "description": "The codes: [`unauthorized`](https://authtempo.com/docs/reference/errors/#unauthorized).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "unauthorized"
                      ]
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "The codes: [`impersonation_session`](https://authtempo.com/docs/reference/errors/#impersonation_session).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "impersonation_session"
                      ]
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "The codes: [`not_found`](https://authtempo.com/docs/reference/errors/#not_found).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "not_found"
                      ]
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "The codes: [`rate_limited`](https://authtempo.com/docs/reference/errors/#rate_limited).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "rate_limited"
                      ]
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "The codes: [`internal`](https://authtempo.com/docs/reference/errors/#internal).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "internal"
                      ]
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "operatorSecret": []
          }
        ]
      }
    },
    "/operator/impersonate": {
      "post": {
        "tags": [
          "operatorImpersonation"
        ],
        "summary": "POST /operator/impersonate",
        "operationId": "post-operator-impersonate",
        "externalDocs": {
          "url": "https://authtempo.com/docs/reference/routes/#post-operator-impersonate"
        },
        "x-authtempo-feature": "operatorImpersonation",
        "x-authtempo-default": "off",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "userId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64
                  },
                  "reason": {
                    "type": "string"
                  }
                },
                "required": [
                  "userId",
                  "reason"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The answer.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "token": {
                      "type": "string"
                    },
                    "expiresAt": {
                      "type": "string",
                      "format": "date-time",
                      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                    },
                    "auditId": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "expiresAt",
                    "auditId"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "The codes: [`invalid_body`](https://authtempo.com/docs/reference/errors/#invalid_body).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "invalid_body"
                      ]
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The codes: [`unauthorized`](https://authtempo.com/docs/reference/errors/#unauthorized).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "unauthorized"
                      ]
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "The codes: [`operator_required`](https://authtempo.com/docs/reference/errors/#operator_required), [`impersonation_refused`](https://authtempo.com/docs/reference/errors/#impersonation_refused), [`hook_refused`](https://authtempo.com/docs/reference/errors/#hook_refused), [`impersonation_session`](https://authtempo.com/docs/reference/errors/#impersonation_session), [`origin_not_trusted`](https://authtempo.com/docs/reference/errors/#origin_not_trusted).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "operator_required",
                        "impersonation_refused",
                        "hook_refused",
                        "impersonation_session",
                        "origin_not_trusted"
                      ]
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "The codes: [`not_found`](https://authtempo.com/docs/reference/errors/#not_found).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "not_found"
                      ]
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "The codes: [`rate_limited`](https://authtempo.com/docs/reference/errors/#rate_limited).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "rate_limited"
                      ]
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "The codes: [`hook_failed`](https://authtempo.com/docs/reference/errors/#hook_failed), [`internal`](https://authtempo.com/docs/reference/errors/#internal).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "hook_failed",
                        "internal"
                      ]
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "sessionCookie": []
          },
          {
            "sessionBearer": []
          }
        ]
      }
    },
    "/operator/impersonate/stop": {
      "post": {
        "tags": [
          "operatorImpersonation"
        ],
        "summary": "POST /operator/impersonate/stop",
        "operationId": "post-operator-impersonate-stop",
        "externalDocs": {
          "url": "https://authtempo.com/docs/reference/routes/#post-operator-impersonate-stop"
        },
        "x-authtempo-feature": "operatorImpersonation",
        "x-authtempo-default": "off",
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "reason": {
                    "type": "string"
                  }
                },
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The answer.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "auditId": {
                      "type": "string"
                    },
                    "restored": {
                      "type": "boolean"
                    }
                  },
                  "required": [
                    "auditId",
                    "restored"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "The codes: [`invalid_body`](https://authtempo.com/docs/reference/errors/#invalid_body).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "invalid_body"
                      ]
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The codes: [`unauthorized`](https://authtempo.com/docs/reference/errors/#unauthorized).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "unauthorized"
                      ]
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "The codes: [`hook_refused`](https://authtempo.com/docs/reference/errors/#hook_refused), [`origin_not_trusted`](https://authtempo.com/docs/reference/errors/#origin_not_trusted).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "hook_refused",
                        "origin_not_trusted"
                      ]
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "The codes: [`not_found`](https://authtempo.com/docs/reference/errors/#not_found).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "not_found"
                      ]
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "The codes: [`hook_failed`](https://authtempo.com/docs/reference/errors/#hook_failed), [`internal`](https://authtempo.com/docs/reference/errors/#internal).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "hook_failed",
                        "internal"
                      ]
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "sessionCookie": []
          },
          {
            "sessionBearer": []
          }
        ]
      }
    },
    "/operator/users": {
      "get": {
        "tags": [
          "operatorUsers"
        ],
        "summary": "GET /operator/users",
        "operationId": "get-operator-users",
        "externalDocs": {
          "url": "https://authtempo.com/docs/reference/routes/#get-operator-users"
        },
        "x-authtempo-feature": "operatorUsers",
        "x-authtempo-default": "off",
        "parameters": [
          {
            "name": "after",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 64
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "pattern": "^[1-9][0-9]{0,2}$"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The answer.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "users": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string"
                          },
                          "email": {
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "emailVerified": {
                            "type": "boolean"
                          },
                          "username": {
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "phone": {
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "name": {
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "createdAt": {
                            "type": "string",
                            "format": "date-time",
                            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                          },
                          "ban": {
                            "anyOf": [
                              {
                                "type": "object",
                                "properties": {
                                  "at": {
                                    "type": "string",
                                    "format": "date-time",
                                    "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                                  },
                                  "reason": {
                                    "type": [
                                      "string",
                                      "null"
                                    ]
                                  },
                                  "until": {
                                    "anyOf": [
                                      {
                                        "type": "string",
                                        "format": "date-time",
                                        "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                                      },
                                      {
                                        "type": "null"
                                      }
                                    ]
                                  }
                                },
                                "required": [
                                  "at",
                                  "reason",
                                  "until"
                                ],
                                "additionalProperties": false
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "platformOperator": {
                            "type": "boolean"
                          },
                          "secondFactor": {
                            "type": "array",
                            "items": {
                              "type": "string"
                            }
                          },
                          "sessions": {
                            "type": "integer",
                            "minimum": -9007199254740991,
                            "maximum": 9007199254740991
                          },
                          "identities": {
                            "type": "array",
                            "items": {
                              "type": "string"
                            }
                          }
                        },
                        "required": [
                          "id",
                          "email",
                          "emailVerified",
                          "username",
                          "phone",
                          "name",
                          "createdAt",
                          "ban",
                          "platformOperator",
                          "secondFactor",
                          "sessions",
                          "identities"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "next": {
                      "type": [
                        "string",
                        "null"
                      ]
                    }
                  },
                  "required": [
                    "users",
                    "next"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "The codes: [`invalid_body`](https://authtempo.com/docs/reference/errors/#invalid_body).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "invalid_body"
                      ]
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The codes: [`unauthorized`](https://authtempo.com/docs/reference/errors/#unauthorized).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "unauthorized"
                      ]
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "The codes: [`operator_required`](https://authtempo.com/docs/reference/errors/#operator_required), [`impersonation_session`](https://authtempo.com/docs/reference/errors/#impersonation_session).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "operator_required",
                        "impersonation_session"
                      ]
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "The codes: [`not_found`](https://authtempo.com/docs/reference/errors/#not_found).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "not_found"
                      ]
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "The codes: [`rate_limited`](https://authtempo.com/docs/reference/errors/#rate_limited).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "rate_limited"
                      ]
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "The codes: [`internal`](https://authtempo.com/docs/reference/errors/#internal).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "internal"
                      ]
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "operatorSecret": []
          },
          {
            "sessionCookie": []
          },
          {
            "sessionBearer": []
          }
        ]
      }
    },
    "/operator/users/search": {
      "get": {
        "tags": [
          "operatorUsers"
        ],
        "summary": "GET /operator/users/search",
        "operationId": "get-operator-users-search",
        "externalDocs": {
          "url": "https://authtempo.com/docs/reference/routes/#get-operator-users-search"
        },
        "x-authtempo-feature": "operatorUsers",
        "x-authtempo-default": "off",
        "parameters": [
          {
            "name": "email",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 320
            }
          },
          {
            "name": "emailPrefix",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 254
            }
          },
          {
            "name": "id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 64
            }
          },
          {
            "name": "after",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 64
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "pattern": "^[1-9][0-9]{0,2}$"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The answer.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "users": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string"
                          },
                          "email": {
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "emailVerified": {
                            "type": "boolean"
                          },
                          "username": {
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "phone": {
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "name": {
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "createdAt": {
                            "type": "string",
                            "format": "date-time",
                            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                          },
                          "ban": {
                            "anyOf": [
                              {
                                "type": "object",
                                "properties": {
                                  "at": {
                                    "type": "string",
                                    "format": "date-time",
                                    "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                                  },
                                  "reason": {
                                    "type": [
                                      "string",
                                      "null"
                                    ]
                                  },
                                  "until": {
                                    "anyOf": [
                                      {
                                        "type": "string",
                                        "format": "date-time",
                                        "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                                      },
                                      {
                                        "type": "null"
                                      }
                                    ]
                                  }
                                },
                                "required": [
                                  "at",
                                  "reason",
                                  "until"
                                ],
                                "additionalProperties": false
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "platformOperator": {
                            "type": "boolean"
                          },
                          "secondFactor": {
                            "type": "array",
                            "items": {
                              "type": "string"
                            }
                          },
                          "sessions": {
                            "type": "integer",
                            "minimum": -9007199254740991,
                            "maximum": 9007199254740991
                          },
                          "identities": {
                            "type": "array",
                            "items": {
                              "type": "string"
                            }
                          }
                        },
                        "required": [
                          "id",
                          "email",
                          "emailVerified",
                          "username",
                          "phone",
                          "name",
                          "createdAt",
                          "ban",
                          "platformOperator",
                          "secondFactor",
                          "sessions",
                          "identities"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "next": {
                      "type": [
                        "string",
                        "null"
                      ]
                    }
                  },
                  "required": [
                    "users",
                    "next"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "The codes: [`invalid_body`](https://authtempo.com/docs/reference/errors/#invalid_body).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "invalid_body"
                      ]
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The codes: [`unauthorized`](https://authtempo.com/docs/reference/errors/#unauthorized).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "unauthorized"
                      ]
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "The codes: [`operator_required`](https://authtempo.com/docs/reference/errors/#operator_required), [`impersonation_session`](https://authtempo.com/docs/reference/errors/#impersonation_session).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "operator_required",
                        "impersonation_session"
                      ]
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "The codes: [`not_found`](https://authtempo.com/docs/reference/errors/#not_found).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "not_found"
                      ]
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "The codes: [`rate_limited`](https://authtempo.com/docs/reference/errors/#rate_limited).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "rate_limited"
                      ]
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "The codes: [`internal`](https://authtempo.com/docs/reference/errors/#internal).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "internal"
                      ]
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "operatorSecret": []
          },
          {
            "sessionCookie": []
          },
          {
            "sessionBearer": []
          }
        ]
      }
    },
    "/operator/users/get": {
      "get": {
        "tags": [
          "operatorUsers"
        ],
        "summary": "GET /operator/users/get",
        "operationId": "get-operator-users-get",
        "externalDocs": {
          "url": "https://authtempo.com/docs/reference/routes/#get-operator-users-get"
        },
        "x-authtempo-feature": "operatorUsers",
        "x-authtempo-default": "off",
        "parameters": [
          {
            "name": "userId",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 64
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The answer.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "user": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string"
                        },
                        "email": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "emailVerified": {
                          "type": "boolean"
                        },
                        "username": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "phone": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "name": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "createdAt": {
                          "type": "string",
                          "format": "date-time",
                          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                        },
                        "ban": {
                          "anyOf": [
                            {
                              "type": "object",
                              "properties": {
                                "at": {
                                  "type": "string",
                                  "format": "date-time",
                                  "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                                },
                                "reason": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "until": {
                                  "anyOf": [
                                    {
                                      "type": "string",
                                      "format": "date-time",
                                      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                }
                              },
                              "required": [
                                "at",
                                "reason",
                                "until"
                              ],
                              "additionalProperties": false
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "platformOperator": {
                          "type": "boolean"
                        },
                        "secondFactor": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          }
                        },
                        "sessions": {
                          "type": "integer",
                          "minimum": -9007199254740991,
                          "maximum": 9007199254740991
                        },
                        "identities": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          }
                        }
                      },
                      "required": [
                        "id",
                        "email",
                        "emailVerified",
                        "username",
                        "phone",
                        "name",
                        "createdAt",
                        "ban",
                        "platformOperator",
                        "secondFactor",
                        "sessions",
                        "identities"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "required": [
                    "user"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "The codes: [`invalid_body`](https://authtempo.com/docs/reference/errors/#invalid_body).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "invalid_body"
                      ]
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The codes: [`unauthorized`](https://authtempo.com/docs/reference/errors/#unauthorized).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "unauthorized"
                      ]
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "The codes: [`operator_required`](https://authtempo.com/docs/reference/errors/#operator_required), [`impersonation_session`](https://authtempo.com/docs/reference/errors/#impersonation_session).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "operator_required",
                        "impersonation_session"
                      ]
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "The codes: [`not_found`](https://authtempo.com/docs/reference/errors/#not_found).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "not_found"
                      ]
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "The codes: [`rate_limited`](https://authtempo.com/docs/reference/errors/#rate_limited).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "rate_limited"
                      ]
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "The codes: [`internal`](https://authtempo.com/docs/reference/errors/#internal).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "internal"
                      ]
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "operatorSecret": []
          },
          {
            "sessionCookie": []
          },
          {
            "sessionBearer": []
          }
        ]
      }
    },
    "/operator/users/ban": {
      "post": {
        "tags": [
          "operatorUsers"
        ],
        "summary": "POST /operator/users/ban",
        "operationId": "post-operator-users-ban",
        "externalDocs": {
          "url": "https://authtempo.com/docs/reference/routes/#post-operator-users-ban"
        },
        "x-authtempo-feature": "operatorUsers",
        "x-authtempo-default": "off",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "userId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64
                  },
                  "reason": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 500
                  },
                  "until": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64
                  }
                },
                "required": [
                  "userId",
                  "reason"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The answer.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "auditId": {
                      "type": "string"
                    },
                    "familyEndFailed": {
                      "type": "boolean",
                      "const": true
                    }
                  },
                  "required": [
                    "auditId"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "The codes: [`invalid_body`](https://authtempo.com/docs/reference/errors/#invalid_body).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "invalid_body"
                      ]
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The codes: [`unauthorized`](https://authtempo.com/docs/reference/errors/#unauthorized).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "unauthorized"
                      ]
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "The codes: [`operator_required`](https://authtempo.com/docs/reference/errors/#operator_required), [`hook_refused`](https://authtempo.com/docs/reference/errors/#hook_refused), [`impersonation_session`](https://authtempo.com/docs/reference/errors/#impersonation_session), [`origin_not_trusted`](https://authtempo.com/docs/reference/errors/#origin_not_trusted).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "operator_required",
                        "hook_refused",
                        "impersonation_session",
                        "origin_not_trusted"
                      ]
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "The codes: [`not_found`](https://authtempo.com/docs/reference/errors/#not_found).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "not_found"
                      ]
                    }
                  }
                }
              }
            }
          },
          "409": {
            "description": "The codes: [`operator_self`](https://authtempo.com/docs/reference/errors/#operator_self), [`conflict`](https://authtempo.com/docs/reference/errors/#conflict).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "operator_self",
                        "conflict"
                      ]
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "The codes: [`rate_limited`](https://authtempo.com/docs/reference/errors/#rate_limited).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "rate_limited"
                      ]
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "The codes: [`hook_failed`](https://authtempo.com/docs/reference/errors/#hook_failed), [`internal`](https://authtempo.com/docs/reference/errors/#internal).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "hook_failed",
                        "internal"
                      ]
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "operatorSecret": []
          },
          {
            "sessionCookie": []
          },
          {
            "sessionBearer": []
          }
        ]
      }
    },
    "/operator/users/unban": {
      "post": {
        "tags": [
          "operatorUsers"
        ],
        "summary": "POST /operator/users/unban",
        "operationId": "post-operator-users-unban",
        "externalDocs": {
          "url": "https://authtempo.com/docs/reference/routes/#post-operator-users-unban"
        },
        "x-authtempo-feature": "operatorUsers",
        "x-authtempo-default": "off",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "userId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64
                  },
                  "reason": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 500
                  }
                },
                "required": [
                  "userId",
                  "reason"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The answer.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "auditId": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "auditId"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "The codes: [`invalid_body`](https://authtempo.com/docs/reference/errors/#invalid_body).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "invalid_body"
                      ]
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The codes: [`unauthorized`](https://authtempo.com/docs/reference/errors/#unauthorized).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "unauthorized"
                      ]
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "The codes: [`operator_required`](https://authtempo.com/docs/reference/errors/#operator_required), [`hook_refused`](https://authtempo.com/docs/reference/errors/#hook_refused), [`impersonation_session`](https://authtempo.com/docs/reference/errors/#impersonation_session), [`origin_not_trusted`](https://authtempo.com/docs/reference/errors/#origin_not_trusted).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "operator_required",
                        "hook_refused",
                        "impersonation_session",
                        "origin_not_trusted"
                      ]
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "The codes: [`not_found`](https://authtempo.com/docs/reference/errors/#not_found).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "not_found"
                      ]
                    }
                  }
                }
              }
            }
          },
          "409": {
            "description": "The codes: [`operator_self`](https://authtempo.com/docs/reference/errors/#operator_self), [`conflict`](https://authtempo.com/docs/reference/errors/#conflict).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "operator_self",
                        "conflict"
                      ]
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "The codes: [`rate_limited`](https://authtempo.com/docs/reference/errors/#rate_limited).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "rate_limited"
                      ]
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "The codes: [`hook_failed`](https://authtempo.com/docs/reference/errors/#hook_failed), [`internal`](https://authtempo.com/docs/reference/errors/#internal).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "hook_failed",
                        "internal"
                      ]
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "operatorSecret": []
          },
          {
            "sessionCookie": []
          },
          {
            "sessionBearer": []
          }
        ]
      }
    },
    "/operator/users/platform-role": {
      "post": {
        "tags": [
          "operatorUsers"
        ],
        "summary": "POST /operator/users/platform-role",
        "operationId": "post-operator-users-platform-role",
        "externalDocs": {
          "url": "https://authtempo.com/docs/reference/routes/#post-operator-users-platform-role"
        },
        "x-authtempo-feature": "operatorUsers",
        "x-authtempo-default": "off",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "userId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64
                  },
                  "grant": {
                    "type": "boolean"
                  },
                  "reason": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 500
                  }
                },
                "required": [
                  "userId",
                  "grant",
                  "reason"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The answer.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "auditId": {
                      "type": "string"
                    },
                    "familyEndFailed": {
                      "type": "boolean",
                      "const": true
                    }
                  },
                  "required": [
                    "auditId"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "The codes: [`invalid_body`](https://authtempo.com/docs/reference/errors/#invalid_body).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "invalid_body"
                      ]
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The codes: [`unauthorized`](https://authtempo.com/docs/reference/errors/#unauthorized).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "unauthorized"
                      ]
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "The codes: [`operator_required`](https://authtempo.com/docs/reference/errors/#operator_required), [`email_unverified`](https://authtempo.com/docs/reference/errors/#email_unverified), [`account_banned`](https://authtempo.com/docs/reference/errors/#account_banned), [`hook_refused`](https://authtempo.com/docs/reference/errors/#hook_refused), [`impersonation_session`](https://authtempo.com/docs/reference/errors/#impersonation_session), [`origin_not_trusted`](https://authtempo.com/docs/reference/errors/#origin_not_trusted).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "operator_required",
                        "email_unverified",
                        "account_banned",
                        "hook_refused",
                        "impersonation_session",
                        "origin_not_trusted"
                      ]
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "The codes: [`not_found`](https://authtempo.com/docs/reference/errors/#not_found).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "not_found"
                      ]
                    }
                  }
                }
              }
            }
          },
          "409": {
            "description": "The codes: [`operator_self`](https://authtempo.com/docs/reference/errors/#operator_self), [`member_limit`](https://authtempo.com/docs/reference/errors/#member_limit), [`last_owner`](https://authtempo.com/docs/reference/errors/#last_owner), [`conflict`](https://authtempo.com/docs/reference/errors/#conflict).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "operator_self",
                        "member_limit",
                        "last_owner",
                        "conflict"
                      ]
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "The codes: [`rate_limited`](https://authtempo.com/docs/reference/errors/#rate_limited).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "rate_limited"
                      ]
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "The codes: [`hook_failed`](https://authtempo.com/docs/reference/errors/#hook_failed), [`internal`](https://authtempo.com/docs/reference/errors/#internal).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "hook_failed",
                        "internal"
                      ]
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "operatorSecret": []
          },
          {
            "sessionCookie": []
          },
          {
            "sessionBearer": []
          }
        ]
      }
    },
    "/operator/users/second-factor/disable": {
      "post": {
        "tags": [
          "operatorUsers"
        ],
        "summary": "POST /operator/users/second-factor/disable",
        "operationId": "post-operator-users-second-factor-disable",
        "externalDocs": {
          "url": "https://authtempo.com/docs/reference/routes/#post-operator-users-second-factor-disable"
        },
        "x-authtempo-feature": "operatorUsers",
        "x-authtempo-default": "off",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "userId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64
                  },
                  "reason": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 500
                  },
                  "proof": {
                    "type": "object",
                    "properties": {
                      "method": {
                        "type": "string",
                        "enum": [
                          "document",
                          "in_person",
                          "video",
                          "knowledge",
                          "other"
                        ]
                      },
                      "reference": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 200
                      },
                      "checkedAt": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 64
                      }
                    },
                    "required": [
                      "method",
                      "reference",
                      "checkedAt"
                    ],
                    "additionalProperties": false
                  }
                },
                "required": [
                  "userId",
                  "reason",
                  "proof"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The answer.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "auditId": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "auditId"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "The codes: [`invalid_body`](https://authtempo.com/docs/reference/errors/#invalid_body), [`totp_not_enabled`](https://authtempo.com/docs/reference/errors/#totp_not_enabled).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "invalid_body",
                        "totp_not_enabled"
                      ]
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The codes: [`unauthorized`](https://authtempo.com/docs/reference/errors/#unauthorized).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "unauthorized"
                      ]
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "The codes: [`operator_required`](https://authtempo.com/docs/reference/errors/#operator_required), [`hook_refused`](https://authtempo.com/docs/reference/errors/#hook_refused), [`impersonation_session`](https://authtempo.com/docs/reference/errors/#impersonation_session), [`origin_not_trusted`](https://authtempo.com/docs/reference/errors/#origin_not_trusted).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "operator_required",
                        "hook_refused",
                        "impersonation_session",
                        "origin_not_trusted"
                      ]
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "The codes: [`not_found`](https://authtempo.com/docs/reference/errors/#not_found).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "not_found"
                      ]
                    }
                  }
                }
              }
            }
          },
          "409": {
            "description": "The codes: [`operator_self`](https://authtempo.com/docs/reference/errors/#operator_self), [`conflict`](https://authtempo.com/docs/reference/errors/#conflict).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "operator_self",
                        "conflict"
                      ]
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "The codes: [`rate_limited`](https://authtempo.com/docs/reference/errors/#rate_limited).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "rate_limited"
                      ]
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "The codes: [`hook_failed`](https://authtempo.com/docs/reference/errors/#hook_failed), [`internal`](https://authtempo.com/docs/reference/errors/#internal).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "hook_failed",
                        "internal"
                      ]
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "operatorSecret": []
          },
          {
            "sessionCookie": []
          },
          {
            "sessionBearer": []
          }
        ]
      }
    },
    "/operator/users/create-admin": {
      "post": {
        "tags": [
          "operatorUsers"
        ],
        "summary": "POST /operator/users/create-admin",
        "operationId": "post-operator-users-create-admin",
        "externalDocs": {
          "url": "https://authtempo.com/docs/reference/routes/#post-operator-users-create-admin"
        },
        "x-authtempo-feature": "operatorUsers",
        "x-authtempo-default": "off",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "email": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 320
                  },
                  "name": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 200
                  },
                  "reason": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 500
                  }
                },
                "required": [
                  "email",
                  "reason"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The answer.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "userId": {
                      "type": "string"
                    },
                    "created": {
                      "type": "boolean"
                    },
                    "auditId": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "userId",
                    "created",
                    "auditId"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "The codes: [`invalid_body`](https://authtempo.com/docs/reference/errors/#invalid_body).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "invalid_body"
                      ]
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The codes: [`unauthorized`](https://authtempo.com/docs/reference/errors/#unauthorized).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "unauthorized"
                      ]
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "The codes: [`operator_required`](https://authtempo.com/docs/reference/errors/#operator_required), [`account_banned`](https://authtempo.com/docs/reference/errors/#account_banned), [`hook_refused`](https://authtempo.com/docs/reference/errors/#hook_refused), [`impersonation_session`](https://authtempo.com/docs/reference/errors/#impersonation_session), [`origin_not_trusted`](https://authtempo.com/docs/reference/errors/#origin_not_trusted).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "operator_required",
                        "account_banned",
                        "hook_refused",
                        "impersonation_session",
                        "origin_not_trusted"
                      ]
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "The codes: [`not_found`](https://authtempo.com/docs/reference/errors/#not_found).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "not_found"
                      ]
                    }
                  }
                }
              }
            }
          },
          "409": {
            "description": "The codes: [`member_limit`](https://authtempo.com/docs/reference/errors/#member_limit), [`conflict`](https://authtempo.com/docs/reference/errors/#conflict).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "member_limit",
                        "conflict"
                      ]
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "The codes: [`rate_limited`](https://authtempo.com/docs/reference/errors/#rate_limited).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "rate_limited"
                      ]
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "The codes: [`hook_failed`](https://authtempo.com/docs/reference/errors/#hook_failed), [`internal`](https://authtempo.com/docs/reference/errors/#internal).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "hook_failed",
                        "internal"
                      ]
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "operatorSecret": []
          },
          {
            "sessionCookie": []
          },
          {
            "sessionBearer": []
          }
        ]
      }
    },
    "/operator/users/create": {
      "post": {
        "tags": [
          "operatorUsers"
        ],
        "summary": "POST /operator/users/create",
        "operationId": "post-operator-users-create",
        "externalDocs": {
          "url": "https://authtempo.com/docs/reference/routes/#post-operator-users-create"
        },
        "x-authtempo-feature": "operatorUsers",
        "x-authtempo-default": "off",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "email": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 320
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "phone": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 32
                  },
                  "emailVerified": {
                    "type": "boolean"
                  },
                  "name": {
                    "anyOf": [
                      {
                        "type": "string",
                        "maxLength": 400
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "image": {
                    "anyOf": [
                      {
                        "type": "string",
                        "maxLength": 4096
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "firstSignIn": {
                    "type": "string",
                    "enum": [
                      "invite",
                      "reset",
                      "none"
                    ]
                  },
                  "reason": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 500
                  }
                },
                "required": [
                  "email",
                  "reason"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The answer.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "userId": {
                      "type": "string"
                    },
                    "mailed": {
                      "anyOf": [
                        {
                          "type": "string",
                          "enum": [
                            "invite",
                            "reset"
                          ]
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "auditId": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "userId",
                    "mailed",
                    "auditId"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "The codes: [`invalid_body`](https://authtempo.com/docs/reference/errors/#invalid_body), [`phone_invalid`](https://authtempo.com/docs/reference/errors/#phone_invalid), [`phone_region`](https://authtempo.com/docs/reference/errors/#phone_region).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "invalid_body",
                        "phone_invalid",
                        "phone_region"
                      ]
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The codes: [`unauthorized`](https://authtempo.com/docs/reference/errors/#unauthorized).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "unauthorized"
                      ]
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "The codes: [`operator_required`](https://authtempo.com/docs/reference/errors/#operator_required), [`hook_refused`](https://authtempo.com/docs/reference/errors/#hook_refused), [`impersonation_session`](https://authtempo.com/docs/reference/errors/#impersonation_session), [`origin_not_trusted`](https://authtempo.com/docs/reference/errors/#origin_not_trusted).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "operator_required",
                        "hook_refused",
                        "impersonation_session",
                        "origin_not_trusted"
                      ]
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "The codes: [`not_found`](https://authtempo.com/docs/reference/errors/#not_found).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "not_found"
                      ]
                    }
                  }
                }
              }
            }
          },
          "409": {
            "description": "The codes: [`email_taken`](https://authtempo.com/docs/reference/errors/#email_taken), [`phone_taken`](https://authtempo.com/docs/reference/errors/#phone_taken).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "email_taken",
                        "phone_taken"
                      ]
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "The codes: [`rate_limited`](https://authtempo.com/docs/reference/errors/#rate_limited).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "rate_limited"
                      ]
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "The codes: [`hook_failed`](https://authtempo.com/docs/reference/errors/#hook_failed), [`internal`](https://authtempo.com/docs/reference/errors/#internal).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "hook_failed",
                        "internal"
                      ]
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "operatorSecret": []
          },
          {
            "sessionCookie": []
          },
          {
            "sessionBearer": []
          }
        ]
      }
    },
    "/operator/users/update": {
      "post": {
        "tags": [
          "operatorUsers"
        ],
        "summary": "POST /operator/users/update",
        "operationId": "post-operator-users-update",
        "externalDocs": {
          "url": "https://authtempo.com/docs/reference/routes/#post-operator-users-update"
        },
        "x-authtempo-feature": "operatorUsers",
        "x-authtempo-default": "off",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "userId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64
                  },
                  "name": {
                    "anyOf": [
                      {
                        "type": "string",
                        "maxLength": 400
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "image": {
                    "anyOf": [
                      {
                        "type": "string",
                        "maxLength": 4096
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "reason": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 500
                  }
                },
                "required": [
                  "userId",
                  "reason"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The answer.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "user": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string"
                        },
                        "email": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "emailVerified": {
                          "type": "boolean"
                        },
                        "username": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "phone": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "name": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "createdAt": {
                          "type": "string",
                          "format": "date-time",
                          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                        },
                        "ban": {
                          "anyOf": [
                            {
                              "type": "object",
                              "properties": {
                                "at": {
                                  "type": "string",
                                  "format": "date-time",
                                  "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                                },
                                "reason": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "until": {
                                  "anyOf": [
                                    {
                                      "type": "string",
                                      "format": "date-time",
                                      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                }
                              },
                              "required": [
                                "at",
                                "reason",
                                "until"
                              ],
                              "additionalProperties": false
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "platformOperator": {
                          "type": "boolean"
                        },
                        "secondFactor": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          }
                        },
                        "sessions": {
                          "type": "integer",
                          "minimum": -9007199254740991,
                          "maximum": 9007199254740991
                        },
                        "identities": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          }
                        }
                      },
                      "required": [
                        "id",
                        "email",
                        "emailVerified",
                        "username",
                        "phone",
                        "name",
                        "createdAt",
                        "ban",
                        "platformOperator",
                        "secondFactor",
                        "sessions",
                        "identities"
                      ],
                      "additionalProperties": false
                    },
                    "auditId": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "user",
                    "auditId"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "The codes: [`invalid_body`](https://authtempo.com/docs/reference/errors/#invalid_body).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "invalid_body"
                      ]
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The codes: [`unauthorized`](https://authtempo.com/docs/reference/errors/#unauthorized).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "unauthorized"
                      ]
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "The codes: [`operator_required`](https://authtempo.com/docs/reference/errors/#operator_required), [`hook_refused`](https://authtempo.com/docs/reference/errors/#hook_refused), [`impersonation_session`](https://authtempo.com/docs/reference/errors/#impersonation_session), [`origin_not_trusted`](https://authtempo.com/docs/reference/errors/#origin_not_trusted).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "operator_required",
                        "hook_refused",
                        "impersonation_session",
                        "origin_not_trusted"
                      ]
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "The codes: [`not_found`](https://authtempo.com/docs/reference/errors/#not_found).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "not_found"
                      ]
                    }
                  }
                }
              }
            }
          },
          "409": {
            "description": "The codes: [`operator_self`](https://authtempo.com/docs/reference/errors/#operator_self), [`conflict`](https://authtempo.com/docs/reference/errors/#conflict).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "operator_self",
                        "conflict"
                      ]
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "The codes: [`rate_limited`](https://authtempo.com/docs/reference/errors/#rate_limited).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "rate_limited"
                      ]
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "The codes: [`hook_failed`](https://authtempo.com/docs/reference/errors/#hook_failed), [`internal`](https://authtempo.com/docs/reference/errors/#internal).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "hook_failed",
                        "internal"
                      ]
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "operatorSecret": []
          },
          {
            "sessionCookie": []
          },
          {
            "sessionBearer": []
          }
        ]
      }
    },
    "/operator/users/delete": {
      "post": {
        "tags": [
          "operatorUsers"
        ],
        "summary": "POST /operator/users/delete",
        "operationId": "post-operator-users-delete",
        "externalDocs": {
          "url": "https://authtempo.com/docs/reference/routes/#post-operator-users-delete"
        },
        "x-authtempo-feature": "operatorUsers",
        "x-authtempo-default": "off",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "userId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64
                  },
                  "reason": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 500
                  }
                },
                "required": [
                  "userId",
                  "reason"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The answer.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "organizations": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    "auditId": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "organizations",
                    "auditId"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "The codes: [`invalid_body`](https://authtempo.com/docs/reference/errors/#invalid_body).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "invalid_body"
                      ]
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The codes: [`unauthorized`](https://authtempo.com/docs/reference/errors/#unauthorized).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "unauthorized"
                      ]
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "The codes: [`operator_required`](https://authtempo.com/docs/reference/errors/#operator_required), [`hook_refused`](https://authtempo.com/docs/reference/errors/#hook_refused), [`impersonation_session`](https://authtempo.com/docs/reference/errors/#impersonation_session), [`origin_not_trusted`](https://authtempo.com/docs/reference/errors/#origin_not_trusted).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "operator_required",
                        "hook_refused",
                        "impersonation_session",
                        "origin_not_trusted"
                      ]
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "The codes: [`not_found`](https://authtempo.com/docs/reference/errors/#not_found).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "not_found"
                      ]
                    }
                  }
                }
              }
            }
          },
          "409": {
            "description": "The codes: [`operator_self`](https://authtempo.com/docs/reference/errors/#operator_self), [`sole_owner`](https://authtempo.com/docs/reference/errors/#sole_owner), [`delete_too_large`](https://authtempo.com/docs/reference/errors/#delete_too_large), [`conflict`](https://authtempo.com/docs/reference/errors/#conflict).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "operator_self",
                        "sole_owner",
                        "delete_too_large",
                        "conflict"
                      ]
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "The codes: [`rate_limited`](https://authtempo.com/docs/reference/errors/#rate_limited).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "rate_limited"
                      ]
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "The codes: [`hook_failed`](https://authtempo.com/docs/reference/errors/#hook_failed), [`internal`](https://authtempo.com/docs/reference/errors/#internal).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "hook_failed",
                        "internal"
                      ]
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "operatorSecret": []
          },
          {
            "sessionCookie": []
          },
          {
            "sessionBearer": []
          }
        ]
      }
    },
    "/operator/sessions/end-user": {
      "post": {
        "tags": [
          "operatorUsers"
        ],
        "summary": "POST /operator/sessions/end-user",
        "operationId": "post-operator-sessions-end-user",
        "externalDocs": {
          "url": "https://authtempo.com/docs/reference/routes/#post-operator-sessions-end-user"
        },
        "x-authtempo-feature": "operatorUsers",
        "x-authtempo-default": "off",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "userId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64
                  },
                  "reason": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 500
                  }
                },
                "required": [
                  "userId",
                  "reason"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The answer.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "ended": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991
                    },
                    "more": {
                      "type": "boolean"
                    },
                    "auditId": {
                      "type": "string"
                    },
                    "familyEndFailed": {
                      "type": "boolean",
                      "const": true
                    }
                  },
                  "required": [
                    "ended",
                    "more",
                    "auditId"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "The codes: [`invalid_body`](https://authtempo.com/docs/reference/errors/#invalid_body).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "invalid_body"
                      ]
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The codes: [`unauthorized`](https://authtempo.com/docs/reference/errors/#unauthorized).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "unauthorized"
                      ]
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "The codes: [`operator_required`](https://authtempo.com/docs/reference/errors/#operator_required), [`hook_refused`](https://authtempo.com/docs/reference/errors/#hook_refused), [`impersonation_session`](https://authtempo.com/docs/reference/errors/#impersonation_session), [`origin_not_trusted`](https://authtempo.com/docs/reference/errors/#origin_not_trusted).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "operator_required",
                        "hook_refused",
                        "impersonation_session",
                        "origin_not_trusted"
                      ]
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "The codes: [`not_found`](https://authtempo.com/docs/reference/errors/#not_found).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "not_found"
                      ]
                    }
                  }
                }
              }
            }
          },
          "409": {
            "description": "The codes: [`operator_self`](https://authtempo.com/docs/reference/errors/#operator_self), [`conflict`](https://authtempo.com/docs/reference/errors/#conflict).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "operator_self",
                        "conflict"
                      ]
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "The codes: [`rate_limited`](https://authtempo.com/docs/reference/errors/#rate_limited).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "rate_limited"
                      ]
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "The codes: [`hook_failed`](https://authtempo.com/docs/reference/errors/#hook_failed), [`internal`](https://authtempo.com/docs/reference/errors/#internal).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "hook_failed",
                        "internal"
                      ]
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "operatorSecret": []
          },
          {
            "sessionCookie": []
          },
          {
            "sessionBearer": []
          }
        ]
      }
    },
    "/operator/sessions/end-all": {
      "post": {
        "tags": [
          "operatorUsers"
        ],
        "summary": "POST /operator/sessions/end-all",
        "operationId": "post-operator-sessions-end-all",
        "externalDocs": {
          "url": "https://authtempo.com/docs/reference/routes/#post-operator-sessions-end-all"
        },
        "x-authtempo-feature": "operatorUsers",
        "x-authtempo-default": "off",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "reason": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 500
                  },
                  "limit": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 1000
                  }
                },
                "required": [
                  "reason"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The answer.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "ended": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991
                    },
                    "more": {
                      "type": "boolean"
                    },
                    "auditId": {
                      "type": "string"
                    },
                    "familyEndFailed": {
                      "type": "boolean",
                      "const": true
                    }
                  },
                  "required": [
                    "ended",
                    "more",
                    "auditId"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "The codes: [`invalid_body`](https://authtempo.com/docs/reference/errors/#invalid_body).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "invalid_body"
                      ]
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The codes: [`unauthorized`](https://authtempo.com/docs/reference/errors/#unauthorized).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "unauthorized"
                      ]
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "The codes: [`operator_required`](https://authtempo.com/docs/reference/errors/#operator_required), [`hook_refused`](https://authtempo.com/docs/reference/errors/#hook_refused), [`impersonation_session`](https://authtempo.com/docs/reference/errors/#impersonation_session), [`origin_not_trusted`](https://authtempo.com/docs/reference/errors/#origin_not_trusted).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "operator_required",
                        "hook_refused",
                        "impersonation_session",
                        "origin_not_trusted"
                      ]
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "The codes: [`not_found`](https://authtempo.com/docs/reference/errors/#not_found).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "not_found"
                      ]
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "The codes: [`rate_limited`](https://authtempo.com/docs/reference/errors/#rate_limited).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "rate_limited"
                      ]
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "The codes: [`hook_failed`](https://authtempo.com/docs/reference/errors/#hook_failed), [`internal`](https://authtempo.com/docs/reference/errors/#internal).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "hook_failed",
                        "internal"
                      ]
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "operatorSecret": []
          },
          {
            "sessionCookie": []
          },
          {
            "sessionBearer": []
          }
        ]
      }
    },
    "/operator/sso/enforce-off": {
      "post": {
        "tags": [
          "operatorSso"
        ],
        "summary": "POST /operator/sso/enforce-off",
        "operationId": "post-operator-sso-enforce-off",
        "externalDocs": {
          "url": "https://authtempo.com/docs/reference/routes/#post-operator-sso-enforce-off"
        },
        "x-authtempo-feature": "operatorSso",
        "x-authtempo-default": "off",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "domainId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64
                  },
                  "reason": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 500
                  }
                },
                "required": [
                  "domainId",
                  "reason"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The answer.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string"
                    },
                    "organizationId": {
                      "type": "string"
                    },
                    "domain": {
                      "type": "string"
                    },
                    "record": {
                      "anyOf": [
                        {
                          "type": "object",
                          "properties": {
                            "name": {
                              "type": "string"
                            },
                            "type": {
                              "type": "string",
                              "const": "TXT"
                            },
                            "value": {
                              "type": "string"
                            }
                          },
                          "required": [
                            "name",
                            "type",
                            "value"
                          ],
                          "additionalProperties": false
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "verified": {
                      "type": "boolean"
                    },
                    "verifiedAt": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "date-time",
                          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "checkedAt": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "date-time",
                          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "connectionId": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "enforce": {
                      "type": "boolean"
                    },
                    "includeSubdomains": {
                      "type": "boolean"
                    },
                    "expiresAt": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "date-time",
                          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "auditId": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "id",
                    "organizationId",
                    "domain",
                    "record",
                    "verified",
                    "verifiedAt",
                    "checkedAt",
                    "connectionId",
                    "enforce",
                    "includeSubdomains",
                    "expiresAt",
                    "auditId"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "The codes: [`invalid_body`](https://authtempo.com/docs/reference/errors/#invalid_body).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "invalid_body"
                      ]
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The codes: [`unauthorized`](https://authtempo.com/docs/reference/errors/#unauthorized).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "unauthorized"
                      ]
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "The codes: [`operator_required`](https://authtempo.com/docs/reference/errors/#operator_required), [`hook_refused`](https://authtempo.com/docs/reference/errors/#hook_refused), [`impersonation_session`](https://authtempo.com/docs/reference/errors/#impersonation_session), [`origin_not_trusted`](https://authtempo.com/docs/reference/errors/#origin_not_trusted).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "operator_required",
                        "hook_refused",
                        "impersonation_session",
                        "origin_not_trusted"
                      ]
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "The codes: [`not_found`](https://authtempo.com/docs/reference/errors/#not_found).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "not_found"
                      ]
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "The codes: [`rate_limited`](https://authtempo.com/docs/reference/errors/#rate_limited).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "rate_limited"
                      ]
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "The codes: [`hook_failed`](https://authtempo.com/docs/reference/errors/#hook_failed), [`internal`](https://authtempo.com/docs/reference/errors/#internal).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "hook_failed",
                        "internal"
                      ]
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "operatorSecret": []
          },
          {
            "sessionCookie": []
          },
          {
            "sessionBearer": []
          }
        ]
      }
    },
    "/operator/audit": {
      "get": {
        "tags": [
          "operatorUsers"
        ],
        "summary": "GET /operator/audit",
        "operationId": "get-operator-audit",
        "externalDocs": {
          "url": "https://authtempo.com/docs/reference/routes/#get-operator-audit"
        },
        "x-authtempo-feature": "operatorUsers",
        "x-authtempo-default": "off",
        "parameters": [
          {
            "name": "targetUserId",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 64
            }
          },
          {
            "name": "organizationId",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 64
            }
          },
          {
            "name": "after",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 64
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "pattern": "^[1-9][0-9]{0,2}$"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The answer.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "rows": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string"
                          },
                          "createdAt": {
                            "type": "string",
                            "format": "date-time",
                            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                          },
                          "updatedAt": {
                            "type": "string",
                            "format": "date-time",
                            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                          },
                          "actorKind": {
                            "type": "string",
                            "enum": [
                              "secret",
                              "user",
                              "app",
                              "scim"
                            ]
                          },
                          "actorId": {
                            "type": "string"
                          },
                          "action": {
                            "type": "string",
                            "enum": [
                              "ban",
                              "unban",
                              "platform_role_grant",
                              "platform_role_revoke",
                              "second_factor_disable",
                              "sessions_end_user",
                              "sessions_end_all",
                              "impersonation_start",
                              "impersonation_stop",
                              "create_admin",
                              "user_create",
                              "user_update",
                              "user_delete",
                              "sso_connection_create",
                              "sso_connection_update",
                              "sso_connection_delete",
                              "sso_domain_add",
                              "sso_domain_verify",
                              "sso_domain_update",
                              "sso_domain_delete",
                              "sso_domain_lost",
                              "sso_enforce_off",
                              "scim_token_create",
                              "scim_token_revoke",
                              "scim_user_create",
                              "scim_user_update",
                              "scim_user_deactivate",
                              "scim_user_delete",
                              "scim_group_create",
                              "scim_group_update",
                              "scim_group_delete",
                              "sso_setup_link_create",
                              "sso_setup_link_open",
                              "sso_setup_link_revoke",
                              "sso_setup_link_activate",
                              "sso_test_run",
                              "sso_setup_link_ready",
                              "organization_member_add",
                              "organization_member_remove",
                              "organization_member_role_change",
                              "organization_invitation_create",
                              "organization_invitation_accept",
                              "organization_invitation_revoke",
                              "organization_token_create",
                              "organization_token_revoke",
                              "organization_role_create",
                              "organization_role_update",
                              "organization_role_delete"
                            ]
                          },
                          "targetUserId": {
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "reason": {
                            "type": "string"
                          },
                          "data": {
                            "anyOf": [
                              {
                                "type": "object",
                                "propertyNames": {
                                  "type": "string"
                                },
                                "additionalProperties": {}
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "ip": {
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "userAgent": {
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "organizationId": {
                            "type": [
                              "string",
                              "null"
                            ]
                          }
                        },
                        "required": [
                          "id",
                          "createdAt",
                          "updatedAt",
                          "actorKind",
                          "actorId",
                          "action",
                          "targetUserId",
                          "reason",
                          "data",
                          "ip",
                          "userAgent",
                          "organizationId"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "next": {
                      "type": [
                        "string",
                        "null"
                      ]
                    }
                  },
                  "required": [
                    "rows",
                    "next"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "The codes: [`invalid_body`](https://authtempo.com/docs/reference/errors/#invalid_body).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "invalid_body"
                      ]
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The codes: [`unauthorized`](https://authtempo.com/docs/reference/errors/#unauthorized).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "unauthorized"
                      ]
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "The codes: [`operator_required`](https://authtempo.com/docs/reference/errors/#operator_required), [`impersonation_session`](https://authtempo.com/docs/reference/errors/#impersonation_session).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "operator_required",
                        "impersonation_session"
                      ]
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "The codes: [`not_found`](https://authtempo.com/docs/reference/errors/#not_found).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "not_found"
                      ]
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "The codes: [`rate_limited`](https://authtempo.com/docs/reference/errors/#rate_limited).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "rate_limited"
                      ]
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "The codes: [`internal`](https://authtempo.com/docs/reference/errors/#internal).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "internal"
                      ]
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "operatorSecret": []
          },
          {
            "sessionCookie": []
          },
          {
            "sessionBearer": []
          }
        ]
      }
    },
    "/user/invite/confirm": {
      "get": {
        "tags": [
          "operatorUsers"
        ],
        "summary": "GET /user/invite/confirm",
        "operationId": "get-user-invite-confirm",
        "externalDocs": {
          "url": "https://authtempo.com/docs/reference/routes/#get-user-invite-confirm"
        },
        "x-authtempo-feature": "operatorUsers",
        "x-authtempo-default": "off",
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^ui_[A-Za-z0-9_-]{43}$"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "A page of core.",
            "content": {
              "text/html": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "302": {
            "description": "A redirect. A failure carries its code in the `auth_error` query parameter of the location.",
            "headers": {
              "Location": {
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "description": "The codes: [`invalid_token`](https://authtempo.com/docs/reference/errors/#invalid_token). A browser flow can get the code in the `auth_error` query parameter of a 302 in place of this answer.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "invalid_token"
                      ]
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "The codes: [`not_found`](https://authtempo.com/docs/reference/errors/#not_found).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "not_found"
                      ]
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "The codes: [`internal`](https://authtempo.com/docs/reference/errors/#internal).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "internal"
                      ]
                    }
                  }
                }
              }
            }
          }
        },
        "security": []
      },
      "post": {
        "tags": [
          "operatorUsers"
        ],
        "summary": "POST /user/invite/confirm",
        "operationId": "post-user-invite-confirm",
        "externalDocs": {
          "url": "https://authtempo.com/docs/reference/routes/#post-user-invite-confirm"
        },
        "x-authtempo-feature": "operatorUsers",
        "x-authtempo-default": "off",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "token": {
                    "type": "string",
                    "maxLength": 64
                  },
                  "trustDevice": {
                    "type": "string",
                    "maxLength": 64
                  }
                },
                "required": [
                  "token"
                ]
              }
            },
            "application/x-www-form-urlencoded": {
              "schema": {
                "type": "object",
                "properties": {
                  "token": {
                    "type": "string",
                    "maxLength": 64
                  },
                  "trustDevice": {
                    "type": "string",
                    "maxLength": 64
                  }
                },
                "required": [
                  "token"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The answer.",
            "content": {
              "application/json": {
                "schema": {
                  "anyOf": [
                    {
                      "$ref": "#/components/schemas/SessionSignInAnswer"
                    },
                    {
                      "$ref": "#/components/schemas/TwoFactorChallenge"
                    }
                  ]
                }
              }
            }
          },
          "302": {
            "description": "A redirect. A failure carries its code in the `auth_error` query parameter of the location.",
            "headers": {
              "Location": {
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "description": "The codes: [`invalid_token`](https://authtempo.com/docs/reference/errors/#invalid_token). A browser flow can get the code in the `auth_error` query parameter of a 302 in place of this answer.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "invalid_token"
                      ]
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "The codes: [`hook_refused`](https://authtempo.com/docs/reference/errors/#hook_refused), [`account_banned`](https://authtempo.com/docs/reference/errors/#account_banned), [`sso_required`](https://authtempo.com/docs/reference/errors/#sso_required), [`origin_not_trusted`](https://authtempo.com/docs/reference/errors/#origin_not_trusted). A browser flow can get the code in the `auth_error` query parameter of a 302 in place of this answer.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "hook_refused",
                        "account_banned",
                        "sso_required",
                        "origin_not_trusted"
                      ]
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "The codes: [`not_found`](https://authtempo.com/docs/reference/errors/#not_found).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "not_found"
                      ]
                    }
                  }
                }
              }
            }
          },
          "409": {
            "description": "The codes: [`conflict`](https://authtempo.com/docs/reference/errors/#conflict). A browser flow can get the code in the `auth_error` query parameter of a 302 in place of this answer.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "conflict"
                      ]
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "The codes: [`rate_limited`](https://authtempo.com/docs/reference/errors/#rate_limited). A browser flow can get the code in the `auth_error` query parameter of a 302 in place of this answer.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "rate_limited"
                      ]
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "The codes: [`hook_failed`](https://authtempo.com/docs/reference/errors/#hook_failed), [`internal`](https://authtempo.com/docs/reference/errors/#internal). A browser flow can get the code in the `auth_error` query parameter of a 302 in place of this answer.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "hook_failed",
                        "internal"
                      ]
                    }
                  }
                }
              }
            }
          }
        },
        "security": []
      }
    },
    "/oauth/register": {
      "post": {
        "tags": [
          "oauthRegistration"
        ],
        "summary": "POST /oauth/register",
        "operationId": "post-oauth-register",
        "externalDocs": {
          "url": "https://authtempo.com/docs/reference/routes/#post-oauth-register"
        },
        "x-authtempo-feature": "oauthRegistration",
        "x-authtempo-default": "off",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "redirect_uris": {
                    "minItems": 1,
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  },
                  "client_name": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 80
                  },
                  "token_endpoint_auth_method": {
                    "type": "string",
                    "enum": [
                      "none",
                      "client_secret_basic",
                      "client_secret_post",
                      "private_key_jwt"
                    ]
                  },
                  "grant_types": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "enum": [
                        "authorization_code",
                        "refresh_token",
                        "urn:ietf:params:oauth:grant-type:device_code"
                      ]
                    }
                  },
                  "response_types": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "const": "code"
                    }
                  },
                  "jwks": {
                    "type": "object",
                    "properties": {
                      "keys": {
                        "minItems": 1,
                        "maxItems": 10,
                        "type": "array",
                        "items": {
                          "type": "object",
                          "propertyNames": {
                            "type": "string"
                          },
                          "additionalProperties": {}
                        }
                      }
                    },
                    "required": [
                      "keys"
                    ],
                    "additionalProperties": false
                  },
                  "jwks_uri": {
                    "type": "string"
                  },
                  "post_logout_redirect_uris": {
                    "maxItems": 10,
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  },
                  "backchannel_logout_uri": {
                    "type": "string"
                  },
                  "backchannel_logout_session_required": {
                    "type": "boolean"
                  },
                  "subject_type": {
                    "type": "string",
                    "enum": [
                      "public",
                      "pairwise"
                    ]
                  },
                  "id_token_signed_response_alg": {
                    "type": "string"
                  },
                  "dpop_bound_access_tokens": {
                    "type": "boolean"
                  }
                },
                "required": [
                  "redirect_uris"
                ]
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "The answer.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "client_id": {
                      "type": "string"
                    },
                    "client_id_issued_at": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991
                    },
                    "client_name": {
                      "type": "string"
                    },
                    "redirect_uris": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    "token_endpoint_auth_method": {
                      "type": "string",
                      "enum": [
                        "none",
                        "client_secret_basic",
                        "client_secret_post",
                        "private_key_jwt"
                      ]
                    },
                    "grant_types": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    "response_types": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    "jwks": {
                      "type": "object",
                      "properties": {
                        "keys": {
                          "minItems": 1,
                          "maxItems": 10,
                          "type": "array",
                          "items": {
                            "type": "object",
                            "propertyNames": {
                              "type": "string"
                            },
                            "additionalProperties": {}
                          }
                        }
                      },
                      "required": [
                        "keys"
                      ],
                      "additionalProperties": false
                    },
                    "jwks_uri": {
                      "type": "string"
                    },
                    "post_logout_redirect_uris": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    "backchannel_logout_uri": {
                      "type": "string"
                    },
                    "backchannel_logout_session_required": {
                      "type": "boolean"
                    },
                    "subject_type": {
                      "type": "string",
                      "enum": [
                        "public",
                        "pairwise"
                      ]
                    },
                    "id_token_signed_response_alg": {
                      "type": "string"
                    },
                    "dpop_bound_access_tokens": {
                      "type": "boolean"
                    },
                    "client_secret": {
                      "type": "string"
                    },
                    "client_secret_expires_at": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991
                    }
                  },
                  "required": [
                    "client_id",
                    "client_id_issued_at",
                    "redirect_uris",
                    "token_endpoint_auth_method",
                    "grant_types",
                    "response_types",
                    "subject_type",
                    "id_token_signed_response_alg",
                    "dpop_bound_access_tokens"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "The codes: [`invalid_client_metadata`](https://authtempo.com/docs/reference/errors/#oauth-invalid_client_metadata), [`invalid_redirect_uri`](https://authtempo.com/docs/reference/errors/#oauth-invalid_redirect_uri).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OAuthError",
                  "properties": {
                    "error": {
                      "enum": [
                        "invalid_client_metadata",
                        "invalid_redirect_uri"
                      ]
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The codes: [`invalid_token`](https://authtempo.com/docs/reference/errors/#oauth-invalid_token).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OAuthError",
                  "properties": {
                    "error": {
                      "enum": [
                        "invalid_token"
                      ]
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "The codes: [`origin_not_trusted`](https://authtempo.com/docs/reference/errors/#origin_not_trusted).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "origin_not_trusted"
                      ]
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "The codes: [`not_found`](https://authtempo.com/docs/reference/errors/#not_found).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "not_found"
                      ]
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "The codes: [`rate_limited`](https://authtempo.com/docs/reference/errors/#oauth-rate_limited).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OAuthError",
                  "properties": {
                    "error": {
                      "enum": [
                        "rate_limited"
                      ]
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "The codes: [`internal`](https://authtempo.com/docs/reference/errors/#internal).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "internal"
                      ]
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {},
          {
            "initialAccessToken": []
          }
        ]
      }
    },
    "/oauth/authorize": {
      "get": {
        "tags": [
          "oauth"
        ],
        "summary": "GET /oauth/authorize",
        "description": "The query has two forms. The first form is the authorization request, with each key whose description says it is required unless `request_id` comes alone. With no session, the route holds the request and redirects to the sign-in step, `GET /oauth/sign-in`. With `prompt=none` and no session, it redirects to the client with `error=login_required`. After the sign-in, the browser comes back with the second form: `request_id` alone, which names the held request. With a session, the route answers the consent page, or redirects to the client with the code or the `error`.",
        "operationId": "get-oauth-authorize",
        "externalDocs": {
          "url": "https://authtempo.com/docs/reference/routes/#get-oauth-authorize"
        },
        "x-authtempo-feature": "oauth",
        "x-authtempo-default": "off",
        "parameters": [
          {
            "name": "response_type",
            "in": "query",
            "description": "Required unless `request_id` comes alone.",
            "required": false,
            "schema": {
              "type": "string",
              "const": "code"
            }
          },
          {
            "name": "client_id",
            "in": "query",
            "description": "Required unless `request_id` comes alone.",
            "required": false,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 2048
            }
          },
          {
            "name": "redirect_uri",
            "in": "query",
            "description": "Required unless `request_id` comes alone.",
            "required": false,
            "schema": {
              "type": "string",
              "minLength": 1
            }
          },
          {
            "name": "code_challenge",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "pattern": "^[A-Za-z0-9._~-]{43,128}$"
            }
          },
          {
            "name": "code_challenge_method",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "const": "S256"
            }
          },
          {
            "name": "scope",
            "in": "query",
            "description": "Required unless `request_id` comes alone.",
            "required": false,
            "schema": {
              "type": "string",
              "minLength": 1
            }
          },
          {
            "name": "resource",
            "in": "query",
            "description": "Required unless `request_id` comes alone, or `oauth.defaultResource` is set.",
            "required": false,
            "schema": {
              "type": "string",
              "minLength": 1
            }
          },
          {
            "name": "state",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 512
            }
          },
          {
            "name": "nonce",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 512
            }
          },
          {
            "name": "prompt",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "dpop_jkt",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "pattern": "^(?:[A-Za-z0-9_-]{43})?$"
            }
          },
          {
            "name": "max_age",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "pattern": "^(?:[0-9]{1,10})?$"
            }
          },
          {
            "name": "display",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "ui_locales",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "claims_locales",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "login_hint",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "acr_values",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "id_token_hint",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "claims",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "request",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "request_uri",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "registration",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "request_id",
            "in": "query",
            "description": "The second form of the query: `request_id` comes alone, with no other key.",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "A page of core.",
            "content": {
              "text/html": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "302": {
            "description": "A redirect. A failure carries its code in the `error` query parameter of the location.",
            "headers": {
              "Location": {
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "description": "The codes: [`invalid_request`](https://authtempo.com/docs/reference/errors/#oauth-invalid_request), [`unsupported_response_type`](https://authtempo.com/docs/reference/errors/#oauth-unsupported_response_type), [`unauthorized_client`](https://authtempo.com/docs/reference/errors/#oauth-unauthorized_client), [`invalid_target`](https://authtempo.com/docs/reference/errors/#oauth-invalid_target), [`invalid_scope`](https://authtempo.com/docs/reference/errors/#oauth-invalid_scope), [`access_denied`](https://authtempo.com/docs/reference/errors/#oauth-access_denied), [`consent_required`](https://authtempo.com/docs/reference/errors/#oauth-consent_required), [`login_required`](https://authtempo.com/docs/reference/errors/#oauth-login_required), [`request_not_supported`](https://authtempo.com/docs/reference/errors/#oauth-request_not_supported), [`request_uri_not_supported`](https://authtempo.com/docs/reference/errors/#oauth-request_uri_not_supported), [`registration_not_supported`](https://authtempo.com/docs/reference/errors/#oauth-registration_not_supported). A browser flow can get the code in the `error` query parameter of a 302 in place of this answer.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OAuthError",
                  "properties": {
                    "error": {
                      "enum": [
                        "invalid_request",
                        "unsupported_response_type",
                        "unauthorized_client",
                        "invalid_target",
                        "invalid_scope",
                        "access_denied",
                        "consent_required",
                        "login_required",
                        "request_not_supported",
                        "request_uri_not_supported",
                        "registration_not_supported"
                      ]
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The codes: [`invalid_client`](https://authtempo.com/docs/reference/errors/#oauth-invalid_client). A browser flow can get the code in the `error` query parameter of a 302 in place of this answer.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OAuthError",
                  "properties": {
                    "error": {
                      "enum": [
                        "invalid_client"
                      ]
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "The codes: [`impersonation_session`](https://authtempo.com/docs/reference/errors/#impersonation_session). A browser flow can get the code in the `error` query parameter of a 302 in place of this answer.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "impersonation_session"
                      ]
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "The codes: [`not_found`](https://authtempo.com/docs/reference/errors/#not_found).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "not_found"
                      ]
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "The codes: [`rate_limited`](https://authtempo.com/docs/reference/errors/#oauth-rate_limited). A browser flow can get the code in the `error` query parameter of a 302 in place of this answer.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OAuthError",
                  "properties": {
                    "error": {
                      "enum": [
                        "rate_limited"
                      ]
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "The codes: [`internal`](https://authtempo.com/docs/reference/errors/#internal).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "internal"
                      ]
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {},
          {
            "sessionCookie": []
          },
          {
            "sessionBearer": []
          }
        ]
      },
      "post": {
        "tags": [
          "oauth"
        ],
        "summary": "POST /oauth/authorize",
        "description": "The consent form. `request_id` names the request that core holds; it works once. A `decision` other than `allow` is a deny.",
        "operationId": "post-oauth-authorize",
        "externalDocs": {
          "url": "https://authtempo.com/docs/reference/routes/#post-oauth-authorize"
        },
        "x-authtempo-feature": "oauth",
        "x-authtempo-default": "off",
        "requestBody": {
          "required": true,
          "content": {
            "application/x-www-form-urlencoded": {
              "schema": {
                "type": "object",
                "properties": {
                  "request_id": {
                    "type": "string"
                  },
                  "decision": {
                    "type": "string",
                    "enum": [
                      "allow",
                      "deny"
                    ]
                  }
                },
                "required": [
                  "request_id",
                  "decision"
                ]
              }
            }
          }
        },
        "responses": {
          "302": {
            "description": "A redirect. A failure carries its code in the `error` query parameter of the location.",
            "headers": {
              "Location": {
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "description": "The codes: [`invalid_request`](https://authtempo.com/docs/reference/errors/#oauth-invalid_request), [`unsupported_response_type`](https://authtempo.com/docs/reference/errors/#oauth-unsupported_response_type), [`unauthorized_client`](https://authtempo.com/docs/reference/errors/#oauth-unauthorized_client), [`invalid_target`](https://authtempo.com/docs/reference/errors/#oauth-invalid_target), [`invalid_scope`](https://authtempo.com/docs/reference/errors/#oauth-invalid_scope), [`access_denied`](https://authtempo.com/docs/reference/errors/#oauth-access_denied). A browser flow can get the code in the `error` query parameter of a 302 in place of this answer.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OAuthError",
                  "properties": {
                    "error": {
                      "enum": [
                        "invalid_request",
                        "unsupported_response_type",
                        "unauthorized_client",
                        "invalid_target",
                        "invalid_scope",
                        "access_denied"
                      ]
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The codes: [`unauthorized`](https://authtempo.com/docs/reference/errors/#unauthorized), [`invalid_client`](https://authtempo.com/docs/reference/errors/#oauth-invalid_client). A browser flow can get the code in the `error` query parameter of a 302 in place of this answer.",
            "content": {
              "application/json": {
                "schema": {
                  "anyOf": [
                    {
                      "$ref": "#/components/schemas/Error"
                    },
                    {
                      "$ref": "#/components/schemas/OAuthError"
                    }
                  ],
                  "properties": {
                    "error": {
                      "enum": [
                        "unauthorized",
                        "invalid_client"
                      ]
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "The codes: [`impersonation_session`](https://authtempo.com/docs/reference/errors/#impersonation_session), [`anonymous_refused`](https://authtempo.com/docs/reference/errors/#anonymous_refused), [`origin_not_trusted`](https://authtempo.com/docs/reference/errors/#origin_not_trusted). A browser flow can get the code in the `error` query parameter of a 302 in place of this answer.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "impersonation_session",
                        "anonymous_refused",
                        "origin_not_trusted"
                      ]
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "The codes: [`not_found`](https://authtempo.com/docs/reference/errors/#not_found).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "not_found"
                      ]
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "The codes: [`rate_limited`](https://authtempo.com/docs/reference/errors/#oauth-rate_limited). A browser flow can get the code in the `error` query parameter of a 302 in place of this answer.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OAuthError",
                  "properties": {
                    "error": {
                      "enum": [
                        "rate_limited"
                      ]
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "The codes: [`internal`](https://authtempo.com/docs/reference/errors/#internal).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "internal"
                      ]
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "sessionCookie": []
          },
          {
            "sessionBearer": []
          }
        ]
      }
    },
    "/oauth/sign-in": {
      "get": {
        "tags": [
          "oauth"
        ],
        "summary": "GET /oauth/sign-in",
        "operationId": "get-oauth-sign-in",
        "externalDocs": {
          "url": "https://authtempo.com/docs/reference/routes/#get-oauth-sign-in"
        },
        "x-authtempo-feature": "oauth",
        "x-authtempo-default": "off",
        "parameters": [
          {
            "name": "next",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1
            }
          }
        ],
        "responses": {
          "200": {
            "description": "A page of core.",
            "content": {
              "text/html": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "302": {
            "description": "A redirect. A failure carries its code in the `auth_error` query parameter of the location.",
            "headers": {
              "Location": {
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "description": "The codes: [`invalid_request`](https://authtempo.com/docs/reference/errors/#oauth-invalid_request). A browser flow can get the code in the `auth_error` query parameter of a 302 in place of this answer.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OAuthError",
                  "properties": {
                    "error": {
                      "enum": [
                        "invalid_request"
                      ]
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "The codes: [`impersonation_session`](https://authtempo.com/docs/reference/errors/#impersonation_session). A browser flow can get the code in the `auth_error` query parameter of a 302 in place of this answer.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "impersonation_session"
                      ]
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "The codes: [`not_found`](https://authtempo.com/docs/reference/errors/#not_found).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "not_found"
                      ]
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "The codes: [`internal`](https://authtempo.com/docs/reference/errors/#internal).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "internal"
                      ]
                    }
                  }
                }
              }
            }
          }
        },
        "security": []
      }
    },
    "/oauth/token": {
      "post": {
        "tags": [
          "oauth"
        ],
        "summary": "POST /oauth/token",
        "description": "The token endpoint. A public client sends `client_id` and no credential: the code grant proves the client with PKCE (S256), through `code_verifier`. A confidential client sends its secret, as HTTP Basic (`client_secret_basic`) or as `client_secret` in the form (`client_secret_post`). One request has one method. A client with a secret may use either secret method; a public client sends no secret. A confidential client may omit PKCE only when it asks `openid` with a `nonce`. A POST from a foreign origin reaches the route. The route admits it when the origin is the origin of a redirect URI of the public client that the form names. The answer then carries `access-control-allow-origin` with no credentials. Its preflight names the client in `?client_id=`.",
        "operationId": "post-oauth-token",
        "externalDocs": {
          "url": "https://authtempo.com/docs/reference/routes/#post-oauth-token"
        },
        "x-authtempo-feature": "oauth",
        "x-authtempo-default": "off",
        "requestBody": {
          "required": true,
          "content": {
            "application/x-www-form-urlencoded": {
              "schema": {
                "type": "object",
                "properties": {
                  "grant_type": {
                    "type": "string",
                    "enum": [
                      "authorization_code",
                      "refresh_token",
                      "client_credentials",
                      "urn:ietf:params:oauth:grant-type:device_code"
                    ]
                  },
                  "client_id": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 2048
                  },
                  "client_secret": {
                    "type": "string"
                  },
                  "client_assertion_type": {
                    "type": "string"
                  },
                  "client_assertion": {
                    "type": "string"
                  },
                  "code": {
                    "type": "string"
                  },
                  "code_verifier": {
                    "type": "string"
                  },
                  "redirect_uri": {
                    "type": "string"
                  },
                  "resource": {
                    "type": "string"
                  },
                  "refresh_token": {
                    "type": "string"
                  },
                  "scope": {
                    "type": "string"
                  },
                  "device_code": {
                    "type": "string"
                  }
                },
                "required": [
                  "grant_type"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The answer.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "access_token": {
                      "type": "string"
                    },
                    "token_type": {
                      "type": "string",
                      "enum": [
                        "Bearer",
                        "DPoP"
                      ]
                    },
                    "expires_in": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991
                    },
                    "scope": {
                      "type": "string"
                    },
                    "refresh_token": {
                      "type": "string"
                    },
                    "id_token": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "access_token",
                    "token_type",
                    "expires_in",
                    "scope"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "The codes: [`invalid_request`](https://authtempo.com/docs/reference/errors/#oauth-invalid_request), [`unsupported_grant_type`](https://authtempo.com/docs/reference/errors/#oauth-unsupported_grant_type), [`invalid_grant`](https://authtempo.com/docs/reference/errors/#oauth-invalid_grant), [`invalid_target`](https://authtempo.com/docs/reference/errors/#oauth-invalid_target), [`invalid_scope`](https://authtempo.com/docs/reference/errors/#oauth-invalid_scope), [`unauthorized_client`](https://authtempo.com/docs/reference/errors/#oauth-unauthorized_client), [`invalid_dpop_proof`](https://authtempo.com/docs/reference/errors/#oauth-invalid_dpop_proof), [`authorization_pending`](https://authtempo.com/docs/reference/errors/#oauth-authorization_pending), [`slow_down`](https://authtempo.com/docs/reference/errors/#oauth-slow_down), [`access_denied`](https://authtempo.com/docs/reference/errors/#oauth-access_denied), [`expired_token`](https://authtempo.com/docs/reference/errors/#oauth-expired_token), [`invalid_client`](https://authtempo.com/docs/reference/errors/#oauth-invalid_client).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OAuthError",
                  "properties": {
                    "error": {
                      "enum": [
                        "invalid_request",
                        "unsupported_grant_type",
                        "invalid_grant",
                        "invalid_target",
                        "invalid_scope",
                        "unauthorized_client",
                        "invalid_dpop_proof",
                        "authorization_pending",
                        "slow_down",
                        "access_denied",
                        "expired_token",
                        "invalid_client"
                      ]
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The codes: [`invalid_client`](https://authtempo.com/docs/reference/errors/#oauth-invalid_client).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OAuthError",
                  "properties": {
                    "error": {
                      "enum": [
                        "invalid_client"
                      ]
                    }
                  }
                }
              }
            },
            "headers": {
              "WWW-Authenticate": {
                "required": true,
                "description": "The Basic challenge of RFC 6749 section 5.2, with the issuer as the realm. A request with no `Authorization` header gets `invalid_client` as a 400 with no challenge.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "The codes: [`origin_not_trusted`](https://authtempo.com/docs/reference/errors/#origin_not_trusted).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "origin_not_trusted"
                      ]
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "The codes: [`not_found`](https://authtempo.com/docs/reference/errors/#not_found).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "not_found"
                      ]
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "The codes: [`rate_limited`](https://authtempo.com/docs/reference/errors/#oauth-rate_limited).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OAuthError",
                  "properties": {
                    "error": {
                      "enum": [
                        "rate_limited"
                      ]
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "The codes: [`internal`](https://authtempo.com/docs/reference/errors/#internal).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "internal"
                      ]
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {},
          {
            "clientSecretBasic": []
          }
        ]
      }
    },
    "/oauth/revoke": {
      "post": {
        "tags": [
          "oauth"
        ],
        "summary": "POST /oauth/revoke",
        "operationId": "post-oauth-revoke",
        "externalDocs": {
          "url": "https://authtempo.com/docs/reference/routes/#post-oauth-revoke"
        },
        "x-authtempo-feature": "oauth",
        "x-authtempo-default": "off",
        "requestBody": {
          "required": true,
          "content": {
            "application/x-www-form-urlencoded": {
              "schema": {
                "type": "object",
                "properties": {
                  "token": {
                    "type": "string"
                  },
                  "client_id": {
                    "type": "string"
                  },
                  "client_secret": {
                    "type": "string"
                  },
                  "client_assertion_type": {
                    "type": "string"
                  },
                  "client_assertion": {
                    "type": "string"
                  }
                },
                "required": [
                  "token"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The answer.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {},
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "The codes: [`invalid_request`](https://authtempo.com/docs/reference/errors/#oauth-invalid_request), [`unauthorized_client`](https://authtempo.com/docs/reference/errors/#oauth-unauthorized_client), [`invalid_client`](https://authtempo.com/docs/reference/errors/#oauth-invalid_client).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OAuthError",
                  "properties": {
                    "error": {
                      "enum": [
                        "invalid_request",
                        "unauthorized_client",
                        "invalid_client"
                      ]
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The codes: [`invalid_client`](https://authtempo.com/docs/reference/errors/#oauth-invalid_client).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OAuthError",
                  "properties": {
                    "error": {
                      "enum": [
                        "invalid_client"
                      ]
                    }
                  }
                }
              }
            },
            "headers": {
              "WWW-Authenticate": {
                "required": true,
                "description": "The Basic challenge of RFC 6749 section 5.2, with the issuer as the realm. A request with no `Authorization` header gets `invalid_client` as a 400 with no challenge.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "The codes: [`origin_not_trusted`](https://authtempo.com/docs/reference/errors/#origin_not_trusted).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "origin_not_trusted"
                      ]
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "The codes: [`not_found`](https://authtempo.com/docs/reference/errors/#not_found).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "not_found"
                      ]
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "The codes: [`rate_limited`](https://authtempo.com/docs/reference/errors/#oauth-rate_limited).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OAuthError",
                  "properties": {
                    "error": {
                      "enum": [
                        "rate_limited"
                      ]
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "The codes: [`internal`](https://authtempo.com/docs/reference/errors/#internal).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "internal"
                      ]
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {},
          {
            "clientSecretBasic": []
          }
        ]
      }
    },
    "/oauth/introspect": {
      "post": {
        "tags": [
          "oauth"
        ],
        "summary": "POST /oauth/introspect",
        "operationId": "post-oauth-introspect",
        "externalDocs": {
          "url": "https://authtempo.com/docs/reference/routes/#post-oauth-introspect"
        },
        "x-authtempo-feature": "oauth",
        "x-authtempo-default": "off",
        "requestBody": {
          "required": true,
          "content": {
            "application/x-www-form-urlencoded": {
              "schema": {
                "type": "object",
                "properties": {
                  "token": {
                    "type": "string"
                  },
                  "token_type_hint": {
                    "type": "string"
                  },
                  "client_id": {
                    "type": "string"
                  },
                  "client_secret": {
                    "type": "string"
                  },
                  "client_assertion_type": {
                    "type": "string"
                  },
                  "client_assertion": {
                    "type": "string"
                  }
                },
                "required": [
                  "token"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The answer.",
            "content": {
              "application/json": {
                "schema": {
                  "anyOf": [
                    {
                      "type": "object",
                      "properties": {
                        "active": {
                          "type": "boolean",
                          "const": false
                        }
                      },
                      "required": [
                        "active"
                      ],
                      "additionalProperties": false
                    },
                    {
                      "type": "object",
                      "properties": {
                        "active": {
                          "type": "boolean",
                          "const": true
                        },
                        "scope": {
                          "type": "string"
                        },
                        "client_id": {
                          "type": "string"
                        },
                        "sub": {
                          "type": "string"
                        },
                        "aud": {
                          "type": "string"
                        },
                        "iss": {
                          "type": "string"
                        },
                        "exp": {
                          "type": "integer",
                          "minimum": -9007199254740991,
                          "maximum": 9007199254740991
                        },
                        "iat": {
                          "type": "integer",
                          "minimum": -9007199254740991,
                          "maximum": 9007199254740991
                        },
                        "jti": {
                          "type": "string"
                        },
                        "token_type": {
                          "type": "string",
                          "enum": [
                            "Bearer",
                            "DPoP"
                          ]
                        },
                        "cnf": {
                          "type": "object",
                          "properties": {
                            "jkt": {
                              "type": "string"
                            }
                          },
                          "required": [
                            "jkt"
                          ],
                          "additionalProperties": false
                        }
                      },
                      "required": [
                        "active",
                        "scope",
                        "client_id",
                        "sub",
                        "aud",
                        "iss",
                        "exp",
                        "iat",
                        "jti",
                        "token_type"
                      ],
                      "additionalProperties": false
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "description": "The codes: [`invalid_request`](https://authtempo.com/docs/reference/errors/#oauth-invalid_request), [`invalid_client`](https://authtempo.com/docs/reference/errors/#oauth-invalid_client).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OAuthError",
                  "properties": {
                    "error": {
                      "enum": [
                        "invalid_request",
                        "invalid_client"
                      ]
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The codes: [`invalid_client`](https://authtempo.com/docs/reference/errors/#oauth-invalid_client).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OAuthError",
                  "properties": {
                    "error": {
                      "enum": [
                        "invalid_client"
                      ]
                    }
                  }
                }
              }
            },
            "headers": {
              "WWW-Authenticate": {
                "required": true,
                "description": "The Basic challenge of RFC 6749 section 5.2, with the issuer as the realm. A request with no `Authorization` header gets `invalid_client` as a 400 with no challenge.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "The codes: [`origin_not_trusted`](https://authtempo.com/docs/reference/errors/#origin_not_trusted).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "origin_not_trusted"
                      ]
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "The codes: [`not_found`](https://authtempo.com/docs/reference/errors/#not_found).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "not_found"
                      ]
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "The codes: [`rate_limited`](https://authtempo.com/docs/reference/errors/#oauth-rate_limited).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OAuthError",
                  "properties": {
                    "error": {
                      "enum": [
                        "rate_limited"
                      ]
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "The codes: [`internal`](https://authtempo.com/docs/reference/errors/#internal).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "internal"
                      ]
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {},
          {
            "clientSecretBasic": []
          }
        ]
      }
    },
    "/oauth/device_authorization": {
      "post": {
        "tags": [
          "oauthDevice"
        ],
        "summary": "POST /oauth/device_authorization",
        "operationId": "post-oauth-device-authorization",
        "externalDocs": {
          "url": "https://authtempo.com/docs/reference/routes/#post-oauth-device-authorization"
        },
        "x-authtempo-feature": "oauthDevice",
        "x-authtempo-default": "off",
        "requestBody": {
          "required": true,
          "content": {
            "application/x-www-form-urlencoded": {
              "schema": {
                "type": "object",
                "properties": {
                  "client_id": {
                    "type": "string"
                  },
                  "client_secret": {
                    "type": "string"
                  },
                  "client_assertion_type": {
                    "type": "string"
                  },
                  "client_assertion": {
                    "type": "string"
                  },
                  "scope": {
                    "type": "string"
                  },
                  "resource": {
                    "type": "string"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The answer.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "device_code": {
                      "type": "string"
                    },
                    "user_code": {
                      "type": "string"
                    },
                    "verification_uri": {
                      "type": "string"
                    },
                    "verification_uri_complete": {
                      "type": "string"
                    },
                    "expires_in": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991
                    },
                    "interval": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991
                    }
                  },
                  "required": [
                    "device_code",
                    "user_code",
                    "verification_uri",
                    "verification_uri_complete",
                    "expires_in",
                    "interval"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "The codes: [`invalid_request`](https://authtempo.com/docs/reference/errors/#oauth-invalid_request), [`unauthorized_client`](https://authtempo.com/docs/reference/errors/#oauth-unauthorized_client), [`invalid_target`](https://authtempo.com/docs/reference/errors/#oauth-invalid_target), [`invalid_scope`](https://authtempo.com/docs/reference/errors/#oauth-invalid_scope), [`invalid_dpop_proof`](https://authtempo.com/docs/reference/errors/#oauth-invalid_dpop_proof), [`invalid_client`](https://authtempo.com/docs/reference/errors/#oauth-invalid_client).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OAuthError",
                  "properties": {
                    "error": {
                      "enum": [
                        "invalid_request",
                        "unauthorized_client",
                        "invalid_target",
                        "invalid_scope",
                        "invalid_dpop_proof",
                        "invalid_client"
                      ]
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The codes: [`invalid_client`](https://authtempo.com/docs/reference/errors/#oauth-invalid_client).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OAuthError",
                  "properties": {
                    "error": {
                      "enum": [
                        "invalid_client"
                      ]
                    }
                  }
                }
              }
            },
            "headers": {
              "WWW-Authenticate": {
                "required": true,
                "description": "The Basic challenge of RFC 6749 section 5.2, with the issuer as the realm. A request with no `Authorization` header gets `invalid_client` as a 400 with no challenge.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "The codes: [`origin_not_trusted`](https://authtempo.com/docs/reference/errors/#origin_not_trusted).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "origin_not_trusted"
                      ]
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "The codes: [`not_found`](https://authtempo.com/docs/reference/errors/#not_found).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "not_found"
                      ]
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "The codes: [`rate_limited`](https://authtempo.com/docs/reference/errors/#oauth-rate_limited).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OAuthError",
                  "properties": {
                    "error": {
                      "enum": [
                        "rate_limited"
                      ]
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "The codes: [`internal`](https://authtempo.com/docs/reference/errors/#internal).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "internal"
                      ]
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {},
          {
            "clientSecretBasic": []
          }
        ]
      }
    },
    "/oauth/device": {
      "get": {
        "tags": [
          "oauthDevice"
        ],
        "summary": "GET /oauth/device",
        "operationId": "get-oauth-device",
        "externalDocs": {
          "url": "https://authtempo.com/docs/reference/routes/#get-oauth-device"
        },
        "x-authtempo-feature": "oauthDevice",
        "x-authtempo-default": "off",
        "parameters": [
          {
            "name": "user_code",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "A page of core.",
            "content": {
              "text/html": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "302": {
            "description": "A redirect.",
            "headers": {
              "Location": {
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "The codes: [`impersonation_session`](https://authtempo.com/docs/reference/errors/#impersonation_session).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "impersonation_session"
                      ]
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "The codes: [`not_found`](https://authtempo.com/docs/reference/errors/#not_found).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "not_found"
                      ]
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "The codes: [`rate_limited`](https://authtempo.com/docs/reference/errors/#oauth-rate_limited).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OAuthError",
                  "properties": {
                    "error": {
                      "enum": [
                        "rate_limited"
                      ]
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "The codes: [`internal`](https://authtempo.com/docs/reference/errors/#internal).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "internal"
                      ]
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {},
          {
            "sessionCookie": []
          },
          {
            "sessionBearer": []
          }
        ]
      },
      "post": {
        "tags": [
          "oauthDevice"
        ],
        "summary": "POST /oauth/device",
        "operationId": "post-oauth-device",
        "externalDocs": {
          "url": "https://authtempo.com/docs/reference/routes/#post-oauth-device"
        },
        "x-authtempo-feature": "oauthDevice",
        "x-authtempo-default": "off",
        "requestBody": {
          "required": true,
          "content": {
            "application/x-www-form-urlencoded": {
              "schema": {
                "type": "object",
                "properties": {
                  "user_code": {
                    "type": "string"
                  },
                  "decision": {
                    "type": "string",
                    "enum": [
                      "allow",
                      "deny"
                    ]
                  }
                },
                "required": [
                  "user_code"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "A page of core.",
            "content": {
              "text/html": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "description": "The codes: [`invalid_request`](https://authtempo.com/docs/reference/errors/#oauth-invalid_request).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OAuthError",
                  "properties": {
                    "error": {
                      "enum": [
                        "invalid_request"
                      ]
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The codes: [`unauthorized`](https://authtempo.com/docs/reference/errors/#unauthorized).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "unauthorized"
                      ]
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "The codes: [`impersonation_session`](https://authtempo.com/docs/reference/errors/#impersonation_session), [`anonymous_refused`](https://authtempo.com/docs/reference/errors/#anonymous_refused), [`origin_not_trusted`](https://authtempo.com/docs/reference/errors/#origin_not_trusted).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "impersonation_session",
                        "anonymous_refused",
                        "origin_not_trusted"
                      ]
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "The codes: [`not_found`](https://authtempo.com/docs/reference/errors/#not_found).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "not_found"
                      ]
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "The codes: [`rate_limited`](https://authtempo.com/docs/reference/errors/#oauth-rate_limited).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OAuthError",
                  "properties": {
                    "error": {
                      "enum": [
                        "rate_limited"
                      ]
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "The codes: [`internal`](https://authtempo.com/docs/reference/errors/#internal).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "internal"
                      ]
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "sessionCookie": []
          },
          {
            "sessionBearer": []
          }
        ]
      }
    },
    "/oauth/userinfo": {
      "get": {
        "tags": [
          "oauth"
        ],
        "summary": "GET /oauth/userinfo",
        "operationId": "get-oauth-userinfo",
        "externalDocs": {
          "url": "https://authtempo.com/docs/reference/routes/#get-oauth-userinfo"
        },
        "x-authtempo-feature": "oauth",
        "x-authtempo-default": "off",
        "responses": {
          "200": {
            "description": "The answer.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "sub": {
                      "type": "string"
                    },
                    "email": {
                      "type": "string"
                    },
                    "email_verified": {
                      "type": "boolean"
                    },
                    "name": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "picture": {
                      "type": [
                        "string",
                        "null"
                      ]
                    }
                  },
                  "required": [
                    "sub"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "401": {
            "description": "The codes: [`invalid_token`](https://authtempo.com/docs/reference/errors/#oauth-invalid_token), [`invalid_dpop_proof`](https://authtempo.com/docs/reference/errors/#oauth-invalid_dpop_proof).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OAuthError",
                  "properties": {
                    "error": {
                      "enum": [
                        "invalid_token",
                        "invalid_dpop_proof"
                      ]
                    }
                  }
                }
              }
            },
            "headers": {
              "WWW-Authenticate": {
                "required": true,
                "description": "The Bearer challenge of RFC 6750 section 3 and the DPoP challenge of RFC 9449 section 7.1. The scheme of the request carries the error code.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "The codes: [`insufficient_scope`](https://authtempo.com/docs/reference/errors/#oauth-insufficient_scope).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OAuthError",
                  "properties": {
                    "error": {
                      "enum": [
                        "insufficient_scope"
                      ]
                    }
                  }
                }
              }
            },
            "headers": {
              "WWW-Authenticate": {
                "required": true,
                "description": "The Bearer challenge of RFC 6750 section 3 and the DPoP challenge of RFC 9449 section 7.1. The scheme of the request carries the error code.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "The codes: [`not_found`](https://authtempo.com/docs/reference/errors/#not_found).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "not_found"
                      ]
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "The codes: [`internal`](https://authtempo.com/docs/reference/errors/#internal).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "internal"
                      ]
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "oauth": []
          },
          {
            "oauthDpop": []
          }
        ]
      },
      "post": {
        "tags": [
          "oauth"
        ],
        "summary": "POST /oauth/userinfo",
        "operationId": "post-oauth-userinfo",
        "externalDocs": {
          "url": "https://authtempo.com/docs/reference/routes/#post-oauth-userinfo"
        },
        "x-authtempo-feature": "oauth",
        "x-authtempo-default": "off",
        "responses": {
          "200": {
            "description": "The answer.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "sub": {
                      "type": "string"
                    },
                    "email": {
                      "type": "string"
                    },
                    "email_verified": {
                      "type": "boolean"
                    },
                    "name": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "picture": {
                      "type": [
                        "string",
                        "null"
                      ]
                    }
                  },
                  "required": [
                    "sub"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "401": {
            "description": "The codes: [`invalid_token`](https://authtempo.com/docs/reference/errors/#oauth-invalid_token), [`invalid_dpop_proof`](https://authtempo.com/docs/reference/errors/#oauth-invalid_dpop_proof).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OAuthError",
                  "properties": {
                    "error": {
                      "enum": [
                        "invalid_token",
                        "invalid_dpop_proof"
                      ]
                    }
                  }
                }
              }
            },
            "headers": {
              "WWW-Authenticate": {
                "required": true,
                "description": "The Bearer challenge of RFC 6750 section 3 and the DPoP challenge of RFC 9449 section 7.1. The scheme of the request carries the error code.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "403": {
            "description": "The codes: [`origin_not_trusted`](https://authtempo.com/docs/reference/errors/#origin_not_trusted), [`insufficient_scope`](https://authtempo.com/docs/reference/errors/#oauth-insufficient_scope).",
            "content": {
              "application/json": {
                "schema": {
                  "anyOf": [
                    {
                      "$ref": "#/components/schemas/Error"
                    },
                    {
                      "$ref": "#/components/schemas/OAuthError"
                    }
                  ],
                  "properties": {
                    "error": {
                      "enum": [
                        "origin_not_trusted",
                        "insufficient_scope"
                      ]
                    }
                  }
                }
              }
            },
            "headers": {
              "WWW-Authenticate": {
                "required": false,
                "description": "The Bearer challenge of RFC 6750 section 3 and the DPoP challenge of RFC 9449 section 7.1. The scheme of the request carries the error code. Only `insufficient_scope` carries it.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "The codes: [`not_found`](https://authtempo.com/docs/reference/errors/#not_found).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "not_found"
                      ]
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "The codes: [`internal`](https://authtempo.com/docs/reference/errors/#internal).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "internal"
                      ]
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "oauth": []
          },
          {
            "oauthDpop": []
          }
        ]
      }
    },
    "/oauth/grants": {
      "get": {
        "tags": [
          "oauth"
        ],
        "summary": "GET /oauth/grants",
        "operationId": "get-oauth-grants",
        "externalDocs": {
          "url": "https://authtempo.com/docs/reference/routes/#get-oauth-grants"
        },
        "x-authtempo-feature": "oauth",
        "x-authtempo-default": "off",
        "responses": {
          "200": {
            "description": "The answer.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "grants": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "clientId": {
                            "type": "string"
                          },
                          "clientName": {
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "scopes": {
                            "type": "array",
                            "items": {
                              "type": "string"
                            }
                          },
                          "createdAt": {
                            "type": "string",
                            "format": "date-time",
                            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                          },
                          "refreshTokens": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          }
                        },
                        "required": [
                          "clientId",
                          "clientName",
                          "scopes",
                          "createdAt",
                          "refreshTokens"
                        ],
                        "additionalProperties": false
                      }
                    }
                  },
                  "required": [
                    "grants"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "401": {
            "description": "The codes: [`unauthorized`](https://authtempo.com/docs/reference/errors/#unauthorized).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "unauthorized"
                      ]
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "The codes: [`not_found`](https://authtempo.com/docs/reference/errors/#not_found).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "not_found"
                      ]
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "The codes: [`internal`](https://authtempo.com/docs/reference/errors/#internal).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "internal"
                      ]
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "sessionCookie": []
          },
          {
            "sessionBearer": []
          }
        ]
      }
    },
    "/oauth/grants/revoke": {
      "post": {
        "tags": [
          "oauth"
        ],
        "summary": "POST /oauth/grants/revoke",
        "operationId": "post-oauth-grants-revoke",
        "externalDocs": {
          "url": "https://authtempo.com/docs/reference/routes/#post-oauth-grants-revoke"
        },
        "x-authtempo-feature": "oauth",
        "x-authtempo-default": "off",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "clientId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 2048
                  }
                },
                "required": [
                  "clientId"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The answer.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OkAnswer"
                }
              }
            }
          },
          "400": {
            "description": "The codes: [`invalid_body`](https://authtempo.com/docs/reference/errors/#invalid_body).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "invalid_body"
                      ]
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The codes: [`unauthorized`](https://authtempo.com/docs/reference/errors/#unauthorized).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "unauthorized"
                      ]
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "The codes: [`impersonation_session`](https://authtempo.com/docs/reference/errors/#impersonation_session), [`origin_not_trusted`](https://authtempo.com/docs/reference/errors/#origin_not_trusted).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "impersonation_session",
                        "origin_not_trusted"
                      ]
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "The codes: [`not_found`](https://authtempo.com/docs/reference/errors/#not_found).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "not_found"
                      ]
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "The codes: [`internal`](https://authtempo.com/docs/reference/errors/#internal).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "internal"
                      ]
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "sessionCookie": []
          },
          {
            "sessionBearer": []
          }
        ]
      }
    },
    "/oauth/end-session": {
      "get": {
        "tags": [
          "oauth"
        ],
        "summary": "GET /oauth/end-session",
        "operationId": "get-oauth-end-session",
        "externalDocs": {
          "url": "https://authtempo.com/docs/reference/routes/#get-oauth-end-session"
        },
        "x-authtempo-feature": "oauth",
        "x-authtempo-default": "off",
        "parameters": [
          {
            "name": "id_token_hint",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "logout_hint",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "client_id",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "post_logout_redirect_uri",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "state",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "ui_locales",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "A page of core.",
            "content": {
              "text/html": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "302": {
            "description": "A redirect.",
            "headers": {
              "Location": {
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "description": "The codes: [`invalid_request`](https://authtempo.com/docs/reference/errors/#oauth-invalid_request).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OAuthError",
                  "properties": {
                    "error": {
                      "enum": [
                        "invalid_request"
                      ]
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "The codes: [`impersonation_session`](https://authtempo.com/docs/reference/errors/#impersonation_session).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "impersonation_session"
                      ]
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "The codes: [`not_found`](https://authtempo.com/docs/reference/errors/#not_found).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "not_found"
                      ]
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "The codes: [`rate_limited`](https://authtempo.com/docs/reference/errors/#oauth-rate_limited).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OAuthError",
                  "properties": {
                    "error": {
                      "enum": [
                        "rate_limited"
                      ]
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "The codes: [`internal`](https://authtempo.com/docs/reference/errors/#internal).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "internal"
                      ]
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {},
          {
            "sessionCookie": []
          },
          {
            "sessionBearer": []
          }
        ]
      },
      "post": {
        "tags": [
          "oauth"
        ],
        "summary": "POST /oauth/end-session",
        "operationId": "post-oauth-end-session",
        "externalDocs": {
          "url": "https://authtempo.com/docs/reference/routes/#post-oauth-end-session"
        },
        "x-authtempo-feature": "oauth",
        "x-authtempo-default": "off",
        "requestBody": {
          "required": true,
          "content": {
            "application/x-www-form-urlencoded": {
              "schema": {
                "type": "object",
                "properties": {
                  "id_token_hint": {
                    "type": "string"
                  },
                  "logout_hint": {
                    "type": "string"
                  },
                  "client_id": {
                    "type": "string"
                  },
                  "post_logout_redirect_uri": {
                    "type": "string"
                  },
                  "state": {
                    "type": "string"
                  },
                  "ui_locales": {
                    "type": "string"
                  },
                  "confirm": {
                    "type": "string",
                    "const": "yes"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "A page of core.",
            "content": {
              "text/html": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "303": {
            "description": "A redirect.",
            "headers": {
              "Location": {
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "description": "The codes: [`invalid_request`](https://authtempo.com/docs/reference/errors/#oauth-invalid_request).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OAuthError",
                  "properties": {
                    "error": {
                      "enum": [
                        "invalid_request"
                      ]
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "The codes: [`impersonation_session`](https://authtempo.com/docs/reference/errors/#impersonation_session).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "impersonation_session"
                      ]
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "The codes: [`not_found`](https://authtempo.com/docs/reference/errors/#not_found).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "not_found"
                      ]
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "The codes: [`rate_limited`](https://authtempo.com/docs/reference/errors/#oauth-rate_limited).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OAuthError",
                  "properties": {
                    "error": {
                      "enum": [
                        "rate_limited"
                      ]
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "The codes: [`internal`](https://authtempo.com/docs/reference/errors/#internal).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "internal"
                      ]
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {},
          {
            "sessionCookie": []
          },
          {
            "sessionBearer": []
          }
        ]
      }
    },
    "/.well-known/oauth-authorization-server": {
      "get": {
        "tags": [
          "oauth"
        ],
        "summary": "GET /.well-known/oauth-authorization-server",
        "operationId": "get-well-known-oauth-authorization-server",
        "externalDocs": {
          "url": "https://authtempo.com/docs/reference/routes/#get-well-known-oauth-authorization-server"
        },
        "x-authtempo-feature": "oauth",
        "x-authtempo-default": "off",
        "responses": {
          "200": {
            "description": "The authorization server metadata of RFC 8414.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "404": {
            "description": "The codes: [`not_found`](https://authtempo.com/docs/reference/errors/#not_found).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "not_found"
                      ]
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "The codes: [`internal`](https://authtempo.com/docs/reference/errors/#internal).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "internal"
                      ]
                    }
                  }
                }
              }
            }
          }
        },
        "security": []
      }
    },
    "/.well-known/openid-configuration": {
      "get": {
        "tags": [
          "oauth"
        ],
        "summary": "GET /.well-known/openid-configuration",
        "operationId": "get-well-known-openid-configuration",
        "externalDocs": {
          "url": "https://authtempo.com/docs/reference/routes/#get-well-known-openid-configuration"
        },
        "x-authtempo-feature": "oauth",
        "x-authtempo-default": "off",
        "responses": {
          "200": {
            "description": "The provider metadata of OpenID Connect Discovery 1.0.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "404": {
            "description": "The codes: [`not_found`](https://authtempo.com/docs/reference/errors/#not_found).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "not_found"
                      ]
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "The codes: [`internal`](https://authtempo.com/docs/reference/errors/#internal).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "internal"
                      ]
                    }
                  }
                }
              }
            }
          }
        },
        "security": []
      }
    },
    "/sso/domains": {
      "get": {
        "tags": [
          "sso"
        ],
        "summary": "GET /sso/domains",
        "operationId": "get-sso-domains",
        "externalDocs": {
          "url": "https://authtempo.com/docs/reference/routes/#get-sso-domains"
        },
        "x-authtempo-feature": "sso",
        "x-authtempo-default": "off",
        "parameters": [
          {
            "name": "organizationId",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 64
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The answer.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "domains": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string"
                          },
                          "organizationId": {
                            "type": "string"
                          },
                          "domain": {
                            "type": "string"
                          },
                          "record": {
                            "anyOf": [
                              {
                                "type": "object",
                                "properties": {
                                  "name": {
                                    "type": "string"
                                  },
                                  "type": {
                                    "type": "string",
                                    "const": "TXT"
                                  },
                                  "value": {
                                    "type": "string"
                                  }
                                },
                                "required": [
                                  "name",
                                  "type",
                                  "value"
                                ],
                                "additionalProperties": false
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "verified": {
                            "type": "boolean"
                          },
                          "verifiedAt": {
                            "anyOf": [
                              {
                                "type": "string",
                                "format": "date-time",
                                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "checkedAt": {
                            "anyOf": [
                              {
                                "type": "string",
                                "format": "date-time",
                                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "connectionId": {
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "enforce": {
                            "type": "boolean"
                          },
                          "includeSubdomains": {
                            "type": "boolean"
                          },
                          "expiresAt": {
                            "anyOf": [
                              {
                                "type": "string",
                                "format": "date-time",
                                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          }
                        },
                        "required": [
                          "id",
                          "organizationId",
                          "domain",
                          "record",
                          "verified",
                          "verifiedAt",
                          "checkedAt",
                          "connectionId",
                          "enforce",
                          "includeSubdomains",
                          "expiresAt"
                        ],
                        "additionalProperties": false
                      }
                    }
                  },
                  "required": [
                    "domains"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "The codes: [`invalid_body`](https://authtempo.com/docs/reference/errors/#invalid_body).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "invalid_body"
                      ]
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The codes: [`unauthorized`](https://authtempo.com/docs/reference/errors/#unauthorized).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "unauthorized"
                      ]
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "The codes: [`forbidden_rank`](https://authtempo.com/docs/reference/errors/#forbidden_rank), [`operator_required`](https://authtempo.com/docs/reference/errors/#operator_required), [`second_factor_required`](https://authtempo.com/docs/reference/errors/#second_factor_required), [`session_not_fresh`](https://authtempo.com/docs/reference/errors/#session_not_fresh).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "forbidden_rank",
                        "operator_required",
                        "second_factor_required",
                        "session_not_fresh"
                      ]
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "The codes: [`not_found`](https://authtempo.com/docs/reference/errors/#not_found).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "not_found"
                      ]
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "The codes: [`rate_limited`](https://authtempo.com/docs/reference/errors/#rate_limited).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "rate_limited"
                      ]
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "The codes: [`internal`](https://authtempo.com/docs/reference/errors/#internal).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "internal"
                      ]
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "sessionCookie": []
          },
          {
            "sessionBearer": []
          }
        ]
      }
    },
    "/sso/domains/add": {
      "post": {
        "tags": [
          "sso"
        ],
        "summary": "POST /sso/domains/add",
        "operationId": "post-sso-domains-add",
        "externalDocs": {
          "url": "https://authtempo.com/docs/reference/routes/#post-sso-domains-add"
        },
        "x-authtempo-feature": "sso",
        "x-authtempo-default": "off",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "organizationId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64
                  },
                  "domain": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 253
                  }
                },
                "required": [
                  "organizationId",
                  "domain"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The answer.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "domain": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string"
                        },
                        "organizationId": {
                          "type": "string"
                        },
                        "domain": {
                          "type": "string"
                        },
                        "record": {
                          "anyOf": [
                            {
                              "type": "object",
                              "properties": {
                                "name": {
                                  "type": "string"
                                },
                                "type": {
                                  "type": "string",
                                  "const": "TXT"
                                },
                                "value": {
                                  "type": "string"
                                }
                              },
                              "required": [
                                "name",
                                "type",
                                "value"
                              ],
                              "additionalProperties": false
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "verified": {
                          "type": "boolean"
                        },
                        "verifiedAt": {
                          "anyOf": [
                            {
                              "type": "string",
                              "format": "date-time",
                              "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "checkedAt": {
                          "anyOf": [
                            {
                              "type": "string",
                              "format": "date-time",
                              "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "connectionId": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "enforce": {
                          "type": "boolean"
                        },
                        "includeSubdomains": {
                          "type": "boolean"
                        },
                        "expiresAt": {
                          "anyOf": [
                            {
                              "type": "string",
                              "format": "date-time",
                              "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        }
                      },
                      "required": [
                        "id",
                        "organizationId",
                        "domain",
                        "record",
                        "verified",
                        "verifiedAt",
                        "checkedAt",
                        "connectionId",
                        "enforce",
                        "includeSubdomains",
                        "expiresAt"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "required": [
                    "domain"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "The codes: [`invalid_body`](https://authtempo.com/docs/reference/errors/#invalid_body).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "invalid_body"
                      ]
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The codes: [`unauthorized`](https://authtempo.com/docs/reference/errors/#unauthorized).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "unauthorized"
                      ]
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "The codes: [`forbidden_rank`](https://authtempo.com/docs/reference/errors/#forbidden_rank), [`operator_required`](https://authtempo.com/docs/reference/errors/#operator_required), [`second_factor_required`](https://authtempo.com/docs/reference/errors/#second_factor_required), [`session_not_fresh`](https://authtempo.com/docs/reference/errors/#session_not_fresh), [`impersonation_session`](https://authtempo.com/docs/reference/errors/#impersonation_session), [`origin_not_trusted`](https://authtempo.com/docs/reference/errors/#origin_not_trusted).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "forbidden_rank",
                        "operator_required",
                        "second_factor_required",
                        "session_not_fresh",
                        "impersonation_session",
                        "origin_not_trusted"
                      ]
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "The codes: [`not_found`](https://authtempo.com/docs/reference/errors/#not_found).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "not_found"
                      ]
                    }
                  }
                }
              }
            }
          },
          "409": {
            "description": "The codes: [`domain_limit`](https://authtempo.com/docs/reference/errors/#domain_limit), [`conflict`](https://authtempo.com/docs/reference/errors/#conflict).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "domain_limit",
                        "conflict"
                      ]
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "The codes: [`rate_limited`](https://authtempo.com/docs/reference/errors/#rate_limited).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "rate_limited"
                      ]
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "The codes: [`internal`](https://authtempo.com/docs/reference/errors/#internal).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "internal"
                      ]
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "sessionCookie": []
          },
          {
            "sessionBearer": []
          }
        ]
      }
    },
    "/sso/domains/verify": {
      "post": {
        "tags": [
          "sso"
        ],
        "summary": "POST /sso/domains/verify",
        "operationId": "post-sso-domains-verify",
        "externalDocs": {
          "url": "https://authtempo.com/docs/reference/routes/#post-sso-domains-verify"
        },
        "x-authtempo-feature": "sso",
        "x-authtempo-default": "off",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64
                  }
                },
                "required": [
                  "id"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The answer.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "domain": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string"
                        },
                        "organizationId": {
                          "type": "string"
                        },
                        "domain": {
                          "type": "string"
                        },
                        "record": {
                          "anyOf": [
                            {
                              "type": "object",
                              "properties": {
                                "name": {
                                  "type": "string"
                                },
                                "type": {
                                  "type": "string",
                                  "const": "TXT"
                                },
                                "value": {
                                  "type": "string"
                                }
                              },
                              "required": [
                                "name",
                                "type",
                                "value"
                              ],
                              "additionalProperties": false
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "verified": {
                          "type": "boolean"
                        },
                        "verifiedAt": {
                          "anyOf": [
                            {
                              "type": "string",
                              "format": "date-time",
                              "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "checkedAt": {
                          "anyOf": [
                            {
                              "type": "string",
                              "format": "date-time",
                              "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "connectionId": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "enforce": {
                          "type": "boolean"
                        },
                        "includeSubdomains": {
                          "type": "boolean"
                        },
                        "expiresAt": {
                          "anyOf": [
                            {
                              "type": "string",
                              "format": "date-time",
                              "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        }
                      },
                      "required": [
                        "id",
                        "organizationId",
                        "domain",
                        "record",
                        "verified",
                        "verifiedAt",
                        "checkedAt",
                        "connectionId",
                        "enforce",
                        "includeSubdomains",
                        "expiresAt"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "required": [
                    "domain"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "The codes: [`invalid_body`](https://authtempo.com/docs/reference/errors/#invalid_body), [`token_expired`](https://authtempo.com/docs/reference/errors/#token_expired), [`domain_unverified`](https://authtempo.com/docs/reference/errors/#domain_unverified).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "invalid_body",
                        "token_expired",
                        "domain_unverified"
                      ]
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The codes: [`unauthorized`](https://authtempo.com/docs/reference/errors/#unauthorized).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "unauthorized"
                      ]
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "The codes: [`forbidden_rank`](https://authtempo.com/docs/reference/errors/#forbidden_rank), [`operator_required`](https://authtempo.com/docs/reference/errors/#operator_required), [`second_factor_required`](https://authtempo.com/docs/reference/errors/#second_factor_required), [`session_not_fresh`](https://authtempo.com/docs/reference/errors/#session_not_fresh), [`impersonation_session`](https://authtempo.com/docs/reference/errors/#impersonation_session), [`origin_not_trusted`](https://authtempo.com/docs/reference/errors/#origin_not_trusted).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "forbidden_rank",
                        "operator_required",
                        "second_factor_required",
                        "session_not_fresh",
                        "impersonation_session",
                        "origin_not_trusted"
                      ]
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "The codes: [`not_found`](https://authtempo.com/docs/reference/errors/#not_found).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "not_found"
                      ]
                    }
                  }
                }
              }
            }
          },
          "409": {
            "description": "The codes: [`domain_taken`](https://authtempo.com/docs/reference/errors/#domain_taken).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "domain_taken"
                      ]
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "The codes: [`rate_limited`](https://authtempo.com/docs/reference/errors/#rate_limited).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "rate_limited"
                      ]
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "The codes: [`internal`](https://authtempo.com/docs/reference/errors/#internal).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "internal"
                      ]
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "sessionCookie": []
          },
          {
            "sessionBearer": []
          }
        ]
      }
    },
    "/sso/domains/update": {
      "post": {
        "tags": [
          "sso"
        ],
        "summary": "POST /sso/domains/update",
        "operationId": "post-sso-domains-update",
        "externalDocs": {
          "url": "https://authtempo.com/docs/reference/routes/#post-sso-domains-update"
        },
        "x-authtempo-feature": "sso",
        "x-authtempo-default": "off",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64
                  },
                  "connectionId": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 64
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "enforce": {
                    "type": "boolean"
                  },
                  "includeSubdomains": {
                    "type": "boolean"
                  }
                },
                "required": [
                  "id"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The answer.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "domain": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string"
                        },
                        "organizationId": {
                          "type": "string"
                        },
                        "domain": {
                          "type": "string"
                        },
                        "record": {
                          "anyOf": [
                            {
                              "type": "object",
                              "properties": {
                                "name": {
                                  "type": "string"
                                },
                                "type": {
                                  "type": "string",
                                  "const": "TXT"
                                },
                                "value": {
                                  "type": "string"
                                }
                              },
                              "required": [
                                "name",
                                "type",
                                "value"
                              ],
                              "additionalProperties": false
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "verified": {
                          "type": "boolean"
                        },
                        "verifiedAt": {
                          "anyOf": [
                            {
                              "type": "string",
                              "format": "date-time",
                              "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "checkedAt": {
                          "anyOf": [
                            {
                              "type": "string",
                              "format": "date-time",
                              "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "connectionId": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "enforce": {
                          "type": "boolean"
                        },
                        "includeSubdomains": {
                          "type": "boolean"
                        },
                        "expiresAt": {
                          "anyOf": [
                            {
                              "type": "string",
                              "format": "date-time",
                              "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        }
                      },
                      "required": [
                        "id",
                        "organizationId",
                        "domain",
                        "record",
                        "verified",
                        "verifiedAt",
                        "checkedAt",
                        "connectionId",
                        "enforce",
                        "includeSubdomains",
                        "expiresAt"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "required": [
                    "domain"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "The codes: [`invalid_body`](https://authtempo.com/docs/reference/errors/#invalid_body).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "invalid_body"
                      ]
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The codes: [`unauthorized`](https://authtempo.com/docs/reference/errors/#unauthorized).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "unauthorized"
                      ]
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "The codes: [`forbidden_rank`](https://authtempo.com/docs/reference/errors/#forbidden_rank), [`operator_required`](https://authtempo.com/docs/reference/errors/#operator_required), [`second_factor_required`](https://authtempo.com/docs/reference/errors/#second_factor_required), [`session_not_fresh`](https://authtempo.com/docs/reference/errors/#session_not_fresh), [`impersonation_session`](https://authtempo.com/docs/reference/errors/#impersonation_session), [`origin_not_trusted`](https://authtempo.com/docs/reference/errors/#origin_not_trusted).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "forbidden_rank",
                        "operator_required",
                        "second_factor_required",
                        "session_not_fresh",
                        "impersonation_session",
                        "origin_not_trusted"
                      ]
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "The codes: [`not_found`](https://authtempo.com/docs/reference/errors/#not_found).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "not_found"
                      ]
                    }
                  }
                }
              }
            }
          },
          "409": {
            "description": "The codes: [`conflict`](https://authtempo.com/docs/reference/errors/#conflict).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "conflict"
                      ]
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "The codes: [`rate_limited`](https://authtempo.com/docs/reference/errors/#rate_limited).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "rate_limited"
                      ]
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "The codes: [`internal`](https://authtempo.com/docs/reference/errors/#internal).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "internal"
                      ]
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "sessionCookie": []
          },
          {
            "sessionBearer": []
          }
        ]
      }
    },
    "/sso/domains/delete": {
      "post": {
        "tags": [
          "sso"
        ],
        "summary": "POST /sso/domains/delete",
        "operationId": "post-sso-domains-delete",
        "externalDocs": {
          "url": "https://authtempo.com/docs/reference/routes/#post-sso-domains-delete"
        },
        "x-authtempo-feature": "sso",
        "x-authtempo-default": "off",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64
                  }
                },
                "required": [
                  "id"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The answer.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OkAnswer"
                }
              }
            }
          },
          "400": {
            "description": "The codes: [`invalid_body`](https://authtempo.com/docs/reference/errors/#invalid_body).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "invalid_body"
                      ]
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The codes: [`unauthorized`](https://authtempo.com/docs/reference/errors/#unauthorized).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "unauthorized"
                      ]
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "The codes: [`forbidden_rank`](https://authtempo.com/docs/reference/errors/#forbidden_rank), [`operator_required`](https://authtempo.com/docs/reference/errors/#operator_required), [`second_factor_required`](https://authtempo.com/docs/reference/errors/#second_factor_required), [`session_not_fresh`](https://authtempo.com/docs/reference/errors/#session_not_fresh), [`impersonation_session`](https://authtempo.com/docs/reference/errors/#impersonation_session), [`origin_not_trusted`](https://authtempo.com/docs/reference/errors/#origin_not_trusted).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "forbidden_rank",
                        "operator_required",
                        "second_factor_required",
                        "session_not_fresh",
                        "impersonation_session",
                        "origin_not_trusted"
                      ]
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "The codes: [`not_found`](https://authtempo.com/docs/reference/errors/#not_found).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "not_found"
                      ]
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "The codes: [`rate_limited`](https://authtempo.com/docs/reference/errors/#rate_limited).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "rate_limited"
                      ]
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "The codes: [`internal`](https://authtempo.com/docs/reference/errors/#internal).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "internal"
                      ]
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "sessionCookie": []
          },
          {
            "sessionBearer": []
          }
        ]
      }
    },
    "/sso/connections": {
      "get": {
        "tags": [
          "sso"
        ],
        "summary": "GET /sso/connections",
        "operationId": "get-sso-connections",
        "externalDocs": {
          "url": "https://authtempo.com/docs/reference/routes/#get-sso-connections"
        },
        "x-authtempo-feature": "sso",
        "x-authtempo-default": "off",
        "parameters": [
          {
            "name": "organizationId",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 64
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The answer.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "connections": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string"
                          },
                          "organizationId": {
                            "type": "string"
                          },
                          "kind": {
                            "type": "string",
                            "enum": [
                              "oidc",
                              "saml"
                            ]
                          },
                          "label": {
                            "type": "string"
                          },
                          "enabled": {
                            "type": "boolean"
                          },
                          "draft": {
                            "type": "boolean"
                          },
                          "jit": {
                            "type": "boolean"
                          },
                          "defaultRole": {
                            "type": "string"
                          },
                          "mfa": {
                            "anyOf": [
                              {
                                "type": "object",
                                "properties": {
                                  "amr": {
                                    "type": "array",
                                    "items": {
                                      "type": "string"
                                    }
                                  },
                                  "acr": {
                                    "type": "array",
                                    "items": {
                                      "type": "string"
                                    }
                                  },
                                  "authnContext": {
                                    "type": "array",
                                    "items": {
                                      "type": "string"
                                    }
                                  }
                                },
                                "required": [
                                  "amr",
                                  "acr",
                                  "authnContext"
                                ],
                                "additionalProperties": false
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "scimRoles": {
                            "anyOf": [
                              {
                                "type": "object",
                                "propertyNames": {
                                  "type": "string"
                                },
                                "additionalProperties": {
                                  "type": "string"
                                }
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "oidc": {
                            "type": "object",
                            "properties": {
                              "issuer": {
                                "type": "string"
                              },
                              "clientId": {
                                "type": "string"
                              },
                              "scope": {
                                "type": "string"
                              },
                              "endpoints": {
                                "anyOf": [
                                  {
                                    "type": "object",
                                    "properties": {
                                      "authorizeUrl": {
                                        "type": "string"
                                      },
                                      "tokenUrl": {
                                        "type": "string"
                                      },
                                      "jwksUrl": {
                                        "type": "string"
                                      }
                                    },
                                    "required": [
                                      "authorizeUrl",
                                      "tokenUrl",
                                      "jwksUrl"
                                    ],
                                    "additionalProperties": false
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "tokenEndpointAuthMethod": {
                                "type": "string",
                                "enum": [
                                  "client_secret_post",
                                  "client_secret_basic"
                                ]
                              }
                            },
                            "required": [
                              "issuer",
                              "clientId",
                              "scope",
                              "endpoints",
                              "tokenEndpointAuthMethod"
                            ],
                            "additionalProperties": false
                          },
                          "saml": {
                            "type": "object",
                            "properties": {
                              "idpEntityId": {
                                "type": "string"
                              },
                              "ssoUrl": {
                                "type": "string"
                              },
                              "certificates": {
                                "type": "array",
                                "items": {
                                  "type": "object",
                                  "properties": {
                                    "notAfter": {
                                      "type": "string",
                                      "format": "date-time",
                                      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                                    }
                                  },
                                  "required": [
                                    "notAfter"
                                  ],
                                  "additionalProperties": false
                                }
                              },
                              "subjectAttribute": {
                                "type": [
                                  "string",
                                  "null"
                                ]
                              },
                              "attributes": {
                                "type": "object",
                                "properties": {
                                  "email": {
                                    "type": "string"
                                  },
                                  "name": {
                                    "type": [
                                      "string",
                                      "null"
                                    ]
                                  }
                                },
                                "required": [
                                  "email",
                                  "name"
                                ],
                                "additionalProperties": false
                              },
                              "spEntityId": {
                                "type": "string"
                              },
                              "acsUrl": {
                                "type": "string"
                              }
                            },
                            "required": [
                              "idpEntityId",
                              "ssoUrl",
                              "certificates",
                              "subjectAttribute",
                              "attributes",
                              "spEntityId",
                              "acsUrl"
                            ],
                            "additionalProperties": false
                          },
                          "createdAt": {
                            "type": "string",
                            "format": "date-time",
                            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                          },
                          "updatedAt": {
                            "type": "string",
                            "format": "date-time",
                            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                          },
                          "status": {
                            "type": "object",
                            "properties": {
                              "lastSuccessAt": {
                                "anyOf": [
                                  {
                                    "type": "string",
                                    "format": "date-time",
                                    "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "lastFailureAt": {
                                "anyOf": [
                                  {
                                    "type": "string",
                                    "format": "date-time",
                                    "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "lastFailureStep": {
                                "type": [
                                  "string",
                                  "null"
                                ]
                              },
                              "certificateEndsAt": {
                                "anyOf": [
                                  {
                                    "type": "string",
                                    "format": "date-time",
                                    "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "expiryStage": {
                                "anyOf": [
                                  {
                                    "type": "number",
                                    "enum": [
                                      30,
                                      7,
                                      1
                                    ]
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              }
                            },
                            "required": [
                              "lastSuccessAt",
                              "lastFailureAt",
                              "lastFailureStep",
                              "certificateEndsAt",
                              "expiryStage"
                            ],
                            "additionalProperties": false
                          }
                        },
                        "required": [
                          "id",
                          "organizationId",
                          "kind",
                          "label",
                          "enabled",
                          "draft",
                          "jit",
                          "defaultRole",
                          "mfa",
                          "scimRoles",
                          "createdAt",
                          "updatedAt",
                          "status"
                        ],
                        "additionalProperties": false
                      }
                    }
                  },
                  "required": [
                    "connections"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "The codes: [`invalid_body`](https://authtempo.com/docs/reference/errors/#invalid_body).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "invalid_body"
                      ]
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The codes: [`unauthorized`](https://authtempo.com/docs/reference/errors/#unauthorized).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "unauthorized"
                      ]
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "The codes: [`forbidden_rank`](https://authtempo.com/docs/reference/errors/#forbidden_rank), [`operator_required`](https://authtempo.com/docs/reference/errors/#operator_required), [`second_factor_required`](https://authtempo.com/docs/reference/errors/#second_factor_required), [`session_not_fresh`](https://authtempo.com/docs/reference/errors/#session_not_fresh).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "forbidden_rank",
                        "operator_required",
                        "second_factor_required",
                        "session_not_fresh"
                      ]
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "The codes: [`not_found`](https://authtempo.com/docs/reference/errors/#not_found).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "not_found"
                      ]
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "The codes: [`rate_limited`](https://authtempo.com/docs/reference/errors/#rate_limited).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "rate_limited"
                      ]
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "The codes: [`internal`](https://authtempo.com/docs/reference/errors/#internal).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "internal"
                      ]
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "sessionCookie": []
          },
          {
            "sessionBearer": []
          }
        ]
      }
    },
    "/sso/connections/create": {
      "post": {
        "tags": [
          "sso"
        ],
        "summary": "POST /sso/connections/create",
        "operationId": "post-sso-connections-create",
        "externalDocs": {
          "url": "https://authtempo.com/docs/reference/routes/#post-sso-connections-create"
        },
        "x-authtempo-feature": "sso",
        "x-authtempo-default": "off",
        "parameters": [
          {
            "name": "organizationId",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 64
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "kind": {
                    "type": "string",
                    "enum": [
                      "oidc",
                      "saml"
                    ]
                  },
                  "label": {
                    "type": "string",
                    "maxLength": 4096
                  },
                  "enabled": {
                    "type": "boolean"
                  },
                  "jit": {
                    "type": "boolean"
                  },
                  "defaultRole": {
                    "type": "string",
                    "maxLength": 4096
                  },
                  "mfa": {
                    "anyOf": [
                      {
                        "type": "object",
                        "properties": {
                          "amr": {
                            "maxItems": 64,
                            "type": "array",
                            "items": {
                              "type": "string",
                              "maxLength": 4096
                            }
                          },
                          "acr": {
                            "maxItems": 64,
                            "type": "array",
                            "items": {
                              "type": "string",
                              "maxLength": 4096
                            }
                          },
                          "authnContext": {
                            "maxItems": 64,
                            "type": "array",
                            "items": {
                              "type": "string",
                              "maxLength": 4096
                            }
                          }
                        },
                        "additionalProperties": false
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "scimRoles": {
                    "anyOf": [
                      {
                        "type": "object",
                        "propertyNames": {
                          "type": "string",
                          "maxLength": 4096
                        },
                        "additionalProperties": {
                          "type": "string",
                          "maxLength": 4096
                        }
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "issuer": {
                    "type": "string",
                    "maxLength": 4096
                  },
                  "clientId": {
                    "type": "string",
                    "maxLength": 4096
                  },
                  "clientSecret": {
                    "type": "string",
                    "maxLength": 4096
                  },
                  "scope": {
                    "type": "string",
                    "maxLength": 4096
                  },
                  "endpoints": {
                    "anyOf": [
                      {
                        "type": "object",
                        "properties": {
                          "authorizeUrl": {
                            "type": "string",
                            "maxLength": 4096
                          },
                          "tokenUrl": {
                            "type": "string",
                            "maxLength": 4096
                          },
                          "jwksUrl": {
                            "type": "string",
                            "maxLength": 4096
                          }
                        },
                        "required": [
                          "authorizeUrl",
                          "tokenUrl",
                          "jwksUrl"
                        ],
                        "additionalProperties": false
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "tokenEndpointAuthMethod": {
                    "type": "string",
                    "enum": [
                      "client_secret_post",
                      "client_secret_basic"
                    ]
                  },
                  "idpMetadata": {
                    "type": "string",
                    "maxLength": 200000
                  },
                  "idpEntityId": {
                    "type": "string",
                    "maxLength": 4096
                  },
                  "ssoUrl": {
                    "type": "string",
                    "maxLength": 4096
                  },
                  "certificates": {
                    "maxItems": 8,
                    "type": "array",
                    "items": {
                      "type": "string",
                      "maxLength": 65536
                    }
                  },
                  "subjectAttribute": {
                    "anyOf": [
                      {
                        "type": "string",
                        "maxLength": 4096
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "attributes": {
                    "type": "object",
                    "properties": {
                      "email": {
                        "type": "string",
                        "maxLength": 4096
                      },
                      "name": {
                        "anyOf": [
                          {
                            "type": "string",
                            "maxLength": 4096
                          },
                          {
                            "type": "null"
                          }
                        ]
                      }
                    },
                    "required": [
                      "email"
                    ],
                    "additionalProperties": false
                  }
                },
                "required": [
                  "kind",
                  "label"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The answer.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "connection": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string"
                        },
                        "organizationId": {
                          "type": "string"
                        },
                        "kind": {
                          "type": "string",
                          "enum": [
                            "oidc",
                            "saml"
                          ]
                        },
                        "label": {
                          "type": "string"
                        },
                        "enabled": {
                          "type": "boolean"
                        },
                        "draft": {
                          "type": "boolean"
                        },
                        "jit": {
                          "type": "boolean"
                        },
                        "defaultRole": {
                          "type": "string"
                        },
                        "mfa": {
                          "anyOf": [
                            {
                              "type": "object",
                              "properties": {
                                "amr": {
                                  "type": "array",
                                  "items": {
                                    "type": "string"
                                  }
                                },
                                "acr": {
                                  "type": "array",
                                  "items": {
                                    "type": "string"
                                  }
                                },
                                "authnContext": {
                                  "type": "array",
                                  "items": {
                                    "type": "string"
                                  }
                                }
                              },
                              "required": [
                                "amr",
                                "acr",
                                "authnContext"
                              ],
                              "additionalProperties": false
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "scimRoles": {
                          "anyOf": [
                            {
                              "type": "object",
                              "propertyNames": {
                                "type": "string"
                              },
                              "additionalProperties": {
                                "type": "string"
                              }
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "oidc": {
                          "type": "object",
                          "properties": {
                            "issuer": {
                              "type": "string"
                            },
                            "clientId": {
                              "type": "string"
                            },
                            "scope": {
                              "type": "string"
                            },
                            "endpoints": {
                              "anyOf": [
                                {
                                  "type": "object",
                                  "properties": {
                                    "authorizeUrl": {
                                      "type": "string"
                                    },
                                    "tokenUrl": {
                                      "type": "string"
                                    },
                                    "jwksUrl": {
                                      "type": "string"
                                    }
                                  },
                                  "required": [
                                    "authorizeUrl",
                                    "tokenUrl",
                                    "jwksUrl"
                                  ],
                                  "additionalProperties": false
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "tokenEndpointAuthMethod": {
                              "type": "string",
                              "enum": [
                                "client_secret_post",
                                "client_secret_basic"
                              ]
                            }
                          },
                          "required": [
                            "issuer",
                            "clientId",
                            "scope",
                            "endpoints",
                            "tokenEndpointAuthMethod"
                          ],
                          "additionalProperties": false
                        },
                        "saml": {
                          "type": "object",
                          "properties": {
                            "idpEntityId": {
                              "type": "string"
                            },
                            "ssoUrl": {
                              "type": "string"
                            },
                            "certificates": {
                              "type": "array",
                              "items": {
                                "type": "object",
                                "properties": {
                                  "notAfter": {
                                    "type": "string",
                                    "format": "date-time",
                                    "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                                  }
                                },
                                "required": [
                                  "notAfter"
                                ],
                                "additionalProperties": false
                              }
                            },
                            "subjectAttribute": {
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "attributes": {
                              "type": "object",
                              "properties": {
                                "email": {
                                  "type": "string"
                                },
                                "name": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                }
                              },
                              "required": [
                                "email",
                                "name"
                              ],
                              "additionalProperties": false
                            },
                            "spEntityId": {
                              "type": "string"
                            },
                            "acsUrl": {
                              "type": "string"
                            }
                          },
                          "required": [
                            "idpEntityId",
                            "ssoUrl",
                            "certificates",
                            "subjectAttribute",
                            "attributes",
                            "spEntityId",
                            "acsUrl"
                          ],
                          "additionalProperties": false
                        },
                        "createdAt": {
                          "type": "string",
                          "format": "date-time",
                          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                        },
                        "updatedAt": {
                          "type": "string",
                          "format": "date-time",
                          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                        }
                      },
                      "required": [
                        "id",
                        "organizationId",
                        "kind",
                        "label",
                        "enabled",
                        "draft",
                        "jit",
                        "defaultRole",
                        "mfa",
                        "scimRoles",
                        "createdAt",
                        "updatedAt"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "required": [
                    "connection"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "The codes: [`invalid_body`](https://authtempo.com/docs/reference/errors/#invalid_body).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "invalid_body"
                      ]
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The codes: [`unauthorized`](https://authtempo.com/docs/reference/errors/#unauthorized).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "unauthorized"
                      ]
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "The codes: [`forbidden_rank`](https://authtempo.com/docs/reference/errors/#forbidden_rank), [`operator_required`](https://authtempo.com/docs/reference/errors/#operator_required), [`second_factor_required`](https://authtempo.com/docs/reference/errors/#second_factor_required), [`session_not_fresh`](https://authtempo.com/docs/reference/errors/#session_not_fresh), [`impersonation_session`](https://authtempo.com/docs/reference/errors/#impersonation_session), [`origin_not_trusted`](https://authtempo.com/docs/reference/errors/#origin_not_trusted).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "forbidden_rank",
                        "operator_required",
                        "second_factor_required",
                        "session_not_fresh",
                        "impersonation_session",
                        "origin_not_trusted"
                      ]
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "The codes: [`not_found`](https://authtempo.com/docs/reference/errors/#not_found).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "not_found"
                      ]
                    }
                  }
                }
              }
            }
          },
          "409": {
            "description": "The codes: [`connection_limit`](https://authtempo.com/docs/reference/errors/#connection_limit).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "connection_limit"
                      ]
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "The codes: [`rate_limited`](https://authtempo.com/docs/reference/errors/#rate_limited).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "rate_limited"
                      ]
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "The codes: [`internal`](https://authtempo.com/docs/reference/errors/#internal).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "internal"
                      ]
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "sessionCookie": []
          },
          {
            "sessionBearer": []
          }
        ]
      }
    },
    "/sso/connections/update": {
      "post": {
        "tags": [
          "sso"
        ],
        "summary": "POST /sso/connections/update",
        "operationId": "post-sso-connections-update",
        "externalDocs": {
          "url": "https://authtempo.com/docs/reference/routes/#post-sso-connections-update"
        },
        "x-authtempo-feature": "sso",
        "x-authtempo-default": "off",
        "parameters": [
          {
            "name": "id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 64
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "organizationId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64
                  },
                  "kind": {
                    "type": "string",
                    "enum": [
                      "oidc",
                      "saml"
                    ]
                  },
                  "label": {
                    "type": "string",
                    "maxLength": 4096
                  },
                  "enabled": {
                    "type": "boolean"
                  },
                  "jit": {
                    "type": "boolean"
                  },
                  "defaultRole": {
                    "type": "string",
                    "maxLength": 4096
                  },
                  "mfa": {
                    "anyOf": [
                      {
                        "type": "object",
                        "properties": {
                          "amr": {
                            "maxItems": 64,
                            "type": "array",
                            "items": {
                              "type": "string",
                              "maxLength": 4096
                            }
                          },
                          "acr": {
                            "maxItems": 64,
                            "type": "array",
                            "items": {
                              "type": "string",
                              "maxLength": 4096
                            }
                          },
                          "authnContext": {
                            "maxItems": 64,
                            "type": "array",
                            "items": {
                              "type": "string",
                              "maxLength": 4096
                            }
                          }
                        },
                        "additionalProperties": false
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "scimRoles": {
                    "anyOf": [
                      {
                        "type": "object",
                        "propertyNames": {
                          "type": "string",
                          "maxLength": 4096
                        },
                        "additionalProperties": {
                          "type": "string",
                          "maxLength": 4096
                        }
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "issuer": {
                    "type": "string",
                    "maxLength": 4096
                  },
                  "clientId": {
                    "type": "string",
                    "maxLength": 4096
                  },
                  "clientSecret": {
                    "type": "string",
                    "maxLength": 4096
                  },
                  "scope": {
                    "type": "string",
                    "maxLength": 4096
                  },
                  "endpoints": {
                    "anyOf": [
                      {
                        "type": "object",
                        "properties": {
                          "authorizeUrl": {
                            "type": "string",
                            "maxLength": 4096
                          },
                          "tokenUrl": {
                            "type": "string",
                            "maxLength": 4096
                          },
                          "jwksUrl": {
                            "type": "string",
                            "maxLength": 4096
                          }
                        },
                        "required": [
                          "authorizeUrl",
                          "tokenUrl",
                          "jwksUrl"
                        ],
                        "additionalProperties": false
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "tokenEndpointAuthMethod": {
                    "type": "string",
                    "enum": [
                      "client_secret_post",
                      "client_secret_basic"
                    ]
                  },
                  "idpMetadata": {
                    "type": "string",
                    "maxLength": 200000
                  },
                  "idpEntityId": {
                    "type": "string",
                    "maxLength": 4096
                  },
                  "ssoUrl": {
                    "type": "string",
                    "maxLength": 4096
                  },
                  "certificates": {
                    "maxItems": 8,
                    "type": "array",
                    "items": {
                      "type": "string",
                      "maxLength": 65536
                    }
                  },
                  "subjectAttribute": {
                    "anyOf": [
                      {
                        "type": "string",
                        "maxLength": 4096
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "attributes": {
                    "type": "object",
                    "properties": {
                      "email": {
                        "type": "string",
                        "maxLength": 4096
                      },
                      "name": {
                        "anyOf": [
                          {
                            "type": "string",
                            "maxLength": 4096
                          },
                          {
                            "type": "null"
                          }
                        ]
                      }
                    },
                    "required": [
                      "email"
                    ],
                    "additionalProperties": false
                  }
                },
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The answer.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "connection": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string"
                        },
                        "organizationId": {
                          "type": "string"
                        },
                        "kind": {
                          "type": "string",
                          "enum": [
                            "oidc",
                            "saml"
                          ]
                        },
                        "label": {
                          "type": "string"
                        },
                        "enabled": {
                          "type": "boolean"
                        },
                        "draft": {
                          "type": "boolean"
                        },
                        "jit": {
                          "type": "boolean"
                        },
                        "defaultRole": {
                          "type": "string"
                        },
                        "mfa": {
                          "anyOf": [
                            {
                              "type": "object",
                              "properties": {
                                "amr": {
                                  "type": "array",
                                  "items": {
                                    "type": "string"
                                  }
                                },
                                "acr": {
                                  "type": "array",
                                  "items": {
                                    "type": "string"
                                  }
                                },
                                "authnContext": {
                                  "type": "array",
                                  "items": {
                                    "type": "string"
                                  }
                                }
                              },
                              "required": [
                                "amr",
                                "acr",
                                "authnContext"
                              ],
                              "additionalProperties": false
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "scimRoles": {
                          "anyOf": [
                            {
                              "type": "object",
                              "propertyNames": {
                                "type": "string"
                              },
                              "additionalProperties": {
                                "type": "string"
                              }
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "oidc": {
                          "type": "object",
                          "properties": {
                            "issuer": {
                              "type": "string"
                            },
                            "clientId": {
                              "type": "string"
                            },
                            "scope": {
                              "type": "string"
                            },
                            "endpoints": {
                              "anyOf": [
                                {
                                  "type": "object",
                                  "properties": {
                                    "authorizeUrl": {
                                      "type": "string"
                                    },
                                    "tokenUrl": {
                                      "type": "string"
                                    },
                                    "jwksUrl": {
                                      "type": "string"
                                    }
                                  },
                                  "required": [
                                    "authorizeUrl",
                                    "tokenUrl",
                                    "jwksUrl"
                                  ],
                                  "additionalProperties": false
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "tokenEndpointAuthMethod": {
                              "type": "string",
                              "enum": [
                                "client_secret_post",
                                "client_secret_basic"
                              ]
                            }
                          },
                          "required": [
                            "issuer",
                            "clientId",
                            "scope",
                            "endpoints",
                            "tokenEndpointAuthMethod"
                          ],
                          "additionalProperties": false
                        },
                        "saml": {
                          "type": "object",
                          "properties": {
                            "idpEntityId": {
                              "type": "string"
                            },
                            "ssoUrl": {
                              "type": "string"
                            },
                            "certificates": {
                              "type": "array",
                              "items": {
                                "type": "object",
                                "properties": {
                                  "notAfter": {
                                    "type": "string",
                                    "format": "date-time",
                                    "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                                  }
                                },
                                "required": [
                                  "notAfter"
                                ],
                                "additionalProperties": false
                              }
                            },
                            "subjectAttribute": {
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "attributes": {
                              "type": "object",
                              "properties": {
                                "email": {
                                  "type": "string"
                                },
                                "name": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                }
                              },
                              "required": [
                                "email",
                                "name"
                              ],
                              "additionalProperties": false
                            },
                            "spEntityId": {
                              "type": "string"
                            },
                            "acsUrl": {
                              "type": "string"
                            }
                          },
                          "required": [
                            "idpEntityId",
                            "ssoUrl",
                            "certificates",
                            "subjectAttribute",
                            "attributes",
                            "spEntityId",
                            "acsUrl"
                          ],
                          "additionalProperties": false
                        },
                        "createdAt": {
                          "type": "string",
                          "format": "date-time",
                          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                        },
                        "updatedAt": {
                          "type": "string",
                          "format": "date-time",
                          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                        }
                      },
                      "required": [
                        "id",
                        "organizationId",
                        "kind",
                        "label",
                        "enabled",
                        "draft",
                        "jit",
                        "defaultRole",
                        "mfa",
                        "scimRoles",
                        "createdAt",
                        "updatedAt"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "required": [
                    "connection"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "The codes: [`invalid_body`](https://authtempo.com/docs/reference/errors/#invalid_body).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "invalid_body"
                      ]
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The codes: [`unauthorized`](https://authtempo.com/docs/reference/errors/#unauthorized).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "unauthorized"
                      ]
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "The codes: [`forbidden_rank`](https://authtempo.com/docs/reference/errors/#forbidden_rank), [`operator_required`](https://authtempo.com/docs/reference/errors/#operator_required), [`second_factor_required`](https://authtempo.com/docs/reference/errors/#second_factor_required), [`session_not_fresh`](https://authtempo.com/docs/reference/errors/#session_not_fresh), [`impersonation_session`](https://authtempo.com/docs/reference/errors/#impersonation_session), [`origin_not_trusted`](https://authtempo.com/docs/reference/errors/#origin_not_trusted).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "forbidden_rank",
                        "operator_required",
                        "second_factor_required",
                        "session_not_fresh",
                        "impersonation_session",
                        "origin_not_trusted"
                      ]
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "The codes: [`not_found`](https://authtempo.com/docs/reference/errors/#not_found).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "not_found"
                      ]
                    }
                  }
                }
              }
            }
          },
          "409": {
            "description": "The codes: [`conflict`](https://authtempo.com/docs/reference/errors/#conflict), [`setup_not_tested`](https://authtempo.com/docs/reference/errors/#setup_not_tested).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "conflict",
                        "setup_not_tested"
                      ]
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "The codes: [`rate_limited`](https://authtempo.com/docs/reference/errors/#rate_limited).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "rate_limited"
                      ]
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "The codes: [`internal`](https://authtempo.com/docs/reference/errors/#internal).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "internal"
                      ]
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "sessionCookie": []
          },
          {
            "sessionBearer": []
          }
        ]
      }
    },
    "/sso/connections/delete": {
      "post": {
        "tags": [
          "sso"
        ],
        "summary": "POST /sso/connections/delete",
        "operationId": "post-sso-connections-delete",
        "externalDocs": {
          "url": "https://authtempo.com/docs/reference/routes/#post-sso-connections-delete"
        },
        "x-authtempo-feature": "sso",
        "x-authtempo-default": "off",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64
                  }
                },
                "required": [
                  "id"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The answer.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OkAnswer"
                }
              }
            }
          },
          "400": {
            "description": "The codes: [`invalid_body`](https://authtempo.com/docs/reference/errors/#invalid_body).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "invalid_body"
                      ]
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The codes: [`unauthorized`](https://authtempo.com/docs/reference/errors/#unauthorized).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "unauthorized"
                      ]
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "The codes: [`forbidden_rank`](https://authtempo.com/docs/reference/errors/#forbidden_rank), [`operator_required`](https://authtempo.com/docs/reference/errors/#operator_required), [`second_factor_required`](https://authtempo.com/docs/reference/errors/#second_factor_required), [`session_not_fresh`](https://authtempo.com/docs/reference/errors/#session_not_fresh), [`impersonation_session`](https://authtempo.com/docs/reference/errors/#impersonation_session), [`origin_not_trusted`](https://authtempo.com/docs/reference/errors/#origin_not_trusted).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "forbidden_rank",
                        "operator_required",
                        "second_factor_required",
                        "session_not_fresh",
                        "impersonation_session",
                        "origin_not_trusted"
                      ]
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "The codes: [`not_found`](https://authtempo.com/docs/reference/errors/#not_found).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "not_found"
                      ]
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "The codes: [`rate_limited`](https://authtempo.com/docs/reference/errors/#rate_limited).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "rate_limited"
                      ]
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "The codes: [`internal`](https://authtempo.com/docs/reference/errors/#internal).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "internal"
                      ]
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "sessionCookie": []
          },
          {
            "sessionBearer": []
          }
        ]
      }
    },
    "/sso/discover": {
      "post": {
        "tags": [
          "sso"
        ],
        "summary": "POST /sso/discover",
        "operationId": "post-sso-discover",
        "externalDocs": {
          "url": "https://authtempo.com/docs/reference/routes/#post-sso-discover"
        },
        "x-authtempo-feature": "sso",
        "x-authtempo-default": "off",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "email": {
                    "type": "string",
                    "maxLength": 320
                  },
                  "next": {
                    "type": "string",
                    "maxLength": 2048
                  }
                },
                "required": [
                  "email"
                ]
              }
            },
            "application/x-www-form-urlencoded": {
              "schema": {
                "type": "object",
                "properties": {
                  "email": {
                    "type": "string",
                    "maxLength": 320
                  },
                  "next": {
                    "type": "string",
                    "maxLength": 2048
                  }
                },
                "required": [
                  "email"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The answer. A page of core.",
            "content": {
              "application/json": {
                "schema": {
                  "anyOf": [
                    {
                      "type": "object",
                      "properties": {
                        "sso": {
                          "type": "boolean",
                          "const": true
                        },
                        "connectionId": {
                          "type": "string"
                        },
                        "start": {
                          "type": "string"
                        }
                      },
                      "required": [
                        "sso",
                        "connectionId",
                        "start"
                      ],
                      "additionalProperties": false
                    },
                    {
                      "type": "object",
                      "properties": {
                        "sso": {
                          "type": "boolean",
                          "const": false
                        }
                      },
                      "required": [
                        "sso"
                      ],
                      "additionalProperties": false
                    }
                  ]
                }
              },
              "text/html": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "302": {
            "description": "A redirect. A failure carries its code in the `auth_error` query parameter of the location.",
            "headers": {
              "Location": {
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "description": "The codes: [`invalid_body`](https://authtempo.com/docs/reference/errors/#invalid_body). A browser flow can get the code in the `auth_error` query parameter of a 302 in place of this answer.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "invalid_body"
                      ]
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "The codes: [`origin_not_trusted`](https://authtempo.com/docs/reference/errors/#origin_not_trusted).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "origin_not_trusted"
                      ]
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "The codes: [`sso_not_configured`](https://authtempo.com/docs/reference/errors/#sso_not_configured), [`not_found`](https://authtempo.com/docs/reference/errors/#not_found). A browser flow can get the code in the `auth_error` query parameter of a 302 in place of this answer.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "sso_not_configured",
                        "not_found"
                      ]
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "The codes: [`rate_limited`](https://authtempo.com/docs/reference/errors/#rate_limited). A browser flow can get the code in the `auth_error` query parameter of a 302 in place of this answer.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "rate_limited"
                      ]
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "The codes: [`internal`](https://authtempo.com/docs/reference/errors/#internal).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "internal"
                      ]
                    }
                  }
                }
              }
            }
          }
        },
        "security": []
      }
    },
    "/sso/{connectionId}/start": {
      "get": {
        "tags": [
          "sso"
        ],
        "summary": "GET /sso/:connectionId/start",
        "operationId": "get-sso-connectionid-start",
        "externalDocs": {
          "url": "https://authtempo.com/docs/reference/routes/#get-sso-connectionid-start"
        },
        "x-authtempo-feature": "sso",
        "x-authtempo-default": "off",
        "parameters": [
          {
            "name": "connectionId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^[A-Za-z0-9._:-]{1,128}$"
            }
          },
          {
            "name": "next",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 2048
            }
          },
          {
            "name": "test",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "const": "1"
            }
          }
        ],
        "responses": {
          "302": {
            "description": "A redirect. A failure carries its code in the `auth_error` query parameter of the location.",
            "headers": {
              "Location": {
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "description": "The codes: [`sso_failed`](https://authtempo.com/docs/reference/errors/#sso_failed). A browser flow can get the code in the `auth_error` query parameter of a 302 in place of this answer.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "sso_failed"
                      ]
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "The codes: [`sso_not_configured`](https://authtempo.com/docs/reference/errors/#sso_not_configured), [`not_found`](https://authtempo.com/docs/reference/errors/#not_found). A browser flow can get the code in the `auth_error` query parameter of a 302 in place of this answer.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "sso_not_configured",
                        "not_found"
                      ]
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "The codes: [`rate_limited`](https://authtempo.com/docs/reference/errors/#rate_limited). A browser flow can get the code in the `auth_error` query parameter of a 302 in place of this answer.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "rate_limited"
                      ]
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "The codes: [`internal`](https://authtempo.com/docs/reference/errors/#internal).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "internal"
                      ]
                    }
                  }
                }
              }
            }
          }
        },
        "security": []
      }
    },
    "/sso/{connectionId}/callback": {
      "get": {
        "tags": [
          "sso"
        ],
        "summary": "GET /sso/:connectionId/callback",
        "operationId": "get-sso-connectionid-callback",
        "externalDocs": {
          "url": "https://authtempo.com/docs/reference/routes/#get-sso-connectionid-callback"
        },
        "x-authtempo-feature": "sso",
        "x-authtempo-default": "off",
        "parameters": [
          {
            "name": "connectionId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^[A-Za-z0-9._:-]{1,128}$"
            }
          },
          {
            "name": "code",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "state",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "error",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "302": {
            "description": "A redirect. A failure carries its code in the `auth_error` query parameter of the location.",
            "headers": {
              "Location": {
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "303": {
            "description": "A redirect. A failure is a 302 that carries its code in the `auth_error` query parameter of the location.",
            "headers": {
              "Location": {
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "description": "The codes: [`sso_failed`](https://authtempo.com/docs/reference/errors/#sso_failed), [`oauth_denied`](https://authtempo.com/docs/reference/errors/#oauth_denied), [`email_required`](https://authtempo.com/docs/reference/errors/#email_required). A browser flow can get the code in the `auth_error` query parameter of a 302 in place of this answer.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "sso_failed",
                        "oauth_denied",
                        "email_required"
                      ]
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "The codes: [`sso_domain_mismatch`](https://authtempo.com/docs/reference/errors/#sso_domain_mismatch), [`sso_not_provisioned`](https://authtempo.com/docs/reference/errors/#sso_not_provisioned), [`account_disabled`](https://authtempo.com/docs/reference/errors/#account_disabled), [`sign_up_closed`](https://authtempo.com/docs/reference/errors/#sign_up_closed), [`hook_refused`](https://authtempo.com/docs/reference/errors/#hook_refused), [`account_banned`](https://authtempo.com/docs/reference/errors/#account_banned). A browser flow can get the code in the `auth_error` query parameter of a 302 in place of this answer.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "sso_domain_mismatch",
                        "sso_not_provisioned",
                        "account_disabled",
                        "sign_up_closed",
                        "hook_refused",
                        "account_banned"
                      ]
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "The codes: [`sso_not_configured`](https://authtempo.com/docs/reference/errors/#sso_not_configured), [`not_found`](https://authtempo.com/docs/reference/errors/#not_found). A browser flow can get the code in the `auth_error` query parameter of a 302 in place of this answer.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "sso_not_configured",
                        "not_found"
                      ]
                    }
                  }
                }
              }
            }
          },
          "409": {
            "description": "The codes: [`member_limit`](https://authtempo.com/docs/reference/errors/#member_limit), [`role_not_found`](https://authtempo.com/docs/reference/errors/#role_not_found), [`conflict`](https://authtempo.com/docs/reference/errors/#conflict). A browser flow can get the code in the `auth_error` query parameter of a 302 in place of this answer.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "member_limit",
                        "role_not_found",
                        "conflict"
                      ]
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "The codes: [`hook_failed`](https://authtempo.com/docs/reference/errors/#hook_failed), [`internal`](https://authtempo.com/docs/reference/errors/#internal). A browser flow can get the code in the `auth_error` query parameter of a 302 in place of this answer.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "hook_failed",
                        "internal"
                      ]
                    }
                  }
                }
              }
            }
          }
        },
        "security": []
      }
    },
    "/sso/{connectionId}/acs": {
      "post": {
        "tags": [
          "sso"
        ],
        "summary": "POST /sso/:connectionId/acs",
        "operationId": "post-sso-connectionid-acs",
        "externalDocs": {
          "url": "https://authtempo.com/docs/reference/routes/#post-sso-connectionid-acs"
        },
        "x-authtempo-feature": "sso",
        "x-authtempo-default": "off",
        "parameters": [
          {
            "name": "connectionId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^[A-Za-z0-9._:-]{1,128}$"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/x-www-form-urlencoded": {
              "schema": {
                "type": "object",
                "properties": {
                  "SAMLResponse": {
                    "type": "string"
                  },
                  "RelayState": {
                    "type": "string"
                  }
                },
                "required": [
                  "SAMLResponse",
                  "RelayState"
                ]
              }
            }
          }
        },
        "responses": {
          "302": {
            "description": "A redirect. A failure carries its code in the `auth_error` query parameter of the location.",
            "headers": {
              "Location": {
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "303": {
            "description": "A redirect. A failure is a 302 that carries its code in the `auth_error` query parameter of the location.",
            "headers": {
              "Location": {
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "description": "The codes: [`sso_failed`](https://authtempo.com/docs/reference/errors/#sso_failed), [`email_required`](https://authtempo.com/docs/reference/errors/#email_required). A browser flow can get the code in the `auth_error` query parameter of a 302 in place of this answer.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "sso_failed",
                        "email_required"
                      ]
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "The codes: [`sso_domain_mismatch`](https://authtempo.com/docs/reference/errors/#sso_domain_mismatch), [`sso_not_provisioned`](https://authtempo.com/docs/reference/errors/#sso_not_provisioned), [`account_disabled`](https://authtempo.com/docs/reference/errors/#account_disabled), [`sign_up_closed`](https://authtempo.com/docs/reference/errors/#sign_up_closed), [`hook_refused`](https://authtempo.com/docs/reference/errors/#hook_refused), [`account_banned`](https://authtempo.com/docs/reference/errors/#account_banned). A browser flow can get the code in the `auth_error` query parameter of a 302 in place of this answer.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "sso_domain_mismatch",
                        "sso_not_provisioned",
                        "account_disabled",
                        "sign_up_closed",
                        "hook_refused",
                        "account_banned"
                      ]
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "The codes: [`sso_not_configured`](https://authtempo.com/docs/reference/errors/#sso_not_configured), [`not_found`](https://authtempo.com/docs/reference/errors/#not_found). A browser flow can get the code in the `auth_error` query parameter of a 302 in place of this answer.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "sso_not_configured",
                        "not_found"
                      ]
                    }
                  }
                }
              }
            }
          },
          "409": {
            "description": "The codes: [`member_limit`](https://authtempo.com/docs/reference/errors/#member_limit), [`role_not_found`](https://authtempo.com/docs/reference/errors/#role_not_found), [`conflict`](https://authtempo.com/docs/reference/errors/#conflict). A browser flow can get the code in the `auth_error` query parameter of a 302 in place of this answer.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "member_limit",
                        "role_not_found",
                        "conflict"
                      ]
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "The codes: [`rate_limited`](https://authtempo.com/docs/reference/errors/#rate_limited). A browser flow can get the code in the `auth_error` query parameter of a 302 in place of this answer.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "rate_limited"
                      ]
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "The codes: [`hook_failed`](https://authtempo.com/docs/reference/errors/#hook_failed), [`internal`](https://authtempo.com/docs/reference/errors/#internal). A browser flow can get the code in the `auth_error` query parameter of a 302 in place of this answer.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "hook_failed",
                        "internal"
                      ]
                    }
                  }
                }
              }
            }
          }
        },
        "security": []
      }
    },
    "/sso/{connectionId}/metadata": {
      "get": {
        "tags": [
          "sso"
        ],
        "summary": "GET /sso/:connectionId/metadata",
        "operationId": "get-sso-connectionid-metadata",
        "externalDocs": {
          "url": "https://authtempo.com/docs/reference/routes/#get-sso-connectionid-metadata"
        },
        "x-authtempo-feature": "sso",
        "x-authtempo-default": "off",
        "parameters": [
          {
            "name": "connectionId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^[A-Za-z0-9._:-]{1,128}$"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The SAML 2.0 metadata of the service provider of one connection.",
            "content": {
              "application/samlmetadata+xml": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "The codes: [`sso_not_configured`](https://authtempo.com/docs/reference/errors/#sso_not_configured), [`not_found`](https://authtempo.com/docs/reference/errors/#not_found).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "sso_not_configured",
                        "not_found"
                      ]
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "The codes: [`internal`](https://authtempo.com/docs/reference/errors/#internal).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "internal"
                      ]
                    }
                  }
                }
              }
            }
          }
        },
        "security": []
      }
    },
    "/sso/setup-links/create": {
      "post": {
        "tags": [
          "ssoSetup"
        ],
        "summary": "POST /sso/setup-links/create",
        "operationId": "post-sso-setup-links-create",
        "externalDocs": {
          "url": "https://authtempo.com/docs/reference/routes/#post-sso-setup-links-create"
        },
        "x-authtempo-feature": "ssoSetup",
        "x-authtempo-default": "off",
        "parameters": [
          {
            "name": "organizationId",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 64
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "steps": {
                    "minItems": 1,
                    "maxItems": 3,
                    "type": "array",
                    "items": {
                      "type": "string",
                      "enum": [
                        "domain",
                        "connection",
                        "directory"
                      ]
                    }
                  },
                  "kinds": {
                    "minItems": 1,
                    "maxItems": 2,
                    "type": "array",
                    "items": {
                      "type": "string",
                      "enum": [
                        "oidc",
                        "saml"
                      ]
                    }
                  },
                  "ttlHours": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 168
                  },
                  "note": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 80
                  }
                },
                "required": [
                  "steps",
                  "kinds",
                  "note"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The answer.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string"
                    },
                    "token": {
                      "type": "string"
                    },
                    "expiresAt": {
                      "type": "string",
                      "format": "date-time",
                      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                    }
                  },
                  "required": [
                    "id",
                    "token",
                    "expiresAt"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "The codes: [`invalid_body`](https://authtempo.com/docs/reference/errors/#invalid_body).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "invalid_body"
                      ]
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The codes: [`unauthorized`](https://authtempo.com/docs/reference/errors/#unauthorized).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "unauthorized"
                      ]
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "The codes: [`forbidden_rank`](https://authtempo.com/docs/reference/errors/#forbidden_rank), [`operator_required`](https://authtempo.com/docs/reference/errors/#operator_required), [`second_factor_required`](https://authtempo.com/docs/reference/errors/#second_factor_required), [`session_not_fresh`](https://authtempo.com/docs/reference/errors/#session_not_fresh), [`impersonation_session`](https://authtempo.com/docs/reference/errors/#impersonation_session), [`origin_not_trusted`](https://authtempo.com/docs/reference/errors/#origin_not_trusted).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "forbidden_rank",
                        "operator_required",
                        "second_factor_required",
                        "session_not_fresh",
                        "impersonation_session",
                        "origin_not_trusted"
                      ]
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "The codes: [`not_found`](https://authtempo.com/docs/reference/errors/#not_found).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "not_found"
                      ]
                    }
                  }
                }
              }
            }
          },
          "409": {
            "description": "The codes: [`setup_link_limit`](https://authtempo.com/docs/reference/errors/#setup_link_limit).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "setup_link_limit"
                      ]
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "The codes: [`rate_limited`](https://authtempo.com/docs/reference/errors/#rate_limited).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "rate_limited"
                      ]
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "The codes: [`internal`](https://authtempo.com/docs/reference/errors/#internal).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "internal"
                      ]
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "sessionCookie": []
          },
          {
            "sessionBearer": []
          }
        ]
      }
    },
    "/sso/setup-links/list": {
      "get": {
        "tags": [
          "ssoSetup"
        ],
        "summary": "GET /sso/setup-links/list",
        "operationId": "get-sso-setup-links-list",
        "externalDocs": {
          "url": "https://authtempo.com/docs/reference/routes/#get-sso-setup-links-list"
        },
        "x-authtempo-feature": "ssoSetup",
        "x-authtempo-default": "off",
        "parameters": [
          {
            "name": "organizationId",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 64
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The answer.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "links": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string"
                          },
                          "organizationId": {
                            "type": "string"
                          },
                          "hint": {
                            "type": "string"
                          },
                          "steps": {
                            "type": "array",
                            "items": {
                              "type": "string",
                              "enum": [
                                "domain",
                                "connection",
                                "directory"
                              ]
                            }
                          },
                          "kinds": {
                            "type": "array",
                            "items": {
                              "type": "string",
                              "enum": [
                                "oidc",
                                "saml"
                              ]
                            }
                          },
                          "note": {
                            "type": "string"
                          },
                          "createdBy": {
                            "type": "string"
                          },
                          "expiresAt": {
                            "type": "string",
                            "format": "date-time",
                            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                          },
                          "revokedAt": {
                            "anyOf": [
                              {
                                "type": "string",
                                "format": "date-time",
                                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "endedAt": {
                            "anyOf": [
                              {
                                "type": "string",
                                "format": "date-time",
                                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "openedAt": {
                            "anyOf": [
                              {
                                "type": "string",
                                "format": "date-time",
                                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "readyAt": {
                            "anyOf": [
                              {
                                "type": "string",
                                "format": "date-time",
                                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "createdAt": {
                            "type": "string",
                            "format": "date-time",
                            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                          }
                        },
                        "required": [
                          "id",
                          "organizationId",
                          "hint",
                          "steps",
                          "kinds",
                          "note",
                          "createdBy",
                          "expiresAt",
                          "revokedAt",
                          "endedAt",
                          "openedAt",
                          "readyAt",
                          "createdAt"
                        ],
                        "additionalProperties": false
                      }
                    }
                  },
                  "required": [
                    "links"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "The codes: [`invalid_body`](https://authtempo.com/docs/reference/errors/#invalid_body).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "invalid_body"
                      ]
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The codes: [`unauthorized`](https://authtempo.com/docs/reference/errors/#unauthorized).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "unauthorized"
                      ]
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "The codes: [`forbidden_rank`](https://authtempo.com/docs/reference/errors/#forbidden_rank), [`operator_required`](https://authtempo.com/docs/reference/errors/#operator_required), [`second_factor_required`](https://authtempo.com/docs/reference/errors/#second_factor_required), [`session_not_fresh`](https://authtempo.com/docs/reference/errors/#session_not_fresh), [`impersonation_session`](https://authtempo.com/docs/reference/errors/#impersonation_session).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "forbidden_rank",
                        "operator_required",
                        "second_factor_required",
                        "session_not_fresh",
                        "impersonation_session"
                      ]
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "The codes: [`not_found`](https://authtempo.com/docs/reference/errors/#not_found).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "not_found"
                      ]
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "The codes: [`rate_limited`](https://authtempo.com/docs/reference/errors/#rate_limited).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "rate_limited"
                      ]
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "The codes: [`internal`](https://authtempo.com/docs/reference/errors/#internal).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "internal"
                      ]
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "sessionCookie": []
          },
          {
            "sessionBearer": []
          }
        ]
      }
    },
    "/sso/setup-links/get": {
      "get": {
        "tags": [
          "ssoSetup"
        ],
        "summary": "GET /sso/setup-links/get",
        "operationId": "get-sso-setup-links-get",
        "externalDocs": {
          "url": "https://authtempo.com/docs/reference/routes/#get-sso-setup-links-get"
        },
        "x-authtempo-feature": "ssoSetup",
        "x-authtempo-default": "off",
        "parameters": [
          {
            "name": "id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 64
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The answer.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "link": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string"
                        },
                        "organizationId": {
                          "type": "string"
                        },
                        "hint": {
                          "type": "string"
                        },
                        "steps": {
                          "type": "array",
                          "items": {
                            "type": "string",
                            "enum": [
                              "domain",
                              "connection",
                              "directory"
                            ]
                          }
                        },
                        "kinds": {
                          "type": "array",
                          "items": {
                            "type": "string",
                            "enum": [
                              "oidc",
                              "saml"
                            ]
                          }
                        },
                        "note": {
                          "type": "string"
                        },
                        "createdBy": {
                          "type": "string"
                        },
                        "expiresAt": {
                          "type": "string",
                          "format": "date-time",
                          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                        },
                        "revokedAt": {
                          "anyOf": [
                            {
                              "type": "string",
                              "format": "date-time",
                              "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "endedAt": {
                          "anyOf": [
                            {
                              "type": "string",
                              "format": "date-time",
                              "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "openedAt": {
                          "anyOf": [
                            {
                              "type": "string",
                              "format": "date-time",
                              "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "readyAt": {
                          "anyOf": [
                            {
                              "type": "string",
                              "format": "date-time",
                              "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "createdAt": {
                          "type": "string",
                          "format": "date-time",
                          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                        }
                      },
                      "required": [
                        "id",
                        "organizationId",
                        "hint",
                        "steps",
                        "kinds",
                        "note",
                        "createdBy",
                        "expiresAt",
                        "revokedAt",
                        "endedAt",
                        "openedAt",
                        "readyAt",
                        "createdAt"
                      ],
                      "additionalProperties": false
                    },
                    "preview": {
                      "anyOf": [
                        {
                          "type": "object",
                          "properties": {
                            "kind": {
                              "type": "string",
                              "enum": [
                                "oidc",
                                "saml"
                              ]
                            },
                            "version": {
                              "type": "integer",
                              "minimum": -9007199254740991,
                              "maximum": 9007199254740991
                            },
                            "issuerOrEntityId": {
                              "type": "string"
                            },
                            "signInHost": {
                              "type": "string"
                            },
                            "fingerprints": {
                              "type": "array",
                              "items": {
                                "type": "string"
                              }
                            },
                            "domains": {
                              "type": "array",
                              "items": {
                                "type": "string"
                              }
                            },
                            "scim": {
                              "anyOf": [
                                {
                                  "type": "object",
                                  "properties": {
                                    "name": {
                                      "type": "string"
                                    },
                                    "scopes": {
                                      "type": "array",
                                      "items": {
                                        "type": "string"
                                      }
                                    }
                                  },
                                  "required": [
                                    "name",
                                    "scopes"
                                  ],
                                  "additionalProperties": false
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            }
                          },
                          "required": [
                            "kind",
                            "version",
                            "issuerOrEntityId",
                            "signInHost",
                            "fingerprints",
                            "domains",
                            "scim"
                          ],
                          "additionalProperties": false
                        },
                        {
                          "type": "null"
                        }
                      ]
                    }
                  },
                  "required": [
                    "link",
                    "preview"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "The codes: [`invalid_body`](https://authtempo.com/docs/reference/errors/#invalid_body).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "invalid_body"
                      ]
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The codes: [`unauthorized`](https://authtempo.com/docs/reference/errors/#unauthorized).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "unauthorized"
                      ]
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "The codes: [`forbidden_rank`](https://authtempo.com/docs/reference/errors/#forbidden_rank), [`operator_required`](https://authtempo.com/docs/reference/errors/#operator_required), [`second_factor_required`](https://authtempo.com/docs/reference/errors/#second_factor_required), [`session_not_fresh`](https://authtempo.com/docs/reference/errors/#session_not_fresh), [`impersonation_session`](https://authtempo.com/docs/reference/errors/#impersonation_session).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "forbidden_rank",
                        "operator_required",
                        "second_factor_required",
                        "session_not_fresh",
                        "impersonation_session"
                      ]
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "The codes: [`setup_link_invalid`](https://authtempo.com/docs/reference/errors/#setup_link_invalid), [`not_found`](https://authtempo.com/docs/reference/errors/#not_found).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "setup_link_invalid",
                        "not_found"
                      ]
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "The codes: [`rate_limited`](https://authtempo.com/docs/reference/errors/#rate_limited).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "rate_limited"
                      ]
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "The codes: [`internal`](https://authtempo.com/docs/reference/errors/#internal).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "internal"
                      ]
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "sessionCookie": []
          },
          {
            "sessionBearer": []
          }
        ]
      }
    },
    "/sso/setup-links/revoke": {
      "post": {
        "tags": [
          "ssoSetup"
        ],
        "summary": "POST /sso/setup-links/revoke",
        "operationId": "post-sso-setup-links-revoke",
        "externalDocs": {
          "url": "https://authtempo.com/docs/reference/routes/#post-sso-setup-links-revoke"
        },
        "x-authtempo-feature": "ssoSetup",
        "x-authtempo-default": "off",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64
                  }
                },
                "required": [
                  "id"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The answer.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OkAnswer"
                }
              }
            }
          },
          "400": {
            "description": "The codes: [`invalid_body`](https://authtempo.com/docs/reference/errors/#invalid_body).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "invalid_body"
                      ]
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The codes: [`unauthorized`](https://authtempo.com/docs/reference/errors/#unauthorized).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "unauthorized"
                      ]
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "The codes: [`forbidden_rank`](https://authtempo.com/docs/reference/errors/#forbidden_rank), [`operator_required`](https://authtempo.com/docs/reference/errors/#operator_required), [`second_factor_required`](https://authtempo.com/docs/reference/errors/#second_factor_required), [`session_not_fresh`](https://authtempo.com/docs/reference/errors/#session_not_fresh), [`impersonation_session`](https://authtempo.com/docs/reference/errors/#impersonation_session), [`origin_not_trusted`](https://authtempo.com/docs/reference/errors/#origin_not_trusted).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "forbidden_rank",
                        "operator_required",
                        "second_factor_required",
                        "session_not_fresh",
                        "impersonation_session",
                        "origin_not_trusted"
                      ]
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "The codes: [`setup_link_invalid`](https://authtempo.com/docs/reference/errors/#setup_link_invalid), [`not_found`](https://authtempo.com/docs/reference/errors/#not_found).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "setup_link_invalid",
                        "not_found"
                      ]
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "The codes: [`rate_limited`](https://authtempo.com/docs/reference/errors/#rate_limited).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "rate_limited"
                      ]
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "The codes: [`internal`](https://authtempo.com/docs/reference/errors/#internal).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "internal"
                      ]
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "sessionCookie": []
          },
          {
            "sessionBearer": []
          }
        ]
      }
    },
    "/sso/setup-links/activate": {
      "post": {
        "tags": [
          "ssoSetup"
        ],
        "summary": "POST /sso/setup-links/activate",
        "operationId": "post-sso-setup-links-activate",
        "externalDocs": {
          "url": "https://authtempo.com/docs/reference/routes/#post-sso-setup-links-activate"
        },
        "x-authtempo-feature": "ssoSetup",
        "x-authtempo-default": "off",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64
                  },
                  "version": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 9007199254740991
                  }
                },
                "required": [
                  "id",
                  "version"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The answer.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "connection": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string"
                        },
                        "organizationId": {
                          "type": "string"
                        },
                        "kind": {
                          "type": "string",
                          "enum": [
                            "oidc",
                            "saml"
                          ]
                        },
                        "label": {
                          "type": "string"
                        },
                        "enabled": {
                          "type": "boolean"
                        },
                        "draft": {
                          "type": "boolean"
                        },
                        "jit": {
                          "type": "boolean"
                        },
                        "defaultRole": {
                          "type": "string"
                        },
                        "mfa": {
                          "anyOf": [
                            {
                              "type": "object",
                              "properties": {
                                "amr": {
                                  "type": "array",
                                  "items": {
                                    "type": "string"
                                  }
                                },
                                "acr": {
                                  "type": "array",
                                  "items": {
                                    "type": "string"
                                  }
                                },
                                "authnContext": {
                                  "type": "array",
                                  "items": {
                                    "type": "string"
                                  }
                                }
                              },
                              "required": [
                                "amr",
                                "acr",
                                "authnContext"
                              ],
                              "additionalProperties": false
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "scimRoles": {
                          "anyOf": [
                            {
                              "type": "object",
                              "propertyNames": {
                                "type": "string"
                              },
                              "additionalProperties": {
                                "type": "string"
                              }
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "oidc": {
                          "type": "object",
                          "properties": {
                            "issuer": {
                              "type": "string"
                            },
                            "clientId": {
                              "type": "string"
                            },
                            "scope": {
                              "type": "string"
                            },
                            "endpoints": {
                              "anyOf": [
                                {
                                  "type": "object",
                                  "properties": {
                                    "authorizeUrl": {
                                      "type": "string"
                                    },
                                    "tokenUrl": {
                                      "type": "string"
                                    },
                                    "jwksUrl": {
                                      "type": "string"
                                    }
                                  },
                                  "required": [
                                    "authorizeUrl",
                                    "tokenUrl",
                                    "jwksUrl"
                                  ],
                                  "additionalProperties": false
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "tokenEndpointAuthMethod": {
                              "type": "string",
                              "enum": [
                                "client_secret_post",
                                "client_secret_basic"
                              ]
                            }
                          },
                          "required": [
                            "issuer",
                            "clientId",
                            "scope",
                            "endpoints",
                            "tokenEndpointAuthMethod"
                          ],
                          "additionalProperties": false
                        },
                        "saml": {
                          "type": "object",
                          "properties": {
                            "idpEntityId": {
                              "type": "string"
                            },
                            "ssoUrl": {
                              "type": "string"
                            },
                            "certificates": {
                              "type": "array",
                              "items": {
                                "type": "object",
                                "properties": {
                                  "notAfter": {
                                    "type": "string",
                                    "format": "date-time",
                                    "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                                  }
                                },
                                "required": [
                                  "notAfter"
                                ],
                                "additionalProperties": false
                              }
                            },
                            "subjectAttribute": {
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "attributes": {
                              "type": "object",
                              "properties": {
                                "email": {
                                  "type": "string"
                                },
                                "name": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                }
                              },
                              "required": [
                                "email",
                                "name"
                              ],
                              "additionalProperties": false
                            },
                            "spEntityId": {
                              "type": "string"
                            },
                            "acsUrl": {
                              "type": "string"
                            }
                          },
                          "required": [
                            "idpEntityId",
                            "ssoUrl",
                            "certificates",
                            "subjectAttribute",
                            "attributes",
                            "spEntityId",
                            "acsUrl"
                          ],
                          "additionalProperties": false
                        },
                        "createdAt": {
                          "type": "string",
                          "format": "date-time",
                          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                        },
                        "updatedAt": {
                          "type": "string",
                          "format": "date-time",
                          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                        }
                      },
                      "required": [
                        "id",
                        "organizationId",
                        "kind",
                        "label",
                        "enabled",
                        "draft",
                        "jit",
                        "defaultRole",
                        "mfa",
                        "scimRoles",
                        "createdAt",
                        "updatedAt"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "required": [
                    "connection"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "The codes: [`invalid_body`](https://authtempo.com/docs/reference/errors/#invalid_body).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "invalid_body"
                      ]
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The codes: [`unauthorized`](https://authtempo.com/docs/reference/errors/#unauthorized).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "unauthorized"
                      ]
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "The codes: [`forbidden_rank`](https://authtempo.com/docs/reference/errors/#forbidden_rank), [`operator_required`](https://authtempo.com/docs/reference/errors/#operator_required), [`second_factor_required`](https://authtempo.com/docs/reference/errors/#second_factor_required), [`session_not_fresh`](https://authtempo.com/docs/reference/errors/#session_not_fresh), [`impersonation_session`](https://authtempo.com/docs/reference/errors/#impersonation_session), [`origin_not_trusted`](https://authtempo.com/docs/reference/errors/#origin_not_trusted).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "forbidden_rank",
                        "operator_required",
                        "second_factor_required",
                        "session_not_fresh",
                        "impersonation_session",
                        "origin_not_trusted"
                      ]
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "The codes: [`setup_link_invalid`](https://authtempo.com/docs/reference/errors/#setup_link_invalid), [`not_found`](https://authtempo.com/docs/reference/errors/#not_found).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "setup_link_invalid",
                        "not_found"
                      ]
                    }
                  }
                }
              }
            }
          },
          "409": {
            "description": "The codes: [`setup_not_tested`](https://authtempo.com/docs/reference/errors/#setup_not_tested), [`conflict`](https://authtempo.com/docs/reference/errors/#conflict).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "setup_not_tested",
                        "conflict"
                      ]
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "The codes: [`rate_limited`](https://authtempo.com/docs/reference/errors/#rate_limited).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "rate_limited"
                      ]
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "The codes: [`internal`](https://authtempo.com/docs/reference/errors/#internal).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "internal"
                      ]
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "sessionCookie": []
          },
          {
            "sessionBearer": []
          }
        ]
      }
    },
    "/sso/setup": {
      "get": {
        "tags": [
          "ssoSetup"
        ],
        "summary": "GET /sso/setup",
        "operationId": "get-sso-setup",
        "externalDocs": {
          "url": "https://authtempo.com/docs/reference/routes/#get-sso-setup"
        },
        "x-authtempo-feature": "ssoSetup",
        "x-authtempo-default": "off",
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 256
            }
          }
        ],
        "responses": {
          "200": {
            "description": "A page of core.",
            "content": {
              "text/html": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "description": "The codes: [`invalid_body`](https://authtempo.com/docs/reference/errors/#invalid_body).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "invalid_body"
                      ]
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "The codes: [`impersonation_session`](https://authtempo.com/docs/reference/errors/#impersonation_session).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "impersonation_session"
                      ]
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "The codes: [`setup_link_invalid`](https://authtempo.com/docs/reference/errors/#setup_link_invalid), [`not_found`](https://authtempo.com/docs/reference/errors/#not_found).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "setup_link_invalid",
                        "not_found"
                      ]
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "The codes: [`rate_limited`](https://authtempo.com/docs/reference/errors/#rate_limited).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "rate_limited"
                      ]
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "The codes: [`internal`](https://authtempo.com/docs/reference/errors/#internal).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "internal"
                      ]
                    }
                  }
                }
              }
            }
          }
        },
        "security": []
      }
    },
    "/sso/setup/open": {
      "post": {
        "tags": [
          "ssoSetup"
        ],
        "summary": "POST /sso/setup/open",
        "operationId": "post-sso-setup-open",
        "externalDocs": {
          "url": "https://authtempo.com/docs/reference/routes/#post-sso-setup-open"
        },
        "x-authtempo-feature": "ssoSetup",
        "x-authtempo-default": "off",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "token": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 256
                  }
                },
                "required": [
                  "token"
                ],
                "additionalProperties": false
              }
            },
            "application/x-www-form-urlencoded": {
              "schema": {
                "type": "object",
                "properties": {
                  "token": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 256
                  }
                },
                "required": [
                  "token"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The answer. A page of core.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "linkId": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "linkId"
                  ],
                  "additionalProperties": false
                }
              },
              "text/html": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "description": "The codes: [`invalid_body`](https://authtempo.com/docs/reference/errors/#invalid_body).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "invalid_body"
                      ]
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "The codes: [`impersonation_session`](https://authtempo.com/docs/reference/errors/#impersonation_session), [`origin_not_trusted`](https://authtempo.com/docs/reference/errors/#origin_not_trusted).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "impersonation_session",
                        "origin_not_trusted"
                      ]
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "The codes: [`setup_link_invalid`](https://authtempo.com/docs/reference/errors/#setup_link_invalid), [`not_found`](https://authtempo.com/docs/reference/errors/#not_found).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "setup_link_invalid",
                        "not_found"
                      ]
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "The codes: [`rate_limited`](https://authtempo.com/docs/reference/errors/#rate_limited).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "rate_limited"
                      ]
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "The codes: [`internal`](https://authtempo.com/docs/reference/errors/#internal).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "internal"
                      ]
                    }
                  }
                }
              }
            }
          }
        },
        "security": []
      }
    },
    "/sso/setup/domains/add": {
      "post": {
        "tags": [
          "ssoSetup"
        ],
        "summary": "POST /sso/setup/domains/add",
        "operationId": "post-sso-setup-domains-add",
        "externalDocs": {
          "url": "https://authtempo.com/docs/reference/routes/#post-sso-setup-domains-add"
        },
        "x-authtempo-feature": "ssoSetup",
        "x-authtempo-default": "off",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "domain": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 253
                  }
                },
                "required": [
                  "domain"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The answer.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "domain": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string"
                        },
                        "organizationId": {
                          "type": "string"
                        },
                        "domain": {
                          "type": "string"
                        },
                        "record": {
                          "anyOf": [
                            {
                              "type": "object",
                              "properties": {
                                "name": {
                                  "type": "string"
                                },
                                "type": {
                                  "type": "string",
                                  "const": "TXT"
                                },
                                "value": {
                                  "type": "string"
                                }
                              },
                              "required": [
                                "name",
                                "type",
                                "value"
                              ],
                              "additionalProperties": false
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "verified": {
                          "type": "boolean"
                        },
                        "verifiedAt": {
                          "anyOf": [
                            {
                              "type": "string",
                              "format": "date-time",
                              "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "checkedAt": {
                          "anyOf": [
                            {
                              "type": "string",
                              "format": "date-time",
                              "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "connectionId": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "enforce": {
                          "type": "boolean"
                        },
                        "includeSubdomains": {
                          "type": "boolean"
                        },
                        "expiresAt": {
                          "anyOf": [
                            {
                              "type": "string",
                              "format": "date-time",
                              "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        }
                      },
                      "required": [
                        "id",
                        "organizationId",
                        "domain",
                        "record",
                        "verified",
                        "verifiedAt",
                        "checkedAt",
                        "connectionId",
                        "enforce",
                        "includeSubdomains",
                        "expiresAt"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "required": [
                    "domain"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "The codes: [`invalid_body`](https://authtempo.com/docs/reference/errors/#invalid_body).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "invalid_body"
                      ]
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The codes: [`unauthorized`](https://authtempo.com/docs/reference/errors/#unauthorized).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "unauthorized"
                      ]
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "The codes: [`impersonation_session`](https://authtempo.com/docs/reference/errors/#impersonation_session), [`origin_not_trusted`](https://authtempo.com/docs/reference/errors/#origin_not_trusted).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "impersonation_session",
                        "origin_not_trusted"
                      ]
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "The codes: [`not_found`](https://authtempo.com/docs/reference/errors/#not_found).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "not_found"
                      ]
                    }
                  }
                }
              }
            }
          },
          "409": {
            "description": "The codes: [`domain_limit`](https://authtempo.com/docs/reference/errors/#domain_limit), [`conflict`](https://authtempo.com/docs/reference/errors/#conflict).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "domain_limit",
                        "conflict"
                      ]
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "The codes: [`rate_limited`](https://authtempo.com/docs/reference/errors/#rate_limited).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "rate_limited"
                      ]
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "The codes: [`internal`](https://authtempo.com/docs/reference/errors/#internal).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "internal"
                      ]
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "setupCookie": []
          }
        ]
      }
    },
    "/sso/setup/domains/verify": {
      "post": {
        "tags": [
          "ssoSetup"
        ],
        "summary": "POST /sso/setup/domains/verify",
        "operationId": "post-sso-setup-domains-verify",
        "externalDocs": {
          "url": "https://authtempo.com/docs/reference/routes/#post-sso-setup-domains-verify"
        },
        "x-authtempo-feature": "ssoSetup",
        "x-authtempo-default": "off",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64
                  }
                },
                "required": [
                  "id"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The answer.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "domain": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string"
                        },
                        "organizationId": {
                          "type": "string"
                        },
                        "domain": {
                          "type": "string"
                        },
                        "record": {
                          "anyOf": [
                            {
                              "type": "object",
                              "properties": {
                                "name": {
                                  "type": "string"
                                },
                                "type": {
                                  "type": "string",
                                  "const": "TXT"
                                },
                                "value": {
                                  "type": "string"
                                }
                              },
                              "required": [
                                "name",
                                "type",
                                "value"
                              ],
                              "additionalProperties": false
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "verified": {
                          "type": "boolean"
                        },
                        "verifiedAt": {
                          "anyOf": [
                            {
                              "type": "string",
                              "format": "date-time",
                              "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "checkedAt": {
                          "anyOf": [
                            {
                              "type": "string",
                              "format": "date-time",
                              "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "connectionId": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "enforce": {
                          "type": "boolean"
                        },
                        "includeSubdomains": {
                          "type": "boolean"
                        },
                        "expiresAt": {
                          "anyOf": [
                            {
                              "type": "string",
                              "format": "date-time",
                              "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        }
                      },
                      "required": [
                        "id",
                        "organizationId",
                        "domain",
                        "record",
                        "verified",
                        "verifiedAt",
                        "checkedAt",
                        "connectionId",
                        "enforce",
                        "includeSubdomains",
                        "expiresAt"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "required": [
                    "domain"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "The codes: [`invalid_body`](https://authtempo.com/docs/reference/errors/#invalid_body), [`token_expired`](https://authtempo.com/docs/reference/errors/#token_expired), [`domain_unverified`](https://authtempo.com/docs/reference/errors/#domain_unverified).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "invalid_body",
                        "token_expired",
                        "domain_unverified"
                      ]
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The codes: [`unauthorized`](https://authtempo.com/docs/reference/errors/#unauthorized).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "unauthorized"
                      ]
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "The codes: [`impersonation_session`](https://authtempo.com/docs/reference/errors/#impersonation_session), [`origin_not_trusted`](https://authtempo.com/docs/reference/errors/#origin_not_trusted).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "impersonation_session",
                        "origin_not_trusted"
                      ]
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "The codes: [`not_found`](https://authtempo.com/docs/reference/errors/#not_found).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "not_found"
                      ]
                    }
                  }
                }
              }
            }
          },
          "409": {
            "description": "The codes: [`domain_taken`](https://authtempo.com/docs/reference/errors/#domain_taken).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "domain_taken"
                      ]
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "The codes: [`rate_limited`](https://authtempo.com/docs/reference/errors/#rate_limited).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "rate_limited"
                      ]
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "The codes: [`internal`](https://authtempo.com/docs/reference/errors/#internal).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "internal"
                      ]
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "setupCookie": []
          }
        ]
      }
    },
    "/sso/setup/connection": {
      "post": {
        "tags": [
          "ssoSetup"
        ],
        "summary": "POST /sso/setup/connection",
        "operationId": "post-sso-setup-connection",
        "externalDocs": {
          "url": "https://authtempo.com/docs/reference/routes/#post-sso-setup-connection"
        },
        "x-authtempo-feature": "ssoSetup",
        "x-authtempo-default": "off",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "kind": {
                    "type": "string",
                    "enum": [
                      "oidc",
                      "saml"
                    ]
                  },
                  "label": {
                    "type": "string",
                    "maxLength": 4096
                  },
                  "issuer": {
                    "type": "string",
                    "maxLength": 4096
                  },
                  "clientId": {
                    "type": "string",
                    "maxLength": 4096
                  },
                  "clientSecret": {
                    "type": "string",
                    "maxLength": 4096
                  },
                  "scope": {
                    "type": "string",
                    "maxLength": 4096
                  },
                  "endpoints": {
                    "anyOf": [
                      {
                        "type": "object",
                        "properties": {
                          "authorizeUrl": {
                            "type": "string",
                            "maxLength": 4096
                          },
                          "tokenUrl": {
                            "type": "string",
                            "maxLength": 4096
                          },
                          "jwksUrl": {
                            "type": "string",
                            "maxLength": 4096
                          }
                        },
                        "required": [
                          "authorizeUrl",
                          "tokenUrl",
                          "jwksUrl"
                        ],
                        "additionalProperties": false
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "tokenEndpointAuthMethod": {
                    "type": "string",
                    "enum": [
                      "client_secret_post",
                      "client_secret_basic"
                    ]
                  },
                  "idpMetadata": {
                    "type": "string",
                    "maxLength": 200000
                  },
                  "idpEntityId": {
                    "type": "string",
                    "maxLength": 4096
                  },
                  "ssoUrl": {
                    "type": "string",
                    "maxLength": 4096
                  },
                  "certificates": {
                    "maxItems": 8,
                    "type": "array",
                    "items": {
                      "type": "string",
                      "maxLength": 65536
                    }
                  },
                  "subjectAttribute": {
                    "anyOf": [
                      {
                        "type": "string",
                        "maxLength": 4096
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "attributes": {
                    "type": "object",
                    "properties": {
                      "email": {
                        "type": "string",
                        "maxLength": 4096
                      },
                      "name": {
                        "anyOf": [
                          {
                            "type": "string",
                            "maxLength": 4096
                          },
                          {
                            "type": "null"
                          }
                        ]
                      }
                    },
                    "required": [
                      "email"
                    ],
                    "additionalProperties": false
                  }
                },
                "required": [
                  "kind",
                  "label"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The answer.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "connection": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string"
                        },
                        "organizationId": {
                          "type": "string"
                        },
                        "kind": {
                          "type": "string",
                          "enum": [
                            "oidc",
                            "saml"
                          ]
                        },
                        "label": {
                          "type": "string"
                        },
                        "enabled": {
                          "type": "boolean"
                        },
                        "draft": {
                          "type": "boolean"
                        },
                        "jit": {
                          "type": "boolean"
                        },
                        "defaultRole": {
                          "type": "string"
                        },
                        "mfa": {
                          "anyOf": [
                            {
                              "type": "object",
                              "properties": {
                                "amr": {
                                  "type": "array",
                                  "items": {
                                    "type": "string"
                                  }
                                },
                                "acr": {
                                  "type": "array",
                                  "items": {
                                    "type": "string"
                                  }
                                },
                                "authnContext": {
                                  "type": "array",
                                  "items": {
                                    "type": "string"
                                  }
                                }
                              },
                              "required": [
                                "amr",
                                "acr",
                                "authnContext"
                              ],
                              "additionalProperties": false
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "scimRoles": {
                          "anyOf": [
                            {
                              "type": "object",
                              "propertyNames": {
                                "type": "string"
                              },
                              "additionalProperties": {
                                "type": "string"
                              }
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "oidc": {
                          "type": "object",
                          "properties": {
                            "issuer": {
                              "type": "string"
                            },
                            "clientId": {
                              "type": "string"
                            },
                            "scope": {
                              "type": "string"
                            },
                            "endpoints": {
                              "anyOf": [
                                {
                                  "type": "object",
                                  "properties": {
                                    "authorizeUrl": {
                                      "type": "string"
                                    },
                                    "tokenUrl": {
                                      "type": "string"
                                    },
                                    "jwksUrl": {
                                      "type": "string"
                                    }
                                  },
                                  "required": [
                                    "authorizeUrl",
                                    "tokenUrl",
                                    "jwksUrl"
                                  ],
                                  "additionalProperties": false
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "tokenEndpointAuthMethod": {
                              "type": "string",
                              "enum": [
                                "client_secret_post",
                                "client_secret_basic"
                              ]
                            }
                          },
                          "required": [
                            "issuer",
                            "clientId",
                            "scope",
                            "endpoints",
                            "tokenEndpointAuthMethod"
                          ],
                          "additionalProperties": false
                        },
                        "saml": {
                          "type": "object",
                          "properties": {
                            "idpEntityId": {
                              "type": "string"
                            },
                            "ssoUrl": {
                              "type": "string"
                            },
                            "certificates": {
                              "type": "array",
                              "items": {
                                "type": "object",
                                "properties": {
                                  "notAfter": {
                                    "type": "string",
                                    "format": "date-time",
                                    "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                                  }
                                },
                                "required": [
                                  "notAfter"
                                ],
                                "additionalProperties": false
                              }
                            },
                            "subjectAttribute": {
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "attributes": {
                              "type": "object",
                              "properties": {
                                "email": {
                                  "type": "string"
                                },
                                "name": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                }
                              },
                              "required": [
                                "email",
                                "name"
                              ],
                              "additionalProperties": false
                            },
                            "spEntityId": {
                              "type": "string"
                            },
                            "acsUrl": {
                              "type": "string"
                            }
                          },
                          "required": [
                            "idpEntityId",
                            "ssoUrl",
                            "certificates",
                            "subjectAttribute",
                            "attributes",
                            "spEntityId",
                            "acsUrl"
                          ],
                          "additionalProperties": false
                        },
                        "createdAt": {
                          "type": "string",
                          "format": "date-time",
                          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                        },
                        "updatedAt": {
                          "type": "string",
                          "format": "date-time",
                          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                        }
                      },
                      "required": [
                        "id",
                        "organizationId",
                        "kind",
                        "label",
                        "enabled",
                        "draft",
                        "jit",
                        "defaultRole",
                        "mfa",
                        "scimRoles",
                        "createdAt",
                        "updatedAt"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "required": [
                    "connection"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "The codes: [`invalid_body`](https://authtempo.com/docs/reference/errors/#invalid_body).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "invalid_body"
                      ]
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The codes: [`unauthorized`](https://authtempo.com/docs/reference/errors/#unauthorized).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "unauthorized"
                      ]
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "The codes: [`impersonation_session`](https://authtempo.com/docs/reference/errors/#impersonation_session), [`origin_not_trusted`](https://authtempo.com/docs/reference/errors/#origin_not_trusted).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "impersonation_session",
                        "origin_not_trusted"
                      ]
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "The codes: [`not_found`](https://authtempo.com/docs/reference/errors/#not_found).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "not_found"
                      ]
                    }
                  }
                }
              }
            }
          },
          "409": {
            "description": "The codes: [`conflict`](https://authtempo.com/docs/reference/errors/#conflict).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "conflict"
                      ]
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "The codes: [`rate_limited`](https://authtempo.com/docs/reference/errors/#rate_limited).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "rate_limited"
                      ]
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "The codes: [`internal`](https://authtempo.com/docs/reference/errors/#internal).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "internal"
                      ]
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "setupCookie": []
          }
        ]
      }
    },
    "/sso/setup/scim-token": {
      "post": {
        "tags": [
          "ssoSetup"
        ],
        "summary": "POST /sso/setup/scim-token",
        "operationId": "post-sso-setup-scim-token",
        "externalDocs": {
          "url": "https://authtempo.com/docs/reference/routes/#post-sso-setup-scim-token"
        },
        "x-authtempo-feature": "ssoSetup",
        "x-authtempo-default": "off",
        "responses": {
          "200": {
            "description": "The answer.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string"
                    },
                    "token": {
                      "type": "string"
                    },
                    "scimBaseUrl": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "id",
                    "token",
                    "scimBaseUrl"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "401": {
            "description": "The codes: [`unauthorized`](https://authtempo.com/docs/reference/errors/#unauthorized).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "unauthorized"
                      ]
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "The codes: [`impersonation_session`](https://authtempo.com/docs/reference/errors/#impersonation_session), [`origin_not_trusted`](https://authtempo.com/docs/reference/errors/#origin_not_trusted).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "impersonation_session",
                        "origin_not_trusted"
                      ]
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "The codes: [`not_found`](https://authtempo.com/docs/reference/errors/#not_found).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "not_found"
                      ]
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "The codes: [`rate_limited`](https://authtempo.com/docs/reference/errors/#rate_limited).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "rate_limited"
                      ]
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "The codes: [`internal`](https://authtempo.com/docs/reference/errors/#internal).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "internal"
                      ]
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "setupCookie": []
          }
        ]
      }
    },
    "/sso/setup/handback": {
      "post": {
        "tags": [
          "ssoSetup"
        ],
        "summary": "POST /sso/setup/handback",
        "operationId": "post-sso-setup-handback",
        "externalDocs": {
          "url": "https://authtempo.com/docs/reference/routes/#post-sso-setup-handback"
        },
        "x-authtempo-feature": "ssoSetup",
        "x-authtempo-default": "off",
        "responses": {
          "200": {
            "description": "The answer.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OkAnswer"
                }
              }
            }
          },
          "401": {
            "description": "The codes: [`unauthorized`](https://authtempo.com/docs/reference/errors/#unauthorized).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "unauthorized"
                      ]
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "The codes: [`impersonation_session`](https://authtempo.com/docs/reference/errors/#impersonation_session), [`origin_not_trusted`](https://authtempo.com/docs/reference/errors/#origin_not_trusted).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "impersonation_session",
                        "origin_not_trusted"
                      ]
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "The codes: [`not_found`](https://authtempo.com/docs/reference/errors/#not_found).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "not_found"
                      ]
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "The codes: [`internal`](https://authtempo.com/docs/reference/errors/#internal).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "internal"
                      ]
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "setupCookie": []
          }
        ]
      }
    },
    "/sso/setup/status": {
      "get": {
        "tags": [
          "ssoSetup"
        ],
        "summary": "GET /sso/setup/status",
        "operationId": "get-sso-setup-status",
        "externalDocs": {
          "url": "https://authtempo.com/docs/reference/routes/#get-sso-setup-status"
        },
        "x-authtempo-feature": "ssoSetup",
        "x-authtempo-default": "off",
        "parameters": [
          {
            "name": "run",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 64
            }
          },
          {
            "name": "step",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "idp",
                "domain",
                "connect",
                "test",
                "directory",
                "handback",
                "confirm"
              ]
            }
          },
          {
            "name": "idp",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 40
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The answer. A page of core.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "link": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string"
                        },
                        "steps": {
                          "type": "array",
                          "items": {
                            "type": "string",
                            "enum": [
                              "domain",
                              "connection",
                              "directory"
                            ]
                          }
                        },
                        "kinds": {
                          "type": "array",
                          "items": {
                            "type": "string",
                            "enum": [
                              "oidc",
                              "saml"
                            ]
                          }
                        },
                        "note": {
                          "type": "string"
                        },
                        "expiresAt": {
                          "type": "string",
                          "format": "date-time",
                          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                        },
                        "readyAt": {
                          "anyOf": [
                            {
                              "type": "string",
                              "format": "date-time",
                              "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        }
                      },
                      "required": [
                        "id",
                        "steps",
                        "kinds",
                        "note",
                        "expiresAt",
                        "readyAt"
                      ],
                      "additionalProperties": false
                    },
                    "domains": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string"
                          },
                          "organizationId": {
                            "type": "string"
                          },
                          "domain": {
                            "type": "string"
                          },
                          "record": {
                            "anyOf": [
                              {
                                "type": "object",
                                "properties": {
                                  "name": {
                                    "type": "string"
                                  },
                                  "type": {
                                    "type": "string",
                                    "const": "TXT"
                                  },
                                  "value": {
                                    "type": "string"
                                  }
                                },
                                "required": [
                                  "name",
                                  "type",
                                  "value"
                                ],
                                "additionalProperties": false
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "verified": {
                            "type": "boolean"
                          },
                          "verifiedAt": {
                            "anyOf": [
                              {
                                "type": "string",
                                "format": "date-time",
                                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "checkedAt": {
                            "anyOf": [
                              {
                                "type": "string",
                                "format": "date-time",
                                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "connectionId": {
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "enforce": {
                            "type": "boolean"
                          },
                          "includeSubdomains": {
                            "type": "boolean"
                          },
                          "expiresAt": {
                            "anyOf": [
                              {
                                "type": "string",
                                "format": "date-time",
                                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          }
                        },
                        "required": [
                          "id",
                          "organizationId",
                          "domain",
                          "record",
                          "verified",
                          "verifiedAt",
                          "checkedAt",
                          "connectionId",
                          "enforce",
                          "includeSubdomains",
                          "expiresAt"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "connection": {
                      "anyOf": [
                        {
                          "type": "object",
                          "properties": {
                            "id": {
                              "type": "string"
                            },
                            "organizationId": {
                              "type": "string"
                            },
                            "kind": {
                              "type": "string",
                              "enum": [
                                "oidc",
                                "saml"
                              ]
                            },
                            "label": {
                              "type": "string"
                            },
                            "enabled": {
                              "type": "boolean"
                            },
                            "draft": {
                              "type": "boolean"
                            },
                            "jit": {
                              "type": "boolean"
                            },
                            "defaultRole": {
                              "type": "string"
                            },
                            "mfa": {
                              "anyOf": [
                                {
                                  "type": "object",
                                  "properties": {
                                    "amr": {
                                      "type": "array",
                                      "items": {
                                        "type": "string"
                                      }
                                    },
                                    "acr": {
                                      "type": "array",
                                      "items": {
                                        "type": "string"
                                      }
                                    },
                                    "authnContext": {
                                      "type": "array",
                                      "items": {
                                        "type": "string"
                                      }
                                    }
                                  },
                                  "required": [
                                    "amr",
                                    "acr",
                                    "authnContext"
                                  ],
                                  "additionalProperties": false
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "scimRoles": {
                              "anyOf": [
                                {
                                  "type": "object",
                                  "propertyNames": {
                                    "type": "string"
                                  },
                                  "additionalProperties": {
                                    "type": "string"
                                  }
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "oidc": {
                              "type": "object",
                              "properties": {
                                "issuer": {
                                  "type": "string"
                                },
                                "clientId": {
                                  "type": "string"
                                },
                                "scope": {
                                  "type": "string"
                                },
                                "endpoints": {
                                  "anyOf": [
                                    {
                                      "type": "object",
                                      "properties": {
                                        "authorizeUrl": {
                                          "type": "string"
                                        },
                                        "tokenUrl": {
                                          "type": "string"
                                        },
                                        "jwksUrl": {
                                          "type": "string"
                                        }
                                      },
                                      "required": [
                                        "authorizeUrl",
                                        "tokenUrl",
                                        "jwksUrl"
                                      ],
                                      "additionalProperties": false
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "tokenEndpointAuthMethod": {
                                  "type": "string",
                                  "enum": [
                                    "client_secret_post",
                                    "client_secret_basic"
                                  ]
                                }
                              },
                              "required": [
                                "issuer",
                                "clientId",
                                "scope",
                                "endpoints",
                                "tokenEndpointAuthMethod"
                              ],
                              "additionalProperties": false
                            },
                            "saml": {
                              "type": "object",
                              "properties": {
                                "idpEntityId": {
                                  "type": "string"
                                },
                                "ssoUrl": {
                                  "type": "string"
                                },
                                "certificates": {
                                  "type": "array",
                                  "items": {
                                    "type": "object",
                                    "properties": {
                                      "notAfter": {
                                        "type": "string",
                                        "format": "date-time",
                                        "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                                      }
                                    },
                                    "required": [
                                      "notAfter"
                                    ],
                                    "additionalProperties": false
                                  }
                                },
                                "subjectAttribute": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "attributes": {
                                  "type": "object",
                                  "properties": {
                                    "email": {
                                      "type": "string"
                                    },
                                    "name": {
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    }
                                  },
                                  "required": [
                                    "email",
                                    "name"
                                  ],
                                  "additionalProperties": false
                                },
                                "spEntityId": {
                                  "type": "string"
                                },
                                "acsUrl": {
                                  "type": "string"
                                }
                              },
                              "required": [
                                "idpEntityId",
                                "ssoUrl",
                                "certificates",
                                "subjectAttribute",
                                "attributes",
                                "spEntityId",
                                "acsUrl"
                              ],
                              "additionalProperties": false
                            },
                            "createdAt": {
                              "type": "string",
                              "format": "date-time",
                              "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                            },
                            "updatedAt": {
                              "type": "string",
                              "format": "date-time",
                              "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                            }
                          },
                          "required": [
                            "id",
                            "organizationId",
                            "kind",
                            "label",
                            "enabled",
                            "draft",
                            "jit",
                            "defaultRole",
                            "mfa",
                            "scimRoles",
                            "createdAt",
                            "updatedAt"
                          ],
                          "additionalProperties": false
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "scimToken": {
                      "anyOf": [
                        {
                          "type": "object",
                          "properties": {
                            "id": {
                              "type": "string"
                            },
                            "hint": {
                              "type": "string"
                            }
                          },
                          "required": [
                            "id",
                            "hint"
                          ],
                          "additionalProperties": false
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "test": {
                      "anyOf": [
                        {
                          "type": "object",
                          "properties": {
                            "outcome": {
                              "type": "string",
                              "enum": [
                                "passed",
                                "failed",
                                "pending"
                              ]
                            },
                            "step": {
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "help": {
                              "type": "string"
                            },
                            "attributeNames": {
                              "type": "array",
                              "items": {
                                "type": "string"
                              }
                            },
                            "address": {
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "name": {
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "domainClaimed": {
                              "type": "boolean"
                            },
                            "current": {
                              "type": "boolean"
                            }
                          },
                          "required": [
                            "outcome",
                            "step",
                            "help",
                            "attributeNames",
                            "address",
                            "name",
                            "domainClaimed",
                            "current"
                          ],
                          "additionalProperties": false
                        },
                        {
                          "type": "null"
                        }
                      ]
                    }
                  },
                  "required": [
                    "link",
                    "domains",
                    "connection",
                    "scimToken",
                    "test"
                  ],
                  "additionalProperties": false
                }
              },
              "text/html": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "The codes: [`unauthorized`](https://authtempo.com/docs/reference/errors/#unauthorized).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "unauthorized"
                      ]
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "The codes: [`impersonation_session`](https://authtempo.com/docs/reference/errors/#impersonation_session).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "impersonation_session"
                      ]
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "The codes: [`not_found`](https://authtempo.com/docs/reference/errors/#not_found).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "not_found"
                      ]
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "The codes: [`rate_limited`](https://authtempo.com/docs/reference/errors/#rate_limited).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "rate_limited"
                      ]
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "The codes: [`internal`](https://authtempo.com/docs/reference/errors/#internal).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "internal"
                      ]
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "setupCookie": []
          }
        ]
      }
    },
    "/scim/tokens": {
      "get": {
        "tags": [
          "scim"
        ],
        "summary": "GET /scim/tokens",
        "operationId": "get-scim-tokens",
        "externalDocs": {
          "url": "https://authtempo.com/docs/reference/routes/#get-scim-tokens"
        },
        "x-authtempo-feature": "scim",
        "x-authtempo-default": "off",
        "parameters": [
          {
            "name": "organizationId",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 64
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The answer.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "tokens": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string"
                          },
                          "name": {
                            "type": "string"
                          },
                          "hint": {
                            "type": "string"
                          },
                          "scopes": {
                            "type": "array",
                            "items": {
                              "type": "string",
                              "enum": [
                                "scim.users.read",
                                "scim.users.write",
                                "scim.groups.read",
                                "scim.groups.write"
                              ]
                            }
                          },
                          "createdAt": {
                            "type": "string",
                            "format": "date-time",
                            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                          },
                          "lastUsedAt": {
                            "anyOf": [
                              {
                                "type": "string",
                                "format": "date-time",
                                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "expiresAt": {
                            "anyOf": [
                              {
                                "type": "string",
                                "format": "date-time",
                                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "pending": {
                            "type": "boolean"
                          }
                        },
                        "required": [
                          "id",
                          "name",
                          "hint",
                          "scopes",
                          "createdAt",
                          "lastUsedAt",
                          "expiresAt",
                          "pending"
                        ],
                        "additionalProperties": false
                      }
                    }
                  },
                  "required": [
                    "tokens"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "The codes: [`invalid_body`](https://authtempo.com/docs/reference/errors/#invalid_body).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "invalid_body"
                      ]
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The codes: [`unauthorized`](https://authtempo.com/docs/reference/errors/#unauthorized).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "unauthorized"
                      ]
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "The codes: [`forbidden_rank`](https://authtempo.com/docs/reference/errors/#forbidden_rank), [`operator_required`](https://authtempo.com/docs/reference/errors/#operator_required), [`second_factor_required`](https://authtempo.com/docs/reference/errors/#second_factor_required), [`session_not_fresh`](https://authtempo.com/docs/reference/errors/#session_not_fresh).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "forbidden_rank",
                        "operator_required",
                        "second_factor_required",
                        "session_not_fresh"
                      ]
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "The codes: [`not_found`](https://authtempo.com/docs/reference/errors/#not_found).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "not_found"
                      ]
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "The codes: [`rate_limited`](https://authtempo.com/docs/reference/errors/#rate_limited).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "rate_limited"
                      ]
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "The codes: [`internal`](https://authtempo.com/docs/reference/errors/#internal).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "internal"
                      ]
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "sessionCookie": []
          },
          {
            "sessionBearer": []
          }
        ]
      }
    },
    "/scim/tokens/create": {
      "post": {
        "tags": [
          "scim"
        ],
        "summary": "POST /scim/tokens/create",
        "operationId": "post-scim-tokens-create",
        "externalDocs": {
          "url": "https://authtempo.com/docs/reference/routes/#post-scim-tokens-create"
        },
        "x-authtempo-feature": "scim",
        "x-authtempo-default": "off",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "organizationId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64
                  },
                  "name": {
                    "type": "string",
                    "maxLength": 256
                  },
                  "scopes": {
                    "maxItems": 8,
                    "type": "array",
                    "items": {
                      "type": "string",
                      "enum": [
                        "scim.users.read",
                        "scim.users.write",
                        "scim.groups.read",
                        "scim.groups.write"
                      ]
                    }
                  },
                  "expiresInDays": {
                    "type": "number"
                  }
                },
                "required": [
                  "organizationId",
                  "name"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The answer.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "token": {
                      "type": "string"
                    },
                    "id": {
                      "type": "string"
                    },
                    "hint": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "token",
                    "id",
                    "hint"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "The codes: [`invalid_body`](https://authtempo.com/docs/reference/errors/#invalid_body).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "invalid_body"
                      ]
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The codes: [`unauthorized`](https://authtempo.com/docs/reference/errors/#unauthorized).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "unauthorized"
                      ]
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "The codes: [`forbidden_rank`](https://authtempo.com/docs/reference/errors/#forbidden_rank), [`operator_required`](https://authtempo.com/docs/reference/errors/#operator_required), [`second_factor_required`](https://authtempo.com/docs/reference/errors/#second_factor_required), [`session_not_fresh`](https://authtempo.com/docs/reference/errors/#session_not_fresh), [`impersonation_session`](https://authtempo.com/docs/reference/errors/#impersonation_session), [`origin_not_trusted`](https://authtempo.com/docs/reference/errors/#origin_not_trusted).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "forbidden_rank",
                        "operator_required",
                        "second_factor_required",
                        "session_not_fresh",
                        "impersonation_session",
                        "origin_not_trusted"
                      ]
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "The codes: [`not_found`](https://authtempo.com/docs/reference/errors/#not_found).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "not_found"
                      ]
                    }
                  }
                }
              }
            }
          },
          "409": {
            "description": "The codes: [`token_limit`](https://authtempo.com/docs/reference/errors/#token_limit).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "token_limit"
                      ]
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "The codes: [`rate_limited`](https://authtempo.com/docs/reference/errors/#rate_limited).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "rate_limited"
                      ]
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "The codes: [`internal`](https://authtempo.com/docs/reference/errors/#internal).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "internal"
                      ]
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "sessionCookie": []
          },
          {
            "sessionBearer": []
          }
        ]
      }
    },
    "/scim/tokens/revoke": {
      "post": {
        "tags": [
          "scim"
        ],
        "summary": "POST /scim/tokens/revoke",
        "operationId": "post-scim-tokens-revoke",
        "externalDocs": {
          "url": "https://authtempo.com/docs/reference/routes/#post-scim-tokens-revoke"
        },
        "x-authtempo-feature": "scim",
        "x-authtempo-default": "off",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64
                  }
                },
                "required": [
                  "id"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The answer.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OkAnswer"
                }
              }
            }
          },
          "400": {
            "description": "The codes: [`invalid_body`](https://authtempo.com/docs/reference/errors/#invalid_body).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "invalid_body"
                      ]
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The codes: [`unauthorized`](https://authtempo.com/docs/reference/errors/#unauthorized).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "unauthorized"
                      ]
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "The codes: [`forbidden_rank`](https://authtempo.com/docs/reference/errors/#forbidden_rank), [`operator_required`](https://authtempo.com/docs/reference/errors/#operator_required), [`second_factor_required`](https://authtempo.com/docs/reference/errors/#second_factor_required), [`session_not_fresh`](https://authtempo.com/docs/reference/errors/#session_not_fresh), [`impersonation_session`](https://authtempo.com/docs/reference/errors/#impersonation_session), [`origin_not_trusted`](https://authtempo.com/docs/reference/errors/#origin_not_trusted).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "forbidden_rank",
                        "operator_required",
                        "second_factor_required",
                        "session_not_fresh",
                        "impersonation_session",
                        "origin_not_trusted"
                      ]
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "The codes: [`not_found`](https://authtempo.com/docs/reference/errors/#not_found).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "not_found"
                      ]
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "The codes: [`rate_limited`](https://authtempo.com/docs/reference/errors/#rate_limited).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "rate_limited"
                      ]
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "The codes: [`internal`](https://authtempo.com/docs/reference/errors/#internal).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "internal"
                      ]
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "sessionCookie": []
          },
          {
            "sessionBearer": []
          }
        ]
      }
    },
    "/scim/v2/ServiceProviderConfig": {
      "get": {
        "tags": [
          "scim"
        ],
        "summary": "GET /scim/v2/ServiceProviderConfig",
        "operationId": "get-scim-v2-serviceproviderconfig",
        "externalDocs": {
          "url": "https://authtempo.com/docs/reference/routes/#get-scim-v2-serviceproviderconfig"
        },
        "x-authtempo-feature": "scim",
        "x-authtempo-default": "off",
        "responses": {
          "200": {
            "description": "The answer.",
            "content": {
              "application/scim+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "schemas": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    "patch": {
                      "type": "object",
                      "properties": {
                        "supported": {
                          "type": "boolean"
                        }
                      },
                      "required": [
                        "supported"
                      ],
                      "additionalProperties": false
                    },
                    "bulk": {
                      "type": "object",
                      "properties": {
                        "supported": {
                          "type": "boolean"
                        },
                        "maxOperations": {
                          "type": "number"
                        },
                        "maxPayloadSize": {
                          "type": "number"
                        }
                      },
                      "required": [
                        "supported",
                        "maxOperations",
                        "maxPayloadSize"
                      ],
                      "additionalProperties": false
                    },
                    "filter": {
                      "type": "object",
                      "properties": {
                        "supported": {
                          "type": "boolean"
                        },
                        "maxResults": {
                          "type": "number"
                        }
                      },
                      "required": [
                        "supported",
                        "maxResults"
                      ],
                      "additionalProperties": false
                    },
                    "changePassword": {
                      "type": "object",
                      "properties": {
                        "supported": {
                          "type": "boolean"
                        }
                      },
                      "required": [
                        "supported"
                      ],
                      "additionalProperties": false
                    },
                    "sort": {
                      "type": "object",
                      "properties": {
                        "supported": {
                          "type": "boolean"
                        }
                      },
                      "required": [
                        "supported"
                      ],
                      "additionalProperties": false
                    },
                    "etag": {
                      "type": "object",
                      "properties": {
                        "supported": {
                          "type": "boolean"
                        }
                      },
                      "required": [
                        "supported"
                      ],
                      "additionalProperties": false
                    },
                    "authenticationSchemes": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "type": {
                            "type": "string"
                          },
                          "name": {
                            "type": "string"
                          },
                          "description": {
                            "type": "string"
                          },
                          "primary": {
                            "type": "boolean"
                          }
                        },
                        "required": [
                          "type",
                          "name",
                          "description",
                          "primary"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "urn:authtempo:params:scim:schemas:extension:limits:2.0": {
                      "type": "object",
                      "properties": {
                        "groupMembersMax": {
                          "type": "number"
                        },
                        "membersPerRequestMax": {
                          "type": "number"
                        },
                        "roleRecomputeMax": {
                          "type": "number"
                        }
                      },
                      "required": [
                        "groupMembersMax",
                        "membersPerRequestMax",
                        "roleRecomputeMax"
                      ],
                      "additionalProperties": false
                    },
                    "meta": {
                      "type": "object",
                      "properties": {
                        "resourceType": {
                          "type": "string"
                        },
                        "location": {
                          "type": "string"
                        }
                      },
                      "required": [
                        "resourceType",
                        "location"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "required": [
                    "schemas",
                    "patch",
                    "bulk",
                    "filter",
                    "changePassword",
                    "sort",
                    "etag",
                    "authenticationSchemes",
                    "urn:authtempo:params:scim:schemas:extension:limits:2.0",
                    "meta"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "404": {
            "description": "The codes: [`not_found`](https://authtempo.com/docs/reference/errors/#not_found).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "not_found"
                      ]
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "The codes: [`internal`](https://authtempo.com/docs/reference/errors/#internal).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "internal"
                      ]
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "scimToken": []
          }
        ]
      }
    },
    "/scim/v2/ResourceTypes": {
      "get": {
        "tags": [
          "scim"
        ],
        "summary": "GET /scim/v2/ResourceTypes",
        "operationId": "get-scim-v2-resourcetypes",
        "externalDocs": {
          "url": "https://authtempo.com/docs/reference/routes/#get-scim-v2-resourcetypes"
        },
        "x-authtempo-feature": "scim",
        "x-authtempo-default": "off",
        "responses": {
          "200": {
            "description": "The answer.",
            "content": {
              "application/scim+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "schemas": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    "totalResults": {
                      "type": "number"
                    },
                    "startIndex": {
                      "type": "number"
                    },
                    "itemsPerPage": {
                      "type": "number"
                    },
                    "Resources": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "schemas": {
                            "type": "array",
                            "items": {
                              "type": "string"
                            }
                          },
                          "id": {
                            "type": "string"
                          },
                          "name": {
                            "type": "string"
                          },
                          "endpoint": {
                            "type": "string"
                          },
                          "description": {
                            "type": "string"
                          },
                          "schema": {
                            "type": "string"
                          },
                          "schemaExtensions": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {
                                "schema": {
                                  "type": "string"
                                },
                                "required": {
                                  "type": "boolean"
                                }
                              },
                              "required": [
                                "schema",
                                "required"
                              ],
                              "additionalProperties": false
                            }
                          },
                          "meta": {
                            "type": "object",
                            "properties": {
                              "resourceType": {
                                "type": "string"
                              },
                              "location": {
                                "type": "string"
                              }
                            },
                            "required": [
                              "resourceType",
                              "location"
                            ],
                            "additionalProperties": false
                          }
                        },
                        "required": [
                          "schemas",
                          "id",
                          "name",
                          "endpoint",
                          "description",
                          "schema",
                          "meta"
                        ],
                        "additionalProperties": false
                      }
                    }
                  },
                  "required": [
                    "schemas",
                    "totalResults",
                    "startIndex",
                    "itemsPerPage",
                    "Resources"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "404": {
            "description": "The codes: [`not_found`](https://authtempo.com/docs/reference/errors/#not_found).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "not_found"
                      ]
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "The codes: [`internal`](https://authtempo.com/docs/reference/errors/#internal).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "internal"
                      ]
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "scimToken": []
          }
        ]
      }
    },
    "/scim/v2/ResourceTypes/{id}": {
      "get": {
        "tags": [
          "scim"
        ],
        "summary": "GET /scim/v2/ResourceTypes/:id",
        "operationId": "get-scim-v2-resourcetypes-id",
        "externalDocs": {
          "url": "https://authtempo.com/docs/reference/routes/#get-scim-v2-resourcetypes-id"
        },
        "x-authtempo-feature": "scim",
        "x-authtempo-default": "off",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^[A-Za-z0-9._:-]{1,128}$"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The answer.",
            "content": {
              "application/scim+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "schemas": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    "id": {
                      "type": "string"
                    },
                    "name": {
                      "type": "string"
                    },
                    "endpoint": {
                      "type": "string"
                    },
                    "description": {
                      "type": "string"
                    },
                    "schema": {
                      "type": "string"
                    },
                    "schemaExtensions": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "schema": {
                            "type": "string"
                          },
                          "required": {
                            "type": "boolean"
                          }
                        },
                        "required": [
                          "schema",
                          "required"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "meta": {
                      "type": "object",
                      "properties": {
                        "resourceType": {
                          "type": "string"
                        },
                        "location": {
                          "type": "string"
                        }
                      },
                      "required": [
                        "resourceType",
                        "location"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "required": [
                    "schemas",
                    "id",
                    "name",
                    "endpoint",
                    "description",
                    "schema",
                    "meta"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "404": {
            "description": "The codes: [`not_found`](https://authtempo.com/docs/reference/errors/#not_found).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "not_found"
                      ]
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "The codes: [`internal`](https://authtempo.com/docs/reference/errors/#internal).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "internal"
                      ]
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "scimToken": []
          }
        ]
      }
    },
    "/scim/v2/Schemas": {
      "get": {
        "tags": [
          "scim"
        ],
        "summary": "GET /scim/v2/Schemas",
        "operationId": "get-scim-v2-schemas",
        "externalDocs": {
          "url": "https://authtempo.com/docs/reference/routes/#get-scim-v2-schemas"
        },
        "x-authtempo-feature": "scim",
        "x-authtempo-default": "off",
        "responses": {
          "200": {
            "description": "The answer.",
            "content": {
              "application/scim+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "schemas": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    "totalResults": {
                      "type": "number"
                    },
                    "startIndex": {
                      "type": "number"
                    },
                    "itemsPerPage": {
                      "type": "number"
                    },
                    "Resources": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "schemas": {
                            "type": "array",
                            "items": {
                              "type": "string"
                            }
                          },
                          "id": {
                            "type": "string"
                          },
                          "name": {
                            "type": "string"
                          },
                          "description": {
                            "type": "string"
                          },
                          "attributes": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {
                                "name": {
                                  "type": "string"
                                },
                                "type": {
                                  "type": "string",
                                  "enum": [
                                    "string",
                                    "boolean",
                                    "complex",
                                    "reference",
                                    "binary"
                                  ]
                                },
                                "multiValued": {
                                  "type": "boolean"
                                },
                                "required": {
                                  "type": "boolean"
                                },
                                "caseExact": {
                                  "type": "boolean"
                                },
                                "mutability": {
                                  "type": "string",
                                  "enum": [
                                    "readWrite",
                                    "readOnly",
                                    "immutable",
                                    "writeOnly"
                                  ]
                                },
                                "returned": {
                                  "type": "string",
                                  "enum": [
                                    "always",
                                    "default",
                                    "never",
                                    "request"
                                  ]
                                },
                                "uniqueness": {
                                  "type": "string",
                                  "enum": [
                                    "none",
                                    "server",
                                    "global"
                                  ]
                                },
                                "referenceTypes": {
                                  "type": "array",
                                  "items": {
                                    "type": "string"
                                  }
                                },
                                "canonicalValues": {
                                  "type": "array",
                                  "items": {
                                    "type": "string"
                                  }
                                },
                                "subAttributes": {
                                  "type": "array",
                                  "items": {
                                    "type": "object",
                                    "properties": {
                                      "name": {
                                        "type": "string"
                                      },
                                      "type": {
                                        "type": "string",
                                        "enum": [
                                          "string",
                                          "boolean",
                                          "complex",
                                          "reference",
                                          "binary"
                                        ]
                                      },
                                      "multiValued": {
                                        "type": "boolean"
                                      },
                                      "required": {
                                        "type": "boolean"
                                      },
                                      "caseExact": {
                                        "type": "boolean"
                                      },
                                      "mutability": {
                                        "type": "string",
                                        "enum": [
                                          "readWrite",
                                          "readOnly",
                                          "immutable",
                                          "writeOnly"
                                        ]
                                      },
                                      "returned": {
                                        "type": "string",
                                        "enum": [
                                          "always",
                                          "default",
                                          "never",
                                          "request"
                                        ]
                                      },
                                      "uniqueness": {
                                        "type": "string",
                                        "enum": [
                                          "none",
                                          "server",
                                          "global"
                                        ]
                                      },
                                      "referenceTypes": {
                                        "type": "array",
                                        "items": {
                                          "type": "string"
                                        }
                                      },
                                      "canonicalValues": {
                                        "type": "array",
                                        "items": {
                                          "type": "string"
                                        }
                                      }
                                    },
                                    "required": [
                                      "name",
                                      "type",
                                      "multiValued",
                                      "required",
                                      "caseExact",
                                      "mutability",
                                      "returned",
                                      "uniqueness"
                                    ],
                                    "additionalProperties": false
                                  }
                                }
                              },
                              "required": [
                                "name",
                                "type",
                                "multiValued",
                                "required",
                                "caseExact",
                                "mutability",
                                "returned",
                                "uniqueness"
                              ],
                              "additionalProperties": false
                            }
                          },
                          "meta": {
                            "type": "object",
                            "properties": {
                              "resourceType": {
                                "type": "string"
                              },
                              "location": {
                                "type": "string"
                              }
                            },
                            "required": [
                              "resourceType",
                              "location"
                            ],
                            "additionalProperties": false
                          }
                        },
                        "required": [
                          "schemas",
                          "id",
                          "name",
                          "description",
                          "attributes",
                          "meta"
                        ],
                        "additionalProperties": false
                      }
                    }
                  },
                  "required": [
                    "schemas",
                    "totalResults",
                    "startIndex",
                    "itemsPerPage",
                    "Resources"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "404": {
            "description": "The codes: [`not_found`](https://authtempo.com/docs/reference/errors/#not_found).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "not_found"
                      ]
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "The codes: [`internal`](https://authtempo.com/docs/reference/errors/#internal).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "internal"
                      ]
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "scimToken": []
          }
        ]
      }
    },
    "/scim/v2/Schemas/{id}": {
      "get": {
        "tags": [
          "scim"
        ],
        "summary": "GET /scim/v2/Schemas/:id",
        "operationId": "get-scim-v2-schemas-id",
        "externalDocs": {
          "url": "https://authtempo.com/docs/reference/routes/#get-scim-v2-schemas-id"
        },
        "x-authtempo-feature": "scim",
        "x-authtempo-default": "off",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^[A-Za-z0-9._:-]{1,128}$"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The answer.",
            "content": {
              "application/scim+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "schemas": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    "id": {
                      "type": "string"
                    },
                    "name": {
                      "type": "string"
                    },
                    "description": {
                      "type": "string"
                    },
                    "attributes": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "name": {
                            "type": "string"
                          },
                          "type": {
                            "type": "string",
                            "enum": [
                              "string",
                              "boolean",
                              "complex",
                              "reference",
                              "binary"
                            ]
                          },
                          "multiValued": {
                            "type": "boolean"
                          },
                          "required": {
                            "type": "boolean"
                          },
                          "caseExact": {
                            "type": "boolean"
                          },
                          "mutability": {
                            "type": "string",
                            "enum": [
                              "readWrite",
                              "readOnly",
                              "immutable",
                              "writeOnly"
                            ]
                          },
                          "returned": {
                            "type": "string",
                            "enum": [
                              "always",
                              "default",
                              "never",
                              "request"
                            ]
                          },
                          "uniqueness": {
                            "type": "string",
                            "enum": [
                              "none",
                              "server",
                              "global"
                            ]
                          },
                          "referenceTypes": {
                            "type": "array",
                            "items": {
                              "type": "string"
                            }
                          },
                          "canonicalValues": {
                            "type": "array",
                            "items": {
                              "type": "string"
                            }
                          },
                          "subAttributes": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {
                                "name": {
                                  "type": "string"
                                },
                                "type": {
                                  "type": "string",
                                  "enum": [
                                    "string",
                                    "boolean",
                                    "complex",
                                    "reference",
                                    "binary"
                                  ]
                                },
                                "multiValued": {
                                  "type": "boolean"
                                },
                                "required": {
                                  "type": "boolean"
                                },
                                "caseExact": {
                                  "type": "boolean"
                                },
                                "mutability": {
                                  "type": "string",
                                  "enum": [
                                    "readWrite",
                                    "readOnly",
                                    "immutable",
                                    "writeOnly"
                                  ]
                                },
                                "returned": {
                                  "type": "string",
                                  "enum": [
                                    "always",
                                    "default",
                                    "never",
                                    "request"
                                  ]
                                },
                                "uniqueness": {
                                  "type": "string",
                                  "enum": [
                                    "none",
                                    "server",
                                    "global"
                                  ]
                                },
                                "referenceTypes": {
                                  "type": "array",
                                  "items": {
                                    "type": "string"
                                  }
                                },
                                "canonicalValues": {
                                  "type": "array",
                                  "items": {
                                    "type": "string"
                                  }
                                }
                              },
                              "required": [
                                "name",
                                "type",
                                "multiValued",
                                "required",
                                "caseExact",
                                "mutability",
                                "returned",
                                "uniqueness"
                              ],
                              "additionalProperties": false
                            }
                          }
                        },
                        "required": [
                          "name",
                          "type",
                          "multiValued",
                          "required",
                          "caseExact",
                          "mutability",
                          "returned",
                          "uniqueness"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "meta": {
                      "type": "object",
                      "properties": {
                        "resourceType": {
                          "type": "string"
                        },
                        "location": {
                          "type": "string"
                        }
                      },
                      "required": [
                        "resourceType",
                        "location"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "required": [
                    "schemas",
                    "id",
                    "name",
                    "description",
                    "attributes",
                    "meta"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "404": {
            "description": "The codes: [`not_found`](https://authtempo.com/docs/reference/errors/#not_found).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "not_found"
                      ]
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "The codes: [`internal`](https://authtempo.com/docs/reference/errors/#internal).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "internal"
                      ]
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "scimToken": []
          }
        ]
      }
    },
    "/scim/v2/Users": {
      "get": {
        "tags": [
          "scim"
        ],
        "summary": "GET /scim/v2/Users",
        "operationId": "get-scim-v2-users",
        "externalDocs": {
          "url": "https://authtempo.com/docs/reference/routes/#get-scim-v2-users"
        },
        "x-authtempo-feature": "scim",
        "x-authtempo-default": "off",
        "responses": {
          "200": {
            "description": "The answer.",
            "content": {
              "application/scim+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "schemas": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    "totalResults": {
                      "type": "number"
                    },
                    "startIndex": {
                      "type": "number"
                    },
                    "itemsPerPage": {
                      "type": "number"
                    },
                    "Resources": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "userName": {
                            "type": "string"
                          },
                          "name": {
                            "type": "object",
                            "properties": {
                              "formatted": {
                                "type": "string"
                              },
                              "familyName": {
                                "type": "string"
                              },
                              "givenName": {
                                "type": "string"
                              },
                              "middleName": {
                                "type": "string"
                              },
                              "honorificPrefix": {
                                "type": "string"
                              },
                              "honorificSuffix": {
                                "type": "string"
                              }
                            },
                            "additionalProperties": false
                          },
                          "displayName": {
                            "type": "string"
                          },
                          "nickName": {
                            "type": "string"
                          },
                          "profileUrl": {
                            "type": "string"
                          },
                          "title": {
                            "type": "string"
                          },
                          "userType": {
                            "type": "string"
                          },
                          "preferredLanguage": {
                            "type": "string"
                          },
                          "locale": {
                            "type": "string"
                          },
                          "timezone": {
                            "type": "string"
                          },
                          "active": {
                            "type": "boolean"
                          },
                          "emails": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {
                                "value": {
                                  "type": "string"
                                },
                                "display": {
                                  "type": "string"
                                },
                                "type": {
                                  "type": "string"
                                },
                                "primary": {
                                  "type": "boolean"
                                }
                              },
                              "additionalProperties": false
                            }
                          },
                          "phoneNumbers": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {
                                "value": {
                                  "type": "string"
                                },
                                "display": {
                                  "type": "string"
                                },
                                "type": {
                                  "type": "string"
                                },
                                "primary": {
                                  "type": "boolean"
                                }
                              },
                              "additionalProperties": false
                            }
                          },
                          "ims": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {
                                "value": {
                                  "type": "string"
                                },
                                "display": {
                                  "type": "string"
                                },
                                "type": {
                                  "type": "string"
                                },
                                "primary": {
                                  "type": "boolean"
                                }
                              },
                              "additionalProperties": false
                            }
                          },
                          "photos": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {
                                "value": {
                                  "type": "string"
                                },
                                "display": {
                                  "type": "string"
                                },
                                "type": {
                                  "type": "string"
                                },
                                "primary": {
                                  "type": "boolean"
                                }
                              },
                              "additionalProperties": false
                            }
                          },
                          "addresses": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {
                                "formatted": {
                                  "type": "string"
                                },
                                "streetAddress": {
                                  "type": "string"
                                },
                                "locality": {
                                  "type": "string"
                                },
                                "region": {
                                  "type": "string"
                                },
                                "postalCode": {
                                  "type": "string"
                                },
                                "country": {
                                  "type": "string"
                                },
                                "type": {
                                  "type": "string"
                                },
                                "primary": {
                                  "type": "boolean"
                                }
                              },
                              "additionalProperties": false
                            }
                          },
                          "entitlements": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {
                                "value": {
                                  "type": "string"
                                },
                                "display": {
                                  "type": "string"
                                },
                                "type": {
                                  "type": "string"
                                },
                                "primary": {
                                  "type": "boolean"
                                }
                              },
                              "additionalProperties": false
                            }
                          },
                          "roles": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {
                                "value": {
                                  "type": "string"
                                },
                                "display": {
                                  "type": "string"
                                },
                                "type": {
                                  "type": "string"
                                },
                                "primary": {
                                  "type": "boolean"
                                }
                              },
                              "additionalProperties": false
                            }
                          },
                          "x509Certificates": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {
                                "value": {
                                  "type": "string"
                                },
                                "display": {
                                  "type": "string"
                                },
                                "type": {
                                  "type": "string"
                                },
                                "primary": {
                                  "type": "boolean"
                                }
                              },
                              "additionalProperties": false
                            }
                          },
                          "schemas": {
                            "type": "array",
                            "items": {
                              "type": "string"
                            }
                          },
                          "id": {
                            "type": "string"
                          },
                          "externalId": {
                            "type": "string"
                          },
                          "groups": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {
                                "value": {
                                  "type": "string"
                                },
                                "$ref": {
                                  "type": "string"
                                },
                                "display": {
                                  "type": "string"
                                },
                                "type": {
                                  "type": "string"
                                }
                              },
                              "required": [
                                "value",
                                "$ref",
                                "display",
                                "type"
                              ],
                              "additionalProperties": false
                            }
                          },
                          "urn:ietf:params:scim:schemas:extension:enterprise:2.0:User": {
                            "type": "object",
                            "properties": {
                              "employeeNumber": {
                                "type": "string"
                              },
                              "costCenter": {
                                "type": "string"
                              },
                              "organization": {
                                "type": "string"
                              },
                              "division": {
                                "type": "string"
                              },
                              "department": {
                                "type": "string"
                              },
                              "manager": {
                                "type": "object",
                                "properties": {
                                  "value": {
                                    "type": "string"
                                  },
                                  "$ref": {
                                    "type": "string"
                                  },
                                  "displayName": {
                                    "type": "string"
                                  }
                                },
                                "additionalProperties": false
                              }
                            },
                            "additionalProperties": false
                          },
                          "meta": {
                            "type": "object",
                            "properties": {
                              "resourceType": {
                                "type": "string"
                              },
                              "created": {
                                "type": "string",
                                "format": "date-time",
                                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                              },
                              "lastModified": {
                                "type": "string",
                                "format": "date-time",
                                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                              },
                              "location": {
                                "type": "string"
                              },
                              "version": {
                                "type": "string"
                              }
                            },
                            "required": [
                              "resourceType",
                              "created",
                              "lastModified",
                              "location",
                              "version"
                            ],
                            "additionalProperties": false
                          }
                        },
                        "required": [
                          "schemas",
                          "id",
                          "meta"
                        ],
                        "additionalProperties": false
                      }
                    }
                  },
                  "required": [
                    "schemas",
                    "totalResults",
                    "startIndex",
                    "itemsPerPage",
                    "Resources"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "404": {
            "description": "The codes: [`not_found`](https://authtempo.com/docs/reference/errors/#not_found).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "not_found"
                      ]
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "The codes: [`internal`](https://authtempo.com/docs/reference/errors/#internal).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "internal"
                      ]
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "scimToken": []
          }
        ]
      },
      "post": {
        "tags": [
          "scim"
        ],
        "summary": "POST /scim/v2/Users",
        "operationId": "post-scim-v2-users",
        "externalDocs": {
          "url": "https://authtempo.com/docs/reference/routes/#post-scim-v2-users"
        },
        "x-authtempo-feature": "scim",
        "x-authtempo-default": "off",
        "responses": {
          "200": {
            "description": "The answer.",
            "content": {
              "application/scim+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "userName": {
                      "type": "string"
                    },
                    "name": {
                      "type": "object",
                      "properties": {
                        "formatted": {
                          "type": "string"
                        },
                        "familyName": {
                          "type": "string"
                        },
                        "givenName": {
                          "type": "string"
                        },
                        "middleName": {
                          "type": "string"
                        },
                        "honorificPrefix": {
                          "type": "string"
                        },
                        "honorificSuffix": {
                          "type": "string"
                        }
                      },
                      "additionalProperties": false
                    },
                    "displayName": {
                      "type": "string"
                    },
                    "nickName": {
                      "type": "string"
                    },
                    "profileUrl": {
                      "type": "string"
                    },
                    "title": {
                      "type": "string"
                    },
                    "userType": {
                      "type": "string"
                    },
                    "preferredLanguage": {
                      "type": "string"
                    },
                    "locale": {
                      "type": "string"
                    },
                    "timezone": {
                      "type": "string"
                    },
                    "active": {
                      "type": "boolean"
                    },
                    "emails": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "value": {
                            "type": "string"
                          },
                          "display": {
                            "type": "string"
                          },
                          "type": {
                            "type": "string"
                          },
                          "primary": {
                            "type": "boolean"
                          }
                        },
                        "additionalProperties": false
                      }
                    },
                    "phoneNumbers": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "value": {
                            "type": "string"
                          },
                          "display": {
                            "type": "string"
                          },
                          "type": {
                            "type": "string"
                          },
                          "primary": {
                            "type": "boolean"
                          }
                        },
                        "additionalProperties": false
                      }
                    },
                    "ims": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "value": {
                            "type": "string"
                          },
                          "display": {
                            "type": "string"
                          },
                          "type": {
                            "type": "string"
                          },
                          "primary": {
                            "type": "boolean"
                          }
                        },
                        "additionalProperties": false
                      }
                    },
                    "photos": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "value": {
                            "type": "string"
                          },
                          "display": {
                            "type": "string"
                          },
                          "type": {
                            "type": "string"
                          },
                          "primary": {
                            "type": "boolean"
                          }
                        },
                        "additionalProperties": false
                      }
                    },
                    "addresses": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "formatted": {
                            "type": "string"
                          },
                          "streetAddress": {
                            "type": "string"
                          },
                          "locality": {
                            "type": "string"
                          },
                          "region": {
                            "type": "string"
                          },
                          "postalCode": {
                            "type": "string"
                          },
                          "country": {
                            "type": "string"
                          },
                          "type": {
                            "type": "string"
                          },
                          "primary": {
                            "type": "boolean"
                          }
                        },
                        "additionalProperties": false
                      }
                    },
                    "entitlements": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "value": {
                            "type": "string"
                          },
                          "display": {
                            "type": "string"
                          },
                          "type": {
                            "type": "string"
                          },
                          "primary": {
                            "type": "boolean"
                          }
                        },
                        "additionalProperties": false
                      }
                    },
                    "roles": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "value": {
                            "type": "string"
                          },
                          "display": {
                            "type": "string"
                          },
                          "type": {
                            "type": "string"
                          },
                          "primary": {
                            "type": "boolean"
                          }
                        },
                        "additionalProperties": false
                      }
                    },
                    "x509Certificates": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "value": {
                            "type": "string"
                          },
                          "display": {
                            "type": "string"
                          },
                          "type": {
                            "type": "string"
                          },
                          "primary": {
                            "type": "boolean"
                          }
                        },
                        "additionalProperties": false
                      }
                    },
                    "schemas": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    "id": {
                      "type": "string"
                    },
                    "externalId": {
                      "type": "string"
                    },
                    "groups": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "value": {
                            "type": "string"
                          },
                          "$ref": {
                            "type": "string"
                          },
                          "display": {
                            "type": "string"
                          },
                          "type": {
                            "type": "string"
                          }
                        },
                        "required": [
                          "value",
                          "$ref",
                          "display",
                          "type"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "urn:ietf:params:scim:schemas:extension:enterprise:2.0:User": {
                      "type": "object",
                      "properties": {
                        "employeeNumber": {
                          "type": "string"
                        },
                        "costCenter": {
                          "type": "string"
                        },
                        "organization": {
                          "type": "string"
                        },
                        "division": {
                          "type": "string"
                        },
                        "department": {
                          "type": "string"
                        },
                        "manager": {
                          "type": "object",
                          "properties": {
                            "value": {
                              "type": "string"
                            },
                            "$ref": {
                              "type": "string"
                            },
                            "displayName": {
                              "type": "string"
                            }
                          },
                          "additionalProperties": false
                        }
                      },
                      "additionalProperties": false
                    },
                    "meta": {
                      "type": "object",
                      "properties": {
                        "resourceType": {
                          "type": "string"
                        },
                        "created": {
                          "type": "string",
                          "format": "date-time",
                          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                        },
                        "lastModified": {
                          "type": "string",
                          "format": "date-time",
                          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                        },
                        "location": {
                          "type": "string"
                        },
                        "version": {
                          "type": "string"
                        }
                      },
                      "required": [
                        "resourceType",
                        "created",
                        "lastModified",
                        "location",
                        "version"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "required": [
                    "userName",
                    "active",
                    "schemas",
                    "id",
                    "meta"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "403": {
            "description": "The codes: [`origin_not_trusted`](https://authtempo.com/docs/reference/errors/#origin_not_trusted).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "origin_not_trusted"
                      ]
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "The codes: [`not_found`](https://authtempo.com/docs/reference/errors/#not_found).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "not_found"
                      ]
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "The codes: [`internal`](https://authtempo.com/docs/reference/errors/#internal).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "internal"
                      ]
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "scimToken": []
          }
        ]
      }
    },
    "/scim/v2/Users/{id}": {
      "get": {
        "tags": [
          "scim"
        ],
        "summary": "GET /scim/v2/Users/:id",
        "operationId": "get-scim-v2-users-id",
        "externalDocs": {
          "url": "https://authtempo.com/docs/reference/routes/#get-scim-v2-users-id"
        },
        "x-authtempo-feature": "scim",
        "x-authtempo-default": "off",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^[A-Za-z0-9._:-]{1,128}$"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The answer.",
            "content": {
              "application/scim+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "userName": {
                      "type": "string"
                    },
                    "name": {
                      "type": "object",
                      "properties": {
                        "formatted": {
                          "type": "string"
                        },
                        "familyName": {
                          "type": "string"
                        },
                        "givenName": {
                          "type": "string"
                        },
                        "middleName": {
                          "type": "string"
                        },
                        "honorificPrefix": {
                          "type": "string"
                        },
                        "honorificSuffix": {
                          "type": "string"
                        }
                      },
                      "additionalProperties": false
                    },
                    "displayName": {
                      "type": "string"
                    },
                    "nickName": {
                      "type": "string"
                    },
                    "profileUrl": {
                      "type": "string"
                    },
                    "title": {
                      "type": "string"
                    },
                    "userType": {
                      "type": "string"
                    },
                    "preferredLanguage": {
                      "type": "string"
                    },
                    "locale": {
                      "type": "string"
                    },
                    "timezone": {
                      "type": "string"
                    },
                    "active": {
                      "type": "boolean"
                    },
                    "emails": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "value": {
                            "type": "string"
                          },
                          "display": {
                            "type": "string"
                          },
                          "type": {
                            "type": "string"
                          },
                          "primary": {
                            "type": "boolean"
                          }
                        },
                        "additionalProperties": false
                      }
                    },
                    "phoneNumbers": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "value": {
                            "type": "string"
                          },
                          "display": {
                            "type": "string"
                          },
                          "type": {
                            "type": "string"
                          },
                          "primary": {
                            "type": "boolean"
                          }
                        },
                        "additionalProperties": false
                      }
                    },
                    "ims": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "value": {
                            "type": "string"
                          },
                          "display": {
                            "type": "string"
                          },
                          "type": {
                            "type": "string"
                          },
                          "primary": {
                            "type": "boolean"
                          }
                        },
                        "additionalProperties": false
                      }
                    },
                    "photos": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "value": {
                            "type": "string"
                          },
                          "display": {
                            "type": "string"
                          },
                          "type": {
                            "type": "string"
                          },
                          "primary": {
                            "type": "boolean"
                          }
                        },
                        "additionalProperties": false
                      }
                    },
                    "addresses": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "formatted": {
                            "type": "string"
                          },
                          "streetAddress": {
                            "type": "string"
                          },
                          "locality": {
                            "type": "string"
                          },
                          "region": {
                            "type": "string"
                          },
                          "postalCode": {
                            "type": "string"
                          },
                          "country": {
                            "type": "string"
                          },
                          "type": {
                            "type": "string"
                          },
                          "primary": {
                            "type": "boolean"
                          }
                        },
                        "additionalProperties": false
                      }
                    },
                    "entitlements": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "value": {
                            "type": "string"
                          },
                          "display": {
                            "type": "string"
                          },
                          "type": {
                            "type": "string"
                          },
                          "primary": {
                            "type": "boolean"
                          }
                        },
                        "additionalProperties": false
                      }
                    },
                    "roles": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "value": {
                            "type": "string"
                          },
                          "display": {
                            "type": "string"
                          },
                          "type": {
                            "type": "string"
                          },
                          "primary": {
                            "type": "boolean"
                          }
                        },
                        "additionalProperties": false
                      }
                    },
                    "x509Certificates": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "value": {
                            "type": "string"
                          },
                          "display": {
                            "type": "string"
                          },
                          "type": {
                            "type": "string"
                          },
                          "primary": {
                            "type": "boolean"
                          }
                        },
                        "additionalProperties": false
                      }
                    },
                    "schemas": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    "id": {
                      "type": "string"
                    },
                    "externalId": {
                      "type": "string"
                    },
                    "groups": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "value": {
                            "type": "string"
                          },
                          "$ref": {
                            "type": "string"
                          },
                          "display": {
                            "type": "string"
                          },
                          "type": {
                            "type": "string"
                          }
                        },
                        "required": [
                          "value",
                          "$ref",
                          "display",
                          "type"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "urn:ietf:params:scim:schemas:extension:enterprise:2.0:User": {
                      "type": "object",
                      "properties": {
                        "employeeNumber": {
                          "type": "string"
                        },
                        "costCenter": {
                          "type": "string"
                        },
                        "organization": {
                          "type": "string"
                        },
                        "division": {
                          "type": "string"
                        },
                        "department": {
                          "type": "string"
                        },
                        "manager": {
                          "type": "object",
                          "properties": {
                            "value": {
                              "type": "string"
                            },
                            "$ref": {
                              "type": "string"
                            },
                            "displayName": {
                              "type": "string"
                            }
                          },
                          "additionalProperties": false
                        }
                      },
                      "additionalProperties": false
                    },
                    "meta": {
                      "type": "object",
                      "properties": {
                        "resourceType": {
                          "type": "string"
                        },
                        "created": {
                          "type": "string",
                          "format": "date-time",
                          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                        },
                        "lastModified": {
                          "type": "string",
                          "format": "date-time",
                          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                        },
                        "location": {
                          "type": "string"
                        },
                        "version": {
                          "type": "string"
                        }
                      },
                      "required": [
                        "resourceType",
                        "created",
                        "lastModified",
                        "location",
                        "version"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "required": [
                    "schemas",
                    "id",
                    "meta"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "404": {
            "description": "The codes: [`not_found`](https://authtempo.com/docs/reference/errors/#not_found).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "not_found"
                      ]
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "The codes: [`internal`](https://authtempo.com/docs/reference/errors/#internal).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "internal"
                      ]
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "scimToken": []
          }
        ]
      },
      "put": {
        "tags": [
          "scim"
        ],
        "summary": "PUT /scim/v2/Users/:id",
        "operationId": "put-scim-v2-users-id",
        "externalDocs": {
          "url": "https://authtempo.com/docs/reference/routes/#put-scim-v2-users-id"
        },
        "x-authtempo-feature": "scim",
        "x-authtempo-default": "off",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^[A-Za-z0-9._:-]{1,128}$"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The answer.",
            "content": {
              "application/scim+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "userName": {
                      "type": "string"
                    },
                    "name": {
                      "type": "object",
                      "properties": {
                        "formatted": {
                          "type": "string"
                        },
                        "familyName": {
                          "type": "string"
                        },
                        "givenName": {
                          "type": "string"
                        },
                        "middleName": {
                          "type": "string"
                        },
                        "honorificPrefix": {
                          "type": "string"
                        },
                        "honorificSuffix": {
                          "type": "string"
                        }
                      },
                      "additionalProperties": false
                    },
                    "displayName": {
                      "type": "string"
                    },
                    "nickName": {
                      "type": "string"
                    },
                    "profileUrl": {
                      "type": "string"
                    },
                    "title": {
                      "type": "string"
                    },
                    "userType": {
                      "type": "string"
                    },
                    "preferredLanguage": {
                      "type": "string"
                    },
                    "locale": {
                      "type": "string"
                    },
                    "timezone": {
                      "type": "string"
                    },
                    "active": {
                      "type": "boolean"
                    },
                    "emails": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "value": {
                            "type": "string"
                          },
                          "display": {
                            "type": "string"
                          },
                          "type": {
                            "type": "string"
                          },
                          "primary": {
                            "type": "boolean"
                          }
                        },
                        "additionalProperties": false
                      }
                    },
                    "phoneNumbers": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "value": {
                            "type": "string"
                          },
                          "display": {
                            "type": "string"
                          },
                          "type": {
                            "type": "string"
                          },
                          "primary": {
                            "type": "boolean"
                          }
                        },
                        "additionalProperties": false
                      }
                    },
                    "ims": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "value": {
                            "type": "string"
                          },
                          "display": {
                            "type": "string"
                          },
                          "type": {
                            "type": "string"
                          },
                          "primary": {
                            "type": "boolean"
                          }
                        },
                        "additionalProperties": false
                      }
                    },
                    "photos": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "value": {
                            "type": "string"
                          },
                          "display": {
                            "type": "string"
                          },
                          "type": {
                            "type": "string"
                          },
                          "primary": {
                            "type": "boolean"
                          }
                        },
                        "additionalProperties": false
                      }
                    },
                    "addresses": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "formatted": {
                            "type": "string"
                          },
                          "streetAddress": {
                            "type": "string"
                          },
                          "locality": {
                            "type": "string"
                          },
                          "region": {
                            "type": "string"
                          },
                          "postalCode": {
                            "type": "string"
                          },
                          "country": {
                            "type": "string"
                          },
                          "type": {
                            "type": "string"
                          },
                          "primary": {
                            "type": "boolean"
                          }
                        },
                        "additionalProperties": false
                      }
                    },
                    "entitlements": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "value": {
                            "type": "string"
                          },
                          "display": {
                            "type": "string"
                          },
                          "type": {
                            "type": "string"
                          },
                          "primary": {
                            "type": "boolean"
                          }
                        },
                        "additionalProperties": false
                      }
                    },
                    "roles": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "value": {
                            "type": "string"
                          },
                          "display": {
                            "type": "string"
                          },
                          "type": {
                            "type": "string"
                          },
                          "primary": {
                            "type": "boolean"
                          }
                        },
                        "additionalProperties": false
                      }
                    },
                    "x509Certificates": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "value": {
                            "type": "string"
                          },
                          "display": {
                            "type": "string"
                          },
                          "type": {
                            "type": "string"
                          },
                          "primary": {
                            "type": "boolean"
                          }
                        },
                        "additionalProperties": false
                      }
                    },
                    "schemas": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    "id": {
                      "type": "string"
                    },
                    "externalId": {
                      "type": "string"
                    },
                    "groups": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "value": {
                            "type": "string"
                          },
                          "$ref": {
                            "type": "string"
                          },
                          "display": {
                            "type": "string"
                          },
                          "type": {
                            "type": "string"
                          }
                        },
                        "required": [
                          "value",
                          "$ref",
                          "display",
                          "type"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "urn:ietf:params:scim:schemas:extension:enterprise:2.0:User": {
                      "type": "object",
                      "properties": {
                        "employeeNumber": {
                          "type": "string"
                        },
                        "costCenter": {
                          "type": "string"
                        },
                        "organization": {
                          "type": "string"
                        },
                        "division": {
                          "type": "string"
                        },
                        "department": {
                          "type": "string"
                        },
                        "manager": {
                          "type": "object",
                          "properties": {
                            "value": {
                              "type": "string"
                            },
                            "$ref": {
                              "type": "string"
                            },
                            "displayName": {
                              "type": "string"
                            }
                          },
                          "additionalProperties": false
                        }
                      },
                      "additionalProperties": false
                    },
                    "meta": {
                      "type": "object",
                      "properties": {
                        "resourceType": {
                          "type": "string"
                        },
                        "created": {
                          "type": "string",
                          "format": "date-time",
                          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                        },
                        "lastModified": {
                          "type": "string",
                          "format": "date-time",
                          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                        },
                        "location": {
                          "type": "string"
                        },
                        "version": {
                          "type": "string"
                        }
                      },
                      "required": [
                        "resourceType",
                        "created",
                        "lastModified",
                        "location",
                        "version"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "required": [
                    "userName",
                    "active",
                    "schemas",
                    "id",
                    "meta"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "404": {
            "description": "The codes: [`not_found`](https://authtempo.com/docs/reference/errors/#not_found).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "not_found"
                      ]
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "The codes: [`internal`](https://authtempo.com/docs/reference/errors/#internal).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "internal"
                      ]
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "scimToken": []
          }
        ]
      },
      "patch": {
        "tags": [
          "scim"
        ],
        "summary": "PATCH /scim/v2/Users/:id",
        "operationId": "patch-scim-v2-users-id",
        "externalDocs": {
          "url": "https://authtempo.com/docs/reference/routes/#patch-scim-v2-users-id"
        },
        "x-authtempo-feature": "scim",
        "x-authtempo-default": "off",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^[A-Za-z0-9._:-]{1,128}$"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The answer.",
            "content": {
              "application/scim+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "userName": {
                      "type": "string"
                    },
                    "name": {
                      "type": "object",
                      "properties": {
                        "formatted": {
                          "type": "string"
                        },
                        "familyName": {
                          "type": "string"
                        },
                        "givenName": {
                          "type": "string"
                        },
                        "middleName": {
                          "type": "string"
                        },
                        "honorificPrefix": {
                          "type": "string"
                        },
                        "honorificSuffix": {
                          "type": "string"
                        }
                      },
                      "additionalProperties": false
                    },
                    "displayName": {
                      "type": "string"
                    },
                    "nickName": {
                      "type": "string"
                    },
                    "profileUrl": {
                      "type": "string"
                    },
                    "title": {
                      "type": "string"
                    },
                    "userType": {
                      "type": "string"
                    },
                    "preferredLanguage": {
                      "type": "string"
                    },
                    "locale": {
                      "type": "string"
                    },
                    "timezone": {
                      "type": "string"
                    },
                    "active": {
                      "type": "boolean"
                    },
                    "emails": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "value": {
                            "type": "string"
                          },
                          "display": {
                            "type": "string"
                          },
                          "type": {
                            "type": "string"
                          },
                          "primary": {
                            "type": "boolean"
                          }
                        },
                        "additionalProperties": false
                      }
                    },
                    "phoneNumbers": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "value": {
                            "type": "string"
                          },
                          "display": {
                            "type": "string"
                          },
                          "type": {
                            "type": "string"
                          },
                          "primary": {
                            "type": "boolean"
                          }
                        },
                        "additionalProperties": false
                      }
                    },
                    "ims": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "value": {
                            "type": "string"
                          },
                          "display": {
                            "type": "string"
                          },
                          "type": {
                            "type": "string"
                          },
                          "primary": {
                            "type": "boolean"
                          }
                        },
                        "additionalProperties": false
                      }
                    },
                    "photos": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "value": {
                            "type": "string"
                          },
                          "display": {
                            "type": "string"
                          },
                          "type": {
                            "type": "string"
                          },
                          "primary": {
                            "type": "boolean"
                          }
                        },
                        "additionalProperties": false
                      }
                    },
                    "addresses": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "formatted": {
                            "type": "string"
                          },
                          "streetAddress": {
                            "type": "string"
                          },
                          "locality": {
                            "type": "string"
                          },
                          "region": {
                            "type": "string"
                          },
                          "postalCode": {
                            "type": "string"
                          },
                          "country": {
                            "type": "string"
                          },
                          "type": {
                            "type": "string"
                          },
                          "primary": {
                            "type": "boolean"
                          }
                        },
                        "additionalProperties": false
                      }
                    },
                    "entitlements": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "value": {
                            "type": "string"
                          },
                          "display": {
                            "type": "string"
                          },
                          "type": {
                            "type": "string"
                          },
                          "primary": {
                            "type": "boolean"
                          }
                        },
                        "additionalProperties": false
                      }
                    },
                    "roles": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "value": {
                            "type": "string"
                          },
                          "display": {
                            "type": "string"
                          },
                          "type": {
                            "type": "string"
                          },
                          "primary": {
                            "type": "boolean"
                          }
                        },
                        "additionalProperties": false
                      }
                    },
                    "x509Certificates": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "value": {
                            "type": "string"
                          },
                          "display": {
                            "type": "string"
                          },
                          "type": {
                            "type": "string"
                          },
                          "primary": {
                            "type": "boolean"
                          }
                        },
                        "additionalProperties": false
                      }
                    },
                    "schemas": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    "id": {
                      "type": "string"
                    },
                    "externalId": {
                      "type": "string"
                    },
                    "groups": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "value": {
                            "type": "string"
                          },
                          "$ref": {
                            "type": "string"
                          },
                          "display": {
                            "type": "string"
                          },
                          "type": {
                            "type": "string"
                          }
                        },
                        "required": [
                          "value",
                          "$ref",
                          "display",
                          "type"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "urn:ietf:params:scim:schemas:extension:enterprise:2.0:User": {
                      "type": "object",
                      "properties": {
                        "employeeNumber": {
                          "type": "string"
                        },
                        "costCenter": {
                          "type": "string"
                        },
                        "organization": {
                          "type": "string"
                        },
                        "division": {
                          "type": "string"
                        },
                        "department": {
                          "type": "string"
                        },
                        "manager": {
                          "type": "object",
                          "properties": {
                            "value": {
                              "type": "string"
                            },
                            "$ref": {
                              "type": "string"
                            },
                            "displayName": {
                              "type": "string"
                            }
                          },
                          "additionalProperties": false
                        }
                      },
                      "additionalProperties": false
                    },
                    "meta": {
                      "type": "object",
                      "properties": {
                        "resourceType": {
                          "type": "string"
                        },
                        "created": {
                          "type": "string",
                          "format": "date-time",
                          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                        },
                        "lastModified": {
                          "type": "string",
                          "format": "date-time",
                          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                        },
                        "location": {
                          "type": "string"
                        },
                        "version": {
                          "type": "string"
                        }
                      },
                      "required": [
                        "resourceType",
                        "created",
                        "lastModified",
                        "location",
                        "version"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "required": [
                    "userName",
                    "active",
                    "schemas",
                    "id",
                    "meta"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "404": {
            "description": "The codes: [`not_found`](https://authtempo.com/docs/reference/errors/#not_found).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "not_found"
                      ]
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "The codes: [`internal`](https://authtempo.com/docs/reference/errors/#internal).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "internal"
                      ]
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "scimToken": []
          }
        ]
      },
      "delete": {
        "tags": [
          "scim"
        ],
        "summary": "DELETE /scim/v2/Users/:id",
        "operationId": "delete-scim-v2-users-id",
        "externalDocs": {
          "url": "https://authtempo.com/docs/reference/routes/#delete-scim-v2-users-id"
        },
        "x-authtempo-feature": "scim",
        "x-authtempo-default": "off",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^[A-Za-z0-9._:-]{1,128}$"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The answer.",
            "content": {
              "application/scim+json": {
                "schema": {
                  "type": "null"
                }
              }
            }
          },
          "404": {
            "description": "The codes: [`not_found`](https://authtempo.com/docs/reference/errors/#not_found).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "not_found"
                      ]
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "The codes: [`internal`](https://authtempo.com/docs/reference/errors/#internal).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "internal"
                      ]
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "scimToken": []
          }
        ]
      }
    },
    "/scim/v2/Groups": {
      "get": {
        "tags": [
          "scim"
        ],
        "summary": "GET /scim/v2/Groups",
        "operationId": "get-scim-v2-groups",
        "externalDocs": {
          "url": "https://authtempo.com/docs/reference/routes/#get-scim-v2-groups"
        },
        "x-authtempo-feature": "scim",
        "x-authtempo-default": "off",
        "responses": {
          "200": {
            "description": "The answer.",
            "content": {
              "application/scim+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "schemas": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    "totalResults": {
                      "type": "number"
                    },
                    "startIndex": {
                      "type": "number"
                    },
                    "itemsPerPage": {
                      "type": "number"
                    },
                    "Resources": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "schemas": {
                            "type": "array",
                            "items": {
                              "type": "string"
                            }
                          },
                          "id": {
                            "type": "string"
                          },
                          "externalId": {
                            "type": "string"
                          },
                          "displayName": {
                            "type": "string"
                          },
                          "members": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {
                                "value": {
                                  "type": "string"
                                },
                                "$ref": {
                                  "type": "string"
                                },
                                "type": {
                                  "type": "string",
                                  "const": "User"
                                }
                              },
                              "required": [
                                "value",
                                "$ref",
                                "type"
                              ],
                              "additionalProperties": false
                            }
                          },
                          "meta": {
                            "type": "object",
                            "properties": {
                              "resourceType": {
                                "type": "string"
                              },
                              "created": {
                                "type": "string",
                                "format": "date-time",
                                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                              },
                              "lastModified": {
                                "type": "string",
                                "format": "date-time",
                                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                              },
                              "location": {
                                "type": "string"
                              },
                              "version": {
                                "type": "string"
                              }
                            },
                            "required": [
                              "resourceType",
                              "created",
                              "lastModified",
                              "location",
                              "version"
                            ],
                            "additionalProperties": false
                          }
                        },
                        "required": [
                          "schemas",
                          "id",
                          "meta"
                        ],
                        "additionalProperties": false
                      }
                    }
                  },
                  "required": [
                    "schemas",
                    "totalResults",
                    "startIndex",
                    "itemsPerPage",
                    "Resources"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "404": {
            "description": "The codes: [`not_found`](https://authtempo.com/docs/reference/errors/#not_found).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "not_found"
                      ]
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "The codes: [`internal`](https://authtempo.com/docs/reference/errors/#internal).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "internal"
                      ]
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "scimToken": []
          }
        ]
      },
      "post": {
        "tags": [
          "scim"
        ],
        "summary": "POST /scim/v2/Groups",
        "operationId": "post-scim-v2-groups",
        "externalDocs": {
          "url": "https://authtempo.com/docs/reference/routes/#post-scim-v2-groups"
        },
        "x-authtempo-feature": "scim",
        "x-authtempo-default": "off",
        "responses": {
          "200": {
            "description": "The answer.",
            "content": {
              "application/scim+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "schemas": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    "id": {
                      "type": "string"
                    },
                    "externalId": {
                      "type": "string"
                    },
                    "displayName": {
                      "type": "string"
                    },
                    "members": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "value": {
                            "type": "string"
                          },
                          "$ref": {
                            "type": "string"
                          },
                          "type": {
                            "type": "string",
                            "const": "User"
                          }
                        },
                        "required": [
                          "value",
                          "$ref",
                          "type"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "meta": {
                      "type": "object",
                      "properties": {
                        "resourceType": {
                          "type": "string"
                        },
                        "created": {
                          "type": "string",
                          "format": "date-time",
                          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                        },
                        "lastModified": {
                          "type": "string",
                          "format": "date-time",
                          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                        },
                        "location": {
                          "type": "string"
                        },
                        "version": {
                          "type": "string"
                        }
                      },
                      "required": [
                        "resourceType",
                        "created",
                        "lastModified",
                        "location",
                        "version"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "required": [
                    "schemas",
                    "id",
                    "displayName",
                    "meta"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "403": {
            "description": "The codes: [`origin_not_trusted`](https://authtempo.com/docs/reference/errors/#origin_not_trusted).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "origin_not_trusted"
                      ]
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "The codes: [`not_found`](https://authtempo.com/docs/reference/errors/#not_found).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "not_found"
                      ]
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "The codes: [`internal`](https://authtempo.com/docs/reference/errors/#internal).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "internal"
                      ]
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "scimToken": []
          }
        ]
      }
    },
    "/scim/v2/Groups/{id}": {
      "get": {
        "tags": [
          "scim"
        ],
        "summary": "GET /scim/v2/Groups/:id",
        "operationId": "get-scim-v2-groups-id",
        "externalDocs": {
          "url": "https://authtempo.com/docs/reference/routes/#get-scim-v2-groups-id"
        },
        "x-authtempo-feature": "scim",
        "x-authtempo-default": "off",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^[A-Za-z0-9._:-]{1,128}$"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The answer.",
            "content": {
              "application/scim+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "schemas": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    "id": {
                      "type": "string"
                    },
                    "externalId": {
                      "type": "string"
                    },
                    "displayName": {
                      "type": "string"
                    },
                    "members": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "value": {
                            "type": "string"
                          },
                          "$ref": {
                            "type": "string"
                          },
                          "type": {
                            "type": "string",
                            "const": "User"
                          }
                        },
                        "required": [
                          "value",
                          "$ref",
                          "type"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "meta": {
                      "type": "object",
                      "properties": {
                        "resourceType": {
                          "type": "string"
                        },
                        "created": {
                          "type": "string",
                          "format": "date-time",
                          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                        },
                        "lastModified": {
                          "type": "string",
                          "format": "date-time",
                          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                        },
                        "location": {
                          "type": "string"
                        },
                        "version": {
                          "type": "string"
                        }
                      },
                      "required": [
                        "resourceType",
                        "created",
                        "lastModified",
                        "location",
                        "version"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "required": [
                    "schemas",
                    "id",
                    "meta"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "404": {
            "description": "The codes: [`not_found`](https://authtempo.com/docs/reference/errors/#not_found).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "not_found"
                      ]
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "The codes: [`internal`](https://authtempo.com/docs/reference/errors/#internal).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "internal"
                      ]
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "scimToken": []
          }
        ]
      },
      "put": {
        "tags": [
          "scim"
        ],
        "summary": "PUT /scim/v2/Groups/:id",
        "operationId": "put-scim-v2-groups-id",
        "externalDocs": {
          "url": "https://authtempo.com/docs/reference/routes/#put-scim-v2-groups-id"
        },
        "x-authtempo-feature": "scim",
        "x-authtempo-default": "off",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^[A-Za-z0-9._:-]{1,128}$"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The answer.",
            "content": {
              "application/scim+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "schemas": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    "id": {
                      "type": "string"
                    },
                    "externalId": {
                      "type": "string"
                    },
                    "displayName": {
                      "type": "string"
                    },
                    "members": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "value": {
                            "type": "string"
                          },
                          "$ref": {
                            "type": "string"
                          },
                          "type": {
                            "type": "string",
                            "const": "User"
                          }
                        },
                        "required": [
                          "value",
                          "$ref",
                          "type"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "meta": {
                      "type": "object",
                      "properties": {
                        "resourceType": {
                          "type": "string"
                        },
                        "created": {
                          "type": "string",
                          "format": "date-time",
                          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                        },
                        "lastModified": {
                          "type": "string",
                          "format": "date-time",
                          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                        },
                        "location": {
                          "type": "string"
                        },
                        "version": {
                          "type": "string"
                        }
                      },
                      "required": [
                        "resourceType",
                        "created",
                        "lastModified",
                        "location",
                        "version"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "required": [
                    "schemas",
                    "id",
                    "displayName",
                    "meta"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "404": {
            "description": "The codes: [`not_found`](https://authtempo.com/docs/reference/errors/#not_found).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "not_found"
                      ]
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "The codes: [`internal`](https://authtempo.com/docs/reference/errors/#internal).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "internal"
                      ]
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "scimToken": []
          }
        ]
      },
      "patch": {
        "tags": [
          "scim"
        ],
        "summary": "PATCH /scim/v2/Groups/:id",
        "operationId": "patch-scim-v2-groups-id",
        "externalDocs": {
          "url": "https://authtempo.com/docs/reference/routes/#patch-scim-v2-groups-id"
        },
        "x-authtempo-feature": "scim",
        "x-authtempo-default": "off",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^[A-Za-z0-9._:-]{1,128}$"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The answer.",
            "content": {
              "application/scim+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "schemas": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    "id": {
                      "type": "string"
                    },
                    "externalId": {
                      "type": "string"
                    },
                    "displayName": {
                      "type": "string"
                    },
                    "members": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "value": {
                            "type": "string"
                          },
                          "$ref": {
                            "type": "string"
                          },
                          "type": {
                            "type": "string",
                            "const": "User"
                          }
                        },
                        "required": [
                          "value",
                          "$ref",
                          "type"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "meta": {
                      "type": "object",
                      "properties": {
                        "resourceType": {
                          "type": "string"
                        },
                        "created": {
                          "type": "string",
                          "format": "date-time",
                          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                        },
                        "lastModified": {
                          "type": "string",
                          "format": "date-time",
                          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                        },
                        "location": {
                          "type": "string"
                        },
                        "version": {
                          "type": "string"
                        }
                      },
                      "required": [
                        "resourceType",
                        "created",
                        "lastModified",
                        "location",
                        "version"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "required": [
                    "schemas",
                    "id",
                    "meta"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "404": {
            "description": "The codes: [`not_found`](https://authtempo.com/docs/reference/errors/#not_found).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "not_found"
                      ]
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "The codes: [`internal`](https://authtempo.com/docs/reference/errors/#internal).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "internal"
                      ]
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "scimToken": []
          }
        ]
      },
      "delete": {
        "tags": [
          "scim"
        ],
        "summary": "DELETE /scim/v2/Groups/:id",
        "operationId": "delete-scim-v2-groups-id",
        "externalDocs": {
          "url": "https://authtempo.com/docs/reference/routes/#delete-scim-v2-groups-id"
        },
        "x-authtempo-feature": "scim",
        "x-authtempo-default": "off",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^[A-Za-z0-9._:-]{1,128}$"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The answer.",
            "content": {
              "application/scim+json": {
                "schema": {
                  "type": "null"
                }
              }
            }
          },
          "404": {
            "description": "The codes: [`not_found`](https://authtempo.com/docs/reference/errors/#not_found).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "not_found"
                      ]
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "The codes: [`internal`](https://authtempo.com/docs/reference/errors/#internal).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "internal"
                      ]
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "scimToken": []
          }
        ]
      }
    },
    "/scim/v2/Bulk": {
      "post": {
        "tags": [
          "scim"
        ],
        "summary": "POST /scim/v2/Bulk",
        "operationId": "post-scim-v2-bulk",
        "externalDocs": {
          "url": "https://authtempo.com/docs/reference/routes/#post-scim-v2-bulk"
        },
        "x-authtempo-feature": "scim",
        "x-authtempo-default": "off",
        "responses": {
          "403": {
            "description": "The codes: [`origin_not_trusted`](https://authtempo.com/docs/reference/errors/#origin_not_trusted).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "origin_not_trusted"
                      ]
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "The codes: [`not_found`](https://authtempo.com/docs/reference/errors/#not_found).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "not_found"
                      ]
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "The codes: [`internal`](https://authtempo.com/docs/reference/errors/#internal).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "internal"
                      ]
                    }
                  }
                }
              }
            }
          },
          "501": {
            "description": "Not supported by this server: the SCIM error message of RFC 7644 section 3.12.",
            "content": {
              "application/scim+json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          }
        },
        "security": [
          {
            "scimToken": []
          }
        ]
      }
    },
    "/scim/v2/Me": {
      "get": {
        "tags": [
          "scim"
        ],
        "summary": "GET /scim/v2/Me",
        "operationId": "get-scim-v2-me",
        "externalDocs": {
          "url": "https://authtempo.com/docs/reference/routes/#get-scim-v2-me"
        },
        "x-authtempo-feature": "scim",
        "x-authtempo-default": "off",
        "responses": {
          "404": {
            "description": "The codes: [`not_found`](https://authtempo.com/docs/reference/errors/#not_found).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "not_found"
                      ]
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "The codes: [`internal`](https://authtempo.com/docs/reference/errors/#internal).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "internal"
                      ]
                    }
                  }
                }
              }
            }
          },
          "501": {
            "description": "Not supported by this server: the SCIM error message of RFC 7644 section 3.12.",
            "content": {
              "application/scim+json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          }
        },
        "security": [
          {
            "scimToken": []
          }
        ]
      }
    },
    "/scim/v2/.search": {
      "post": {
        "tags": [
          "scim"
        ],
        "summary": "POST /scim/v2/.search",
        "operationId": "post-scim-v2-search",
        "externalDocs": {
          "url": "https://authtempo.com/docs/reference/routes/#post-scim-v2-search"
        },
        "x-authtempo-feature": "scim",
        "x-authtempo-default": "off",
        "responses": {
          "403": {
            "description": "The codes: [`origin_not_trusted`](https://authtempo.com/docs/reference/errors/#origin_not_trusted).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "origin_not_trusted"
                      ]
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "The codes: [`not_found`](https://authtempo.com/docs/reference/errors/#not_found).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "not_found"
                      ]
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "The codes: [`internal`](https://authtempo.com/docs/reference/errors/#internal).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "internal"
                      ]
                    }
                  }
                }
              }
            }
          },
          "501": {
            "description": "Not supported by this server: the SCIM error message of RFC 7644 section 3.12.",
            "content": {
              "application/scim+json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          }
        },
        "security": [
          {
            "scimToken": []
          }
        ]
      }
    },
    "/scim/v2/Users/.search": {
      "post": {
        "tags": [
          "scim"
        ],
        "summary": "POST /scim/v2/Users/.search",
        "operationId": "post-scim-v2-users-search",
        "externalDocs": {
          "url": "https://authtempo.com/docs/reference/routes/#post-scim-v2-users-search"
        },
        "x-authtempo-feature": "scim",
        "x-authtempo-default": "off",
        "responses": {
          "403": {
            "description": "The codes: [`origin_not_trusted`](https://authtempo.com/docs/reference/errors/#origin_not_trusted).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "origin_not_trusted"
                      ]
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "The codes: [`not_found`](https://authtempo.com/docs/reference/errors/#not_found).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "not_found"
                      ]
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "The codes: [`internal`](https://authtempo.com/docs/reference/errors/#internal).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "internal"
                      ]
                    }
                  }
                }
              }
            }
          },
          "501": {
            "description": "Not supported by this server: the SCIM error message of RFC 7644 section 3.12.",
            "content": {
              "application/scim+json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          }
        },
        "security": [
          {
            "scimToken": []
          }
        ]
      }
    },
    "/scim/v2/Groups/.search": {
      "post": {
        "tags": [
          "scim"
        ],
        "summary": "POST /scim/v2/Groups/.search",
        "operationId": "post-scim-v2-groups-search",
        "externalDocs": {
          "url": "https://authtempo.com/docs/reference/routes/#post-scim-v2-groups-search"
        },
        "x-authtempo-feature": "scim",
        "x-authtempo-default": "off",
        "responses": {
          "403": {
            "description": "The codes: [`origin_not_trusted`](https://authtempo.com/docs/reference/errors/#origin_not_trusted).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "origin_not_trusted"
                      ]
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "The codes: [`not_found`](https://authtempo.com/docs/reference/errors/#not_found).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "not_found"
                      ]
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "The codes: [`internal`](https://authtempo.com/docs/reference/errors/#internal).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "internal"
                      ]
                    }
                  }
                }
              }
            }
          },
          "501": {
            "description": "Not supported by this server: the SCIM error message of RFC 7644 section 3.12.",
            "content": {
              "application/scim+json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          }
        },
        "security": [
          {
            "scimToken": []
          }
        ]
      }
    },
    "/.well-known/webauthn": {
      "get": {
        "tags": [
          "passkeyRelatedOrigins"
        ],
        "summary": "GET /.well-known/webauthn",
        "operationId": "get-well-known-webauthn",
        "externalDocs": {
          "url": "https://authtempo.com/docs/reference/routes/#get-well-known-webauthn"
        },
        "x-authtempo-feature": "passkeyRelatedOrigins",
        "x-authtempo-default": "off",
        "responses": {
          "200": {
            "description": "The answer.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "origins": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    }
                  },
                  "required": [
                    "origins"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "404": {
            "description": "The codes: [`not_found`](https://authtempo.com/docs/reference/errors/#not_found).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "not_found"
                      ]
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "The codes: [`internal`](https://authtempo.com/docs/reference/errors/#internal).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "internal"
                      ]
                    }
                  }
                }
              }
            }
          }
        },
        "security": []
      }
    },
    "/openapi.json": {
      "get": {
        "tags": [
          "openapi"
        ],
        "summary": "GET /openapi.json",
        "operationId": "get-openapi-json",
        "externalDocs": {
          "url": "https://authtempo.com/docs/reference/routes/#get-openapi-json"
        },
        "x-authtempo-feature": "openapi",
        "x-authtempo-default": "off",
        "responses": {
          "200": {
            "description": "This OpenAPI document, by the [OpenAPI Specification 3.1.2](https://spec.openapis.org/oas/v3.1.2.html).",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "404": {
            "description": "The codes: [`not_found`](https://authtempo.com/docs/reference/errors/#not_found).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "not_found"
                      ]
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "The codes: [`internal`](https://authtempo.com/docs/reference/errors/#internal).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "internal"
                      ]
                    }
                  }
                }
              }
            }
          }
        },
        "security": []
      }
    },
    "/health": {
      "get": {
        "tags": [
          "health"
        ],
        "summary": "GET /health",
        "operationId": "get-health",
        "externalDocs": {
          "url": "https://authtempo.com/docs/reference/routes/#get-health"
        },
        "x-authtempo-feature": "health",
        "x-authtempo-default": "on",
        "responses": {
          "200": {
            "description": "The answer.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "status": {
                      "type": "string",
                      "const": "ok"
                    }
                  },
                  "required": [
                    "status"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "404": {
            "description": "The codes: [`not_found`](https://authtempo.com/docs/reference/errors/#not_found).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "not_found"
                      ]
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "The codes: [`internal`](https://authtempo.com/docs/reference/errors/#internal).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "internal"
                      ]
                    }
                  }
                }
              }
            }
          }
        },
        "security": []
      }
    },
    "/ready": {
      "get": {
        "tags": [
          "readiness"
        ],
        "summary": "GET /ready",
        "operationId": "get-ready",
        "externalDocs": {
          "url": "https://authtempo.com/docs/reference/routes/#get-ready"
        },
        "x-authtempo-feature": "readiness",
        "x-authtempo-default": "off",
        "responses": {
          "200": {
            "description": "The answer.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "status": {
                      "type": "string",
                      "const": "ready"
                    }
                  },
                  "required": [
                    "status"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "404": {
            "description": "The codes: [`not_found`](https://authtempo.com/docs/reference/errors/#not_found).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "not_found"
                      ]
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "The codes: [`internal`](https://authtempo.com/docs/reference/errors/#internal).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "internal"
                      ]
                    }
                  }
                }
              }
            }
          },
          "503": {
            "description": "The codes: [`not_ready`](https://authtempo.com/docs/reference/errors/#not_ready).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error",
                  "properties": {
                    "error": {
                      "enum": [
                        "not_ready"
                      ]
                    }
                  }
                }
              }
            }
          }
        },
        "security": []
      }
    }
  },
  "components": {
    "schemas": {
      "Error": {
        "type": "object",
        "properties": {
          "error": {
            "type": "string"
          },
          "message": {
            "type": "string",
            "description": "The app's text on `hook_refused`, or the rule that an SSO or SCIM manager body broke on `invalid_body`."
          },
          "reason": {
            "type": "string",
            "enum": [
              "storage",
              "schema"
            ],
            "description": "What is not ready. Present only on `not_ready`."
          },
          "detail": {
            "type": "string",
            "description": "On `sso_required`, the SSO start URL of the address, absolute, on the origin of `baseURL`. On the `conflict` of a sign-up confirm that lost its claim, a sentence that says to sign in. Present only on these two."
          }
        },
        "required": [
          "error"
        ],
        "additionalProperties": false
      },
      "OAuthError": {
        "type": "object",
        "properties": {
          "error": {
            "type": "string"
          }
        },
        "required": [
          "error"
        ],
        "additionalProperties": false
      },
      "CreationOptionsJson": {
        "type": "object",
        "properties": {
          "rp": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "name": {
                "type": "string"
              }
            },
            "required": [
              "name"
            ],
            "additionalProperties": false
          },
          "user": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "name": {
                "type": "string"
              },
              "displayName": {
                "type": "string"
              }
            },
            "required": [
              "id",
              "name",
              "displayName"
            ],
            "additionalProperties": false
          },
          "challenge": {
            "type": "string"
          },
          "pubKeyCredParams": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "alg": {
                  "type": "integer",
                  "minimum": -9007199254740991,
                  "maximum": 9007199254740991
                },
                "type": {
                  "type": "string",
                  "const": "public-key"
                }
              },
              "required": [
                "alg",
                "type"
              ],
              "additionalProperties": false
            }
          },
          "timeout": {
            "type": "integer",
            "minimum": -9007199254740991,
            "maximum": 9007199254740991
          },
          "excludeCredentials": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string"
                },
                "type": {
                  "type": "string",
                  "const": "public-key"
                },
                "transports": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              },
              "required": [
                "id",
                "type"
              ],
              "additionalProperties": false
            }
          },
          "authenticatorSelection": {
            "type": "object",
            "properties": {
              "authenticatorAttachment": {
                "type": "string",
                "enum": [
                  "platform",
                  "cross-platform"
                ]
              },
              "requireResidentKey": {
                "type": "boolean"
              },
              "residentKey": {
                "type": "string",
                "enum": [
                  "required",
                  "preferred",
                  "discouraged"
                ]
              },
              "userVerification": {
                "type": "string",
                "enum": [
                  "required",
                  "preferred",
                  "discouraged"
                ]
              }
            },
            "additionalProperties": false
          },
          "hints": {
            "type": "array",
            "items": {
              "type": "string",
              "enum": [
                "security-key",
                "client-device",
                "hybrid"
              ]
            }
          },
          "attestation": {
            "type": "string",
            "enum": [
              "none",
              "indirect",
              "direct",
              "enterprise"
            ]
          },
          "attestationFormats": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "extensions": {
            "type": "object",
            "propertyNames": {
              "type": "string"
            },
            "additionalProperties": {}
          }
        },
        "required": [
          "rp",
          "user",
          "challenge",
          "pubKeyCredParams"
        ],
        "additionalProperties": false
      },
      "LastMethodJson": {
        "anyOf": [
          {
            "type": "string",
            "enum": [
              "password",
              "username",
              "phone",
              "magic_link",
              "email_otp",
              "passkey"
            ]
          },
          {
            "type": "string",
            "pattern": "^social:[a-z][a-z0-9-]{0,31}$"
          }
        ]
      },
      "OkAnswer": {
        "type": "object",
        "properties": {
          "ok": {
            "type": "boolean",
            "const": true
          }
        },
        "required": [
          "ok"
        ],
        "additionalProperties": false
      },
      "PasskeySummary": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "credentialId": {
            "type": "string"
          },
          "name": {
            "type": [
              "string",
              "null"
            ]
          },
          "deviceType": {
            "type": "string"
          },
          "backedUp": {
            "type": "boolean"
          },
          "discoverable": {
            "type": [
              "boolean",
              "null"
            ]
          },
          "prf": {
            "type": "boolean"
          },
          "largeBlob": {
            "type": "boolean"
          },
          "createdAt": {
            "type": "string",
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
          }
        },
        "required": [
          "id",
          "credentialId",
          "name",
          "deviceType",
          "backedUp",
          "discoverable",
          "prf",
          "largeBlob",
          "createdAt"
        ],
        "additionalProperties": false
      },
      "RequestOptionsJson": {
        "type": "object",
        "properties": {
          "challenge": {
            "type": "string"
          },
          "timeout": {
            "type": "integer",
            "minimum": -9007199254740991,
            "maximum": 9007199254740991
          },
          "rpId": {
            "type": "string"
          },
          "allowCredentials": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string"
                },
                "type": {
                  "type": "string",
                  "const": "public-key"
                },
                "transports": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              },
              "required": [
                "id",
                "type"
              ],
              "additionalProperties": false
            }
          },
          "userVerification": {
            "type": "string",
            "enum": [
              "required",
              "preferred",
              "discouraged"
            ]
          },
          "hints": {
            "type": "array",
            "items": {
              "type": "string",
              "enum": [
                "security-key",
                "client-device",
                "hybrid"
              ]
            }
          },
          "extensions": {
            "type": "object",
            "propertyNames": {
              "type": "string"
            },
            "additionalProperties": {}
          }
        },
        "required": [
          "challenge"
        ],
        "additionalProperties": false
      },
      "SentAnswer": {
        "type": "object",
        "properties": {
          "sent": {
            "type": "boolean",
            "const": true
          }
        },
        "required": [
          "sent"
        ],
        "additionalProperties": false
      },
      "SessionAnswer": {
        "type": "object",
        "properties": {
          "user": {
            "$ref": "#/components/schemas/UserJson"
          },
          "session": {
            "$ref": "#/components/schemas/SessionJson"
          }
        },
        "required": [
          "user",
          "session"
        ],
        "additionalProperties": false
      },
      "SessionJson": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "expiresAt": {
            "type": "string",
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
          },
          "activeOrganizationId": {
            "type": [
              "string",
              "null"
            ]
          },
          "actorId": {
            "type": [
              "string",
              "null"
            ]
          },
          "activeTeamId": {
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [
          "id",
          "expiresAt",
          "activeOrganizationId",
          "actorId",
          "activeTeamId"
        ],
        "additionalProperties": false
      },
      "SessionReadAnswer": {
        "type": "object",
        "properties": {
          "user": {
            "$ref": "#/components/schemas/UserJson"
          },
          "session": {
            "$ref": "#/components/schemas/SessionJson"
          },
          "needsRefresh": {
            "type": "boolean"
          }
        },
        "required": [
          "user",
          "session"
        ],
        "additionalProperties": false
      },
      "SessionSignInAnswer": {
        "type": "object",
        "properties": {
          "user": {
            "$ref": "#/components/schemas/UserJson"
          },
          "session": {
            "$ref": "#/components/schemas/SessionJson"
          },
          "via": {
            "$ref": "#/components/schemas/LastMethodJson"
          }
        },
        "required": [
          "user",
          "session"
        ],
        "additionalProperties": false
      },
      "SignInAnswer": {
        "type": "object",
        "properties": {
          "token": {
            "type": "string"
          },
          "user": {
            "$ref": "#/components/schemas/UserJson"
          },
          "session": {
            "$ref": "#/components/schemas/SessionJson"
          },
          "via": {
            "$ref": "#/components/schemas/LastMethodJson"
          }
        },
        "required": [
          "token",
          "user",
          "session"
        ],
        "additionalProperties": false
      },
      "SignedInAnswer": {
        "type": "object",
        "properties": {
          "token": {
            "type": "string"
          },
          "user": {
            "$ref": "#/components/schemas/UserJson"
          },
          "session": {
            "$ref": "#/components/schemas/SessionJson"
          }
        },
        "required": [
          "token",
          "user",
          "session"
        ],
        "additionalProperties": false
      },
      "TwoFactorChallenge": {
        "type": "object",
        "properties": {
          "twoFactor": {
            "type": "object",
            "properties": {
              "challenge": {
                "type": "string"
              },
              "expiresAt": {
                "type": "string",
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
              },
              "methods": {
                "type": "array",
                "items": {
                  "type": "string",
                  "enum": [
                    "passkey",
                    "totp",
                    "email",
                    "backup"
                  ]
                }
              }
            },
            "required": [
              "challenge",
              "expiresAt",
              "methods"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "twoFactor"
        ],
        "additionalProperties": false
      },
      "UserJson": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "email": {
            "type": [
              "string",
              "null"
            ]
          },
          "emailVerified": {
            "type": "boolean"
          },
          "name": {
            "type": [
              "string",
              "null"
            ]
          },
          "image": {
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [
          "id",
          "email",
          "emailVerified",
          "name",
          "image"
        ],
        "additionalProperties": false
      }
    },
    "securitySchemes": {
      "sessionCookie": {
        "type": "apiKey",
        "in": "cookie",
        "name": "__Host-tempo_session",
        "description": "The session cookie that a sign-in sets."
      },
      "sessionBearer": {
        "type": "http",
        "scheme": "bearer",
        "description": "A session token as the bearer. It starts with `ts_`."
      },
      "apiToken": {
        "type": "http",
        "scheme": "bearer",
        "description": "An API token as the bearer. It starts with `tk_`."
      },
      "organizationToken": {
        "type": "http",
        "scheme": "bearer",
        "description": "A token of an organization as the bearer (plan 12k). It starts with `to_`."
      },
      "sessionJwt": {
        "type": "http",
        "scheme": "bearer",
        "bearerFormat": "JWT",
        "description": "A session JWT as the bearer."
      },
      "oauth": {
        "type": "oauth2",
        "description": "An access token of the provider, from the authorization code flow. A public client proves itself with PKCE (S256). A confidential client sends its secret, by `client_secret_basic` or `client_secret_post`. It may omit PKCE only when it asks `openid` with a `nonce`.",
        "flows": {
          "authorizationCode": {
            "authorizationUrl": "/auth/oauth/authorize",
            "tokenUrl": "/auth/oauth/token",
            "refreshUrl": "/auth/oauth/token",
            "scopes": {
              "openid": "Confirm who you are",
              "profile": "See your name and picture",
              "email": "See your email address",
              "offline_access": "Stay connected after you close the app"
            }
          }
        }
      },
      "operatorSecret": {
        "type": "apiKey",
        "in": "header",
        "name": "Authorization",
        "description": "The operator secret, as `Operator <secret>`. `Operator` is not a registered HTTP authentication scheme, so the scheme is an API key in the header."
      },
      "initialAccessToken": {
        "type": "http",
        "scheme": "bearer",
        "description": "The initial access token of RFC 7591 as the bearer. The register route needs it while `oauth.registration.initialAccessTokenHash` is set."
      },
      "clientSecretBasic": {
        "type": "http",
        "scheme": "basic",
        "description": "The client id and the client secret of a client with a secret, as HTTP Basic. Each half is form-encoded first (RFC 6749 section 2.3.1)."
      },
      "oauthDpop": {
        "type": "http",
        "scheme": "DPoP",
        "description": "A DPoP-bound access token of the provider, as `Authorization: DPoP <token>`, with a proof of its key in the `DPoP` header (RFC 9449 section 7.1). A bound token never passes as a bearer."
      },
      "scimToken": {
        "type": "http",
        "scheme": "bearer",
        "description": "A SCIM token of an organization as the bearer (plan 12d). It starts with `sk_`. Only the routes under `/scim/v2` take it."
      },
      "setupCookie": {
        "type": "apiKey",
        "in": "cookie",
        "name": "__Host-tempo_setup",
        "description": "The cookie of a setup session (plan 13a). The open of a setup link sets it. Only the routes of the setup session take it."
      }
    }
  }
}
