massive update, probably broken
[dotfiles/.git] / .config / coc / extensions / node_modules / coc-pyright / node_modules / pyright / dist / typeshed-fallback / stubs / oauthlib / oauthlib / openid / connect / core / exceptions.pyi
diff --git a/.config/coc/extensions/node_modules/coc-pyright/node_modules/pyright/dist/typeshed-fallback/stubs/oauthlib/oauthlib/openid/connect/core/exceptions.pyi b/.config/coc/extensions/node_modules/coc-pyright/node_modules/pyright/dist/typeshed-fallback/stubs/oauthlib/oauthlib/openid/connect/core/exceptions.pyi
new file mode 100644 (file)
index 0000000..0a64f1b
--- /dev/null
@@ -0,0 +1,53 @@
+from typing import Any
+
+from oauthlib.oauth2.rfc6749.errors import FatalClientError as FatalClientError, OAuth2Error as OAuth2Error
+
+class FatalOpenIDClientError(FatalClientError): ...
+class OpenIDClientError(OAuth2Error): ...
+
+class InteractionRequired(OpenIDClientError):
+    error: str
+    status_code: int
+
+class LoginRequired(OpenIDClientError):
+    error: str
+    status_code: int
+
+class AccountSelectionRequired(OpenIDClientError):
+    error: str
+
+class ConsentRequired(OpenIDClientError):
+    error: str
+    status_code: int
+
+class InvalidRequestURI(OpenIDClientError):
+    error: str
+    description: str
+
+class InvalidRequestObject(OpenIDClientError):
+    error: str
+    description: str
+
+class RequestNotSupported(OpenIDClientError):
+    error: str
+    description: str
+
+class RequestURINotSupported(OpenIDClientError):
+    error: str
+    description: str
+
+class RegistrationNotSupported(OpenIDClientError):
+    error: str
+    description: str
+
+class InvalidTokenError(OAuth2Error):
+    error: str
+    status_code: int
+    description: str
+
+class InsufficientScopeError(OAuth2Error):
+    error: str
+    status_code: int
+    description: str
+
+def raise_from_error(error, params: Any | None = ...) -> None: ...