massive update, probably broken
[dotfiles/.git] / .config / coc / extensions / node_modules / coc-pyright / node_modules / pyright / dist / typeshed-fallback / stubs / oauthlib / oauthlib / oauth2 / rfc6749 / errors.pyi
1 from typing import Any
2
3 class OAuth2Error(Exception):
4     error: Any
5     status_code: int
6     description: str
7     uri: Any
8     state: Any
9     redirect_uri: Any
10     client_id: Any
11     scopes: Any
12     response_type: Any
13     response_mode: Any
14     grant_type: Any
15     def __init__(
16         self,
17         description: Any | None = ...,
18         uri: Any | None = ...,
19         state: Any | None = ...,
20         status_code: Any | None = ...,
21         request: Any | None = ...,
22     ) -> None: ...
23     def in_uri(self, uri): ...
24     @property
25     def twotuples(self): ...
26     @property
27     def urlencoded(self): ...
28     @property
29     def json(self): ...
30     @property
31     def headers(self): ...
32
33 class TokenExpiredError(OAuth2Error):
34     error: str
35
36 class InsecureTransportError(OAuth2Error):
37     error: str
38     description: str
39
40 class MismatchingStateError(OAuth2Error):
41     error: str
42     description: str
43
44 class MissingCodeError(OAuth2Error):
45     error: str
46
47 class MissingTokenError(OAuth2Error):
48     error: str
49
50 class MissingTokenTypeError(OAuth2Error):
51     error: str
52
53 class FatalClientError(OAuth2Error): ...
54
55 class InvalidRequestFatalError(FatalClientError):
56     error: str
57
58 class InvalidRedirectURIError(InvalidRequestFatalError):
59     description: str
60
61 class MissingRedirectURIError(InvalidRequestFatalError):
62     description: str
63
64 class MismatchingRedirectURIError(InvalidRequestFatalError):
65     description: str
66
67 class InvalidClientIdError(InvalidRequestFatalError):
68     description: str
69
70 class MissingClientIdError(InvalidRequestFatalError):
71     description: str
72
73 class InvalidRequestError(OAuth2Error):
74     error: str
75
76 class MissingResponseTypeError(InvalidRequestError):
77     description: str
78
79 class MissingCodeChallengeError(InvalidRequestError):
80     description: str
81
82 class MissingCodeVerifierError(InvalidRequestError):
83     description: str
84
85 class AccessDeniedError(OAuth2Error):
86     error: str
87
88 class UnsupportedResponseTypeError(OAuth2Error):
89     error: str
90
91 class UnsupportedCodeChallengeMethodError(InvalidRequestError):
92     description: str
93
94 class InvalidScopeError(OAuth2Error):
95     error: str
96
97 class ServerError(OAuth2Error):
98     error: str
99
100 class TemporarilyUnavailableError(OAuth2Error):
101     error: str
102
103 class InvalidClientError(FatalClientError):
104     error: str
105     status_code: int
106
107 class InvalidGrantError(OAuth2Error):
108     error: str
109     status_code: int
110
111 class UnauthorizedClientError(OAuth2Error):
112     error: str
113
114 class UnsupportedGrantTypeError(OAuth2Error):
115     error: str
116
117 class UnsupportedTokenTypeError(OAuth2Error):
118     error: str
119
120 class InvalidTokenError(OAuth2Error):
121     error: str
122     status_code: int
123     description: str
124
125 class InsufficientScopeError(OAuth2Error):
126     error: str
127     status_code: int
128     description: str
129
130 class ConsentRequired(OAuth2Error):
131     error: str
132
133 class LoginRequired(OAuth2Error):
134     error: str
135
136 class CustomOAuth2Error(OAuth2Error):
137     error: Any
138     def __init__(self, error, *args, **kwargs) -> None: ...
139
140 def raise_from_error(error, params: Any | None = ...) -> None: ...