cliV1 0.0.8__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (87) hide show
  1. cliv1-0.0.8.dist-info/METADATA +168 -0
  2. cliv1-0.0.8.dist-info/RECORD +87 -0
  3. cliv1-0.0.8.dist-info/WHEEL +4 -0
  4. cliv1-0.0.8.dist-info/licenses/LICENSE +21 -0
  5. swagger_petstore_open_api_3_0/__init__.py +15 -0
  6. swagger_petstore_open_api_3_0/apis/__init__.py +5 -0
  7. swagger_petstore_open_api_3_0/apis/pet_api.py +883 -0
  8. swagger_petstore_open_api_3_0/apis/store.py +413 -0
  9. swagger_petstore_open_api_3_0/apis/user_api.py +794 -0
  10. swagger_petstore_open_api_3_0/async_client.py +79 -0
  11. swagger_petstore_open_api_3_0/auth.py +17 -0
  12. swagger_petstore_open_api_3_0/base_client.py +18 -0
  13. swagger_petstore_open_api_3_0/client.py +77 -0
  14. swagger_petstore_open_api_3_0/core/__init__.py +358 -0
  15. swagger_petstore_open_api_3_0/core/_internal/__init__.py +9 -0
  16. swagger_petstore_open_api_3_0/core/_internal/content_disposition.py +154 -0
  17. swagger_petstore_open_api_3_0/core/_internal/flattening.py +139 -0
  18. swagger_petstore_open_api_3_0/core/_internal/headers.py +144 -0
  19. swagger_petstore_open_api_3_0/core/_internal/sse_parser.py +124 -0
  20. swagger_petstore_open_api_3_0/core/_internal/subscripts.py +50 -0
  21. swagger_petstore_open_api_3_0/core/_internal/urls.py +186 -0
  22. swagger_petstore_open_api_3_0/core/_internal/wire.py +198 -0
  23. swagger_petstore_open_api_3_0/core/adapters.py +177 -0
  24. swagger_petstore_open_api_3_0/core/auth/__init__.py +70 -0
  25. swagger_petstore_open_api_3_0/core/auth/composition.py +175 -0
  26. swagger_petstore_open_api_3_0/core/auth/models.py +216 -0
  27. swagger_petstore_open_api_3_0/core/auth/protocols.py +103 -0
  28. swagger_petstore_open_api_3_0/core/auth/schemes/__init__.py +94 -0
  29. swagger_petstore_open_api_3_0/core/auth/schemes/api_key_auth.py +53 -0
  30. swagger_petstore_open_api_3_0/core/auth/schemes/basic_auth.py +73 -0
  31. swagger_petstore_open_api_3_0/core/auth/schemes/bearer_auth.py +21 -0
  32. swagger_petstore_open_api_3_0/core/auth/schemes/oauth2_authorization_code.py +393 -0
  33. swagger_petstore_open_api_3_0/core/auth/schemes/oauth2_client_credentials.py +127 -0
  34. swagger_petstore_open_api_3_0/core/auth/schemes/oauth2_password.py +142 -0
  35. swagger_petstore_open_api_3_0/core/auth/schemes/oauth2_schemes.py +300 -0
  36. swagger_petstore_open_api_3_0/core/base_raw_response.py +49 -0
  37. swagger_petstore_open_api_3_0/core/bodies.py +550 -0
  38. swagger_petstore_open_api_3_0/core/converters/__init__.py +68 -0
  39. swagger_petstore_open_api_3_0/core/converters/date_time.py +237 -0
  40. swagger_petstore_open_api_3_0/core/converters/encoded_bytes.py +273 -0
  41. swagger_petstore_open_api_3_0/core/converters/open_enum.py +35 -0
  42. swagger_petstore_open_api_3_0/core/decoding.py +498 -0
  43. swagger_petstore_open_api_3_0/core/discriminators.py +129 -0
  44. swagger_petstore_open_api_3_0/core/event_streams.py +225 -0
  45. swagger_petstore_open_api_3_0/core/exceptions.py +38 -0
  46. swagger_petstore_open_api_3_0/core/file_responses.py +335 -0
  47. swagger_petstore_open_api_3_0/core/files.py +173 -0
  48. swagger_petstore_open_api_3_0/core/httpx_transport.py +748 -0
  49. swagger_petstore_open_api_3_0/core/models.py +143 -0
  50. swagger_petstore_open_api_3_0/core/optionality.py +130 -0
  51. swagger_petstore_open_api_3_0/core/params.py +157 -0
  52. swagger_petstore_open_api_3_0/core/raw_client.py +338 -0
  53. swagger_petstore_open_api_3_0/core/request_options.py +94 -0
  54. swagger_petstore_open_api_3_0/core/results.py +123 -0
  55. swagger_petstore_open_api_3_0/core/runtime_env.py +43 -0
  56. swagger_petstore_open_api_3_0/core/servers.py +33 -0
  57. swagger_petstore_open_api_3_0/core/transport.py +191 -0
  58. swagger_petstore_open_api_3_0/errors/__init__.py +48 -0
  59. swagger_petstore_open_api_3_0/errors/add_pet_error.py +21 -0
  60. swagger_petstore_open_api_3_0/errors/delete_order_error.py +21 -0
  61. swagger_petstore_open_api_3_0/errors/delete_pet_error.py +21 -0
  62. swagger_petstore_open_api_3_0/errors/delete_user_error.py +21 -0
  63. swagger_petstore_open_api_3_0/errors/find_pets_by_status_error.py +21 -0
  64. swagger_petstore_open_api_3_0/errors/find_pets_by_tags_error.py +21 -0
  65. swagger_petstore_open_api_3_0/errors/get_order_by_id_error.py +21 -0
  66. swagger_petstore_open_api_3_0/errors/get_pet_by_id_error.py +21 -0
  67. swagger_petstore_open_api_3_0/errors/get_user_by_name_error.py +21 -0
  68. swagger_petstore_open_api_3_0/errors/login_user_error.py +21 -0
  69. swagger_petstore_open_api_3_0/errors/place_order_error.py +21 -0
  70. swagger_petstore_open_api_3_0/errors/update_pet_error.py +21 -0
  71. swagger_petstore_open_api_3_0/errors/update_pet_with_form_error.py +21 -0
  72. swagger_petstore_open_api_3_0/errors/update_user_error.py +21 -0
  73. swagger_petstore_open_api_3_0/errors/upload_file_error.py +21 -0
  74. swagger_petstore_open_api_3_0/models/__init__.py +23 -0
  75. swagger_petstore_open_api_3_0/models/api_response.py +18 -0
  76. swagger_petstore_open_api_3_0/models/category.py +15 -0
  77. swagger_petstore_open_api_3_0/models/enums/__init__.py +4 -0
  78. swagger_petstore_open_api_3_0/models/enums/order_status.py +17 -0
  79. swagger_petstore_open_api_3_0/models/enums/pet_status.py +17 -0
  80. swagger_petstore_open_api_3_0/models/order.py +27 -0
  81. swagger_petstore_open_api_3_0/models/pet.py +28 -0
  82. swagger_petstore_open_api_3_0/models/tag_model.py +15 -0
  83. swagger_petstore_open_api_3_0/models/user.py +29 -0
  84. swagger_petstore_open_api_3_0/py.typed +0 -0
  85. swagger_petstore_open_api_3_0/server/__init__.py +21 -0
  86. swagger_petstore_open_api_3_0/server/server.py +17 -0
  87. swagger_petstore_open_api_3_0/server/server_config.py +52 -0
@@ -0,0 +1,79 @@
1
+ from __future__ import annotations
2
+
3
+ from functools import cached_property
4
+ from types import TracebackType
5
+
6
+ from typing_extensions import Self
7
+
8
+ from .apis.pet_api import AsyncPetApi
9
+ from .apis.store import AsyncStore
10
+ from .apis.user_api import AsyncUserApi
11
+ from .auth import AsyncAuthSchemes
12
+ from .base_client import DEFAULT_TIMEOUT, BaseSwaggerPetstoreOpenApi30Client
13
+ from .core import (
14
+ OPERATING_SYSTEM,
15
+ PYTHON_RUNTIME,
16
+ ApiKeyHeaderScheme,
17
+ AsyncHttpClient,
18
+ AsyncHttpxClient,
19
+ AsyncRawClient,
20
+ no_auth,
21
+ param,
22
+ )
23
+ from .server.server_config import ServerConfigOrDict
24
+
25
+
26
+ class AsyncSwaggerPetstoreOpenApi30Client(BaseSwaggerPetstoreOpenApi30Client[AsyncRawClient]):
27
+ def __init__(
28
+ self,
29
+ *,
30
+ server_config: ServerConfigOrDict | None = None,
31
+ timeout: float = DEFAULT_TIMEOUT,
32
+ custom_async_http_client: AsyncHttpClient | None = None,
33
+ petstore_auth: str | None = None,
34
+ api_key: str | None = None,
35
+ ) -> None:
36
+ super().__init__(server_config=server_config, timeout=timeout)
37
+ self._raw_client = AsyncRawClient(
38
+ http_client=(
39
+ custom_async_http_client if custom_async_http_client is not None else AsyncHttpxClient(timeout=timeout)
40
+ ),
41
+ global_headers=[
42
+ param[str]("User-Agent", "SwaggerPetstoreOpenApi30Client/1.0.26 Python"),
43
+ param[str]("X-APIMatic-Lang", "Python"),
44
+ param[str]("X-APIMatic-Package-Version", "1.0.26"),
45
+ param[str]("X-APIMatic-Gen-Version", "4.0.0"),
46
+ param[str]("X-APIMatic-OS", OPERATING_SYSTEM),
47
+ param[str]("X-APIMatic-Runtime", PYTHON_RUNTIME),
48
+ ],
49
+ )
50
+ self._auth = AsyncAuthSchemes(
51
+ petstore_auth=ApiKeyHeaderScheme("Authorization", petstore_auth) if petstore_auth is not None else no_auth,
52
+ api_key=ApiKeyHeaderScheme("api_key", api_key) if api_key is not None else no_auth,
53
+ )
54
+
55
+ @cached_property
56
+ def pet_api(self) -> AsyncPetApi:
57
+ return AsyncPetApi(self._raw_client, self._server, self._auth)
58
+
59
+ @cached_property
60
+ def store(self) -> AsyncStore:
61
+ return AsyncStore(self._raw_client, self._server, self._auth)
62
+
63
+ @cached_property
64
+ def user_api(self) -> AsyncUserApi:
65
+ return AsyncUserApi(self._raw_client, self._server)
66
+
67
+ async def aclose(self) -> None:
68
+ await self._raw_client.http_client.aclose()
69
+
70
+ async def __aenter__(self) -> Self:
71
+ return self
72
+
73
+ async def __aexit__(
74
+ self, exc_type: type[BaseException] | None, exc: BaseException | None, exc_tb: TracebackType | None
75
+ ) -> None:
76
+ await self.aclose()
77
+
78
+
79
+ AsyncClient = AsyncSwaggerPetstoreOpenApi30Client
@@ -0,0 +1,17 @@
1
+ from __future__ import annotations
2
+
3
+ from dataclasses import dataclass
4
+
5
+ from .core import AsyncAuthScheme, AuthScheme
6
+
7
+
8
+ @dataclass(frozen=True, slots=True, kw_only=True)
9
+ class AuthSchemes:
10
+ petstore_auth: AuthScheme
11
+ api_key: AuthScheme
12
+
13
+
14
+ @dataclass(frozen=True, slots=True, kw_only=True)
15
+ class AsyncAuthSchemes:
16
+ petstore_auth: AsyncAuthScheme
17
+ api_key: AsyncAuthScheme
@@ -0,0 +1,18 @@
1
+ from __future__ import annotations
2
+
3
+ from typing import Generic
4
+
5
+ from .core import RawClientT
6
+ from .server.server import Server
7
+ from .server.server_config import ServerConfig, ServerConfigOrDict
8
+
9
+ DEFAULT_TIMEOUT = 30.0
10
+
11
+
12
+ class BaseSwaggerPetstoreOpenApi30Client(Generic[RawClientT]):
13
+ _raw_client: RawClientT
14
+
15
+ def __init__(self, *, server_config: ServerConfigOrDict | None = None, timeout: float = DEFAULT_TIMEOUT) -> None:
16
+ if not timeout > 0:
17
+ raise ValueError(f"timeout must be greater than 0; got {timeout!r}")
18
+ self._server = Server(ServerConfig.coerce(server_config))
@@ -0,0 +1,77 @@
1
+ from __future__ import annotations
2
+
3
+ from functools import cached_property
4
+ from types import TracebackType
5
+
6
+ from typing_extensions import Self
7
+
8
+ from .apis.pet_api import PetApi
9
+ from .apis.store import Store
10
+ from .apis.user_api import UserApi
11
+ from .auth import AuthSchemes
12
+ from .base_client import DEFAULT_TIMEOUT, BaseSwaggerPetstoreOpenApi30Client
13
+ from .core import (
14
+ OPERATING_SYSTEM,
15
+ PYTHON_RUNTIME,
16
+ ApiKeyHeaderScheme,
17
+ HttpClient,
18
+ HttpxClient,
19
+ RawClient,
20
+ no_auth,
21
+ param,
22
+ )
23
+ from .server.server_config import ServerConfigOrDict
24
+
25
+
26
+ class SwaggerPetstoreOpenApi30Client(BaseSwaggerPetstoreOpenApi30Client[RawClient]):
27
+ def __init__(
28
+ self,
29
+ *,
30
+ server_config: ServerConfigOrDict | None = None,
31
+ timeout: float = DEFAULT_TIMEOUT,
32
+ custom_http_client: HttpClient | None = None,
33
+ petstore_auth: str | None = None,
34
+ api_key: str | None = None,
35
+ ) -> None:
36
+ super().__init__(server_config=server_config, timeout=timeout)
37
+ self._raw_client = RawClient(
38
+ http_client=custom_http_client if custom_http_client is not None else HttpxClient(timeout=timeout),
39
+ global_headers=[
40
+ param[str]("User-Agent", "SwaggerPetstoreOpenApi30Client/1.0.26 Python"),
41
+ param[str]("X-APIMatic-Lang", "Python"),
42
+ param[str]("X-APIMatic-Package-Version", "1.0.26"),
43
+ param[str]("X-APIMatic-Gen-Version", "4.0.0"),
44
+ param[str]("X-APIMatic-OS", OPERATING_SYSTEM),
45
+ param[str]("X-APIMatic-Runtime", PYTHON_RUNTIME),
46
+ ],
47
+ )
48
+ self._auth = AuthSchemes(
49
+ petstore_auth=ApiKeyHeaderScheme("Authorization", petstore_auth) if petstore_auth is not None else no_auth,
50
+ api_key=ApiKeyHeaderScheme("api_key", api_key) if api_key is not None else no_auth,
51
+ )
52
+
53
+ @cached_property
54
+ def pet_api(self) -> PetApi:
55
+ return PetApi(self._raw_client, self._server, self._auth)
56
+
57
+ @cached_property
58
+ def store(self) -> Store:
59
+ return Store(self._raw_client, self._server, self._auth)
60
+
61
+ @cached_property
62
+ def user_api(self) -> UserApi:
63
+ return UserApi(self._raw_client, self._server)
64
+
65
+ def close(self) -> None:
66
+ self._raw_client.http_client.close()
67
+
68
+ def __enter__(self) -> Self:
69
+ return self
70
+
71
+ def __exit__(
72
+ self, exc_type: type[BaseException] | None, exc: BaseException | None, exc_tb: TracebackType | None
73
+ ) -> None:
74
+ self.close()
75
+
76
+
77
+ Client = SwaggerPetstoreOpenApi30Client
@@ -0,0 +1,358 @@
1
+ """Public surface of the SDK runtime.
2
+
3
+ Everything the generated layers (``api/``, ``models/``, ``errors/``, ``server/``, the two clients)
4
+ need from the runtime is re-exported here, so a generated module imports from one place --
5
+ ``from <sdk>.core import ApiResult, RawClient, json_decoder`` -- instead of reaching into the
6
+ runtime's internal module layout. That indirection is the point: the modules behind this facade are
7
+ free to move without touching a single generated file.
8
+
9
+ A symbol earns a place here by one test: a generator may emit it, or a caller may need to name it.
10
+ Internal machinery the runtime only calls itself -- the adapter cache, the decoder implementation
11
+ classes, the sentinel stripper -- is deliberately absent, and remains reachable at its own module
12
+ path for the unit tests that target it.
13
+
14
+ Everything remains importable from its fully-qualified module path as well."""
15
+
16
+ from .auth import (
17
+ AllSchemes,
18
+ AnySchemes,
19
+ AsyncAllSchemes,
20
+ AsyncAnySchemes,
21
+ AsyncAuthScheme,
22
+ AsyncRefreshableTokenSource,
23
+ AsyncTokenSource,
24
+ AuthParams,
25
+ AuthScheme,
26
+ OAuthError,
27
+ OAuthProviderError,
28
+ OAuthToken,
29
+ OAuthTokenRefreshable,
30
+ RefreshableTokenSource,
31
+ RevocableAuthScheme,
32
+ TokenSource,
33
+ client_secret_basic,
34
+ client_secret_post,
35
+ invalidate,
36
+ is_configured,
37
+ no_auth,
38
+ oauth_error_response,
39
+ resolve_auth,
40
+ )
41
+ from .auth.schemes import (
42
+ ApiKeyCookieScheme,
43
+ ApiKeyHeaderScheme,
44
+ ApiKeyQueryScheme,
45
+ AsyncAuthorizationCodeCredentials,
46
+ AsyncAuthorizationCodeCredentialsDict,
47
+ AsyncAuthorizationCodeCredentialsOrDict,
48
+ AsyncAuthorizationCodePrompt,
49
+ AsyncAuthorizationCodeTokenSource,
50
+ AsyncClientCredentialsTokenSource,
51
+ AsyncOAuth2RefreshableScheme,
52
+ AsyncOAuth2Scheme,
53
+ AsyncPasswordTokenSource,
54
+ AuthorizationCodeCredentials,
55
+ AuthorizationCodeCredentialsDict,
56
+ AuthorizationCodeCredentialsOrDict,
57
+ AuthorizationCodePrompt,
58
+ AuthorizationCodeTokenSource,
59
+ BasicAuthCredentials,
60
+ BasicAuthCredentialsDict,
61
+ BasicAuthCredentialsOrDict,
62
+ BasicAuthScheme,
63
+ BearerAuthScheme,
64
+ ClientCredentials,
65
+ ClientCredentialsDict,
66
+ ClientCredentialsOrDict,
67
+ ClientCredentialsTokenSource,
68
+ OAuth2RefreshableScheme,
69
+ OAuth2Scheme,
70
+ PasswordCredentials,
71
+ PasswordCredentialsDict,
72
+ PasswordCredentialsOrDict,
73
+ PasswordTokenSource,
74
+ PkceMethod,
75
+ )
76
+ from .base_raw_response import BaseRawResponse, SecuredRawResponse
77
+ from .bodies import (
78
+ BinaryBody,
79
+ FormBody,
80
+ JsonBody,
81
+ MultipartBody,
82
+ MultipartFile,
83
+ MultipartPart,
84
+ MultipartText,
85
+ RequestBody,
86
+ TextBody,
87
+ binary_body,
88
+ file_part,
89
+ form_body,
90
+ json_body,
91
+ json_part,
92
+ multipart_body,
93
+ text_body,
94
+ )
95
+ from .converters import (
96
+ Base16AsciiEncodedBytes,
97
+ Base16Cp1252EncodedBytes,
98
+ Base16Latin1EncodedBytes,
99
+ Base16Utf8EncodedBytes,
100
+ Base32AsciiEncodedBytes,
101
+ Base32Cp1252EncodedBytes,
102
+ Base32HexAsciiEncodedBytes,
103
+ Base32HexCp1252EncodedBytes,
104
+ Base32HexLatin1EncodedBytes,
105
+ Base32HexUtf8EncodedBytes,
106
+ Base32Latin1EncodedBytes,
107
+ Base32Utf8EncodedBytes,
108
+ Base64AsciiEncodedBytes,
109
+ Base64Cp1252EncodedBytes,
110
+ Base64Latin1EncodedBytes,
111
+ Base64UrlAsciiEncodedBytes,
112
+ Base64UrlCp1252EncodedBytes,
113
+ Base64UrlLatin1EncodedBytes,
114
+ Base64UrlUtf8EncodedBytes,
115
+ Base64Utf8EncodedBytes,
116
+ ByteField,
117
+ Date,
118
+ RFC1123DateTime,
119
+ RFC3339DateTime,
120
+ UnixSecondsDateTime,
121
+ open_enum_validator,
122
+ )
123
+ from .decoding import (
124
+ AsyncResponseDecoder,
125
+ ErrorMapper,
126
+ ResponseDecoder,
127
+ async_empty_response,
128
+ async_file_decoder,
129
+ async_json_decoder,
130
+ async_json_event_decoder,
131
+ async_text_decoder,
132
+ async_text_event_decoder,
133
+ decode_json,
134
+ decode_text,
135
+ empty_response,
136
+ file_decoder,
137
+ json_decoder,
138
+ json_event_decoder,
139
+ raw_error_response,
140
+ text_decoder,
141
+ text_event_decoder,
142
+ )
143
+ from .discriminators import WireDiscriminator
144
+ from .event_streams import AsyncEventStream, EventStream
145
+ from .exceptions import ApiError
146
+ from .file_responses import AsyncFileResponse, FileResponse
147
+ from .files import (
148
+ AsyncBinaryContent,
149
+ AsyncBinaryReader,
150
+ AsyncFileInput,
151
+ BinaryContent,
152
+ BinaryReader,
153
+ FileInput,
154
+ NamedFile,
155
+ )
156
+ from .httpx_transport import AsyncHttpxClient, HttpxClient
157
+ from .models import SdkBaseModel
158
+ from .optionality import UNSET, Optional, OptionalNullable, UnsetType
159
+ from .params import SerializationFormat, UrlTemplate, param
160
+ from .raw_client import (
161
+ AsyncRawClient,
162
+ RawClient,
163
+ RawClientT,
164
+ )
165
+ from .request_options import RequestOptions, RequestOptionsDict, RequestOptionsOrDict
166
+ from .results import ApiResult, Failure, RawError, Success
167
+ from .runtime_env import OPERATING_SYSTEM, PYTHON_RUNTIME
168
+ from .servers import validate_one_of
169
+ from .transport import (
170
+ AsyncHttpClient,
171
+ AsyncHttpResponse,
172
+ HttpClient,
173
+ HttpRequest,
174
+ HttpResponse,
175
+ )
176
+
177
+ __all__ = [
178
+ # Result and error types
179
+ "ApiResult",
180
+ "Success",
181
+ "Failure",
182
+ "RawError",
183
+ "ApiError",
184
+ # HTTP transport
185
+ "HttpClient",
186
+ "AsyncHttpClient",
187
+ "HttpRequest",
188
+ "HttpResponse",
189
+ "AsyncHttpResponse",
190
+ "HttpxClient",
191
+ "AsyncHttpxClient",
192
+ # Request parameters and bodies
193
+ "param",
194
+ "SerializationFormat",
195
+ "UrlTemplate",
196
+ "RequestBody",
197
+ "JsonBody",
198
+ "json_body",
199
+ "FormBody",
200
+ "form_body",
201
+ "MultipartBody",
202
+ "multipart_body",
203
+ "MultipartPart",
204
+ "MultipartText",
205
+ "MultipartFile",
206
+ "file_part",
207
+ "json_part",
208
+ "BinaryBody",
209
+ "binary_body",
210
+ "TextBody",
211
+ "text_body",
212
+ # File input
213
+ "BinaryReader",
214
+ "AsyncBinaryReader",
215
+ "BinaryContent",
216
+ "AsyncBinaryContent",
217
+ "NamedFile",
218
+ "FileInput",
219
+ "AsyncFileInput",
220
+ # Streamed payloads
221
+ "FileResponse",
222
+ "AsyncFileResponse",
223
+ "EventStream",
224
+ "AsyncEventStream",
225
+ # Per-call request options
226
+ "RequestOptions",
227
+ "RequestOptionsDict",
228
+ "RequestOptionsOrDict",
229
+ # Authentication
230
+ "AuthParams",
231
+ "AuthScheme",
232
+ "AsyncAuthScheme",
233
+ "no_auth",
234
+ "is_configured",
235
+ "resolve_auth",
236
+ "BasicAuthCredentials",
237
+ "BasicAuthCredentialsDict",
238
+ "BasicAuthCredentialsOrDict",
239
+ "BasicAuthScheme",
240
+ "BearerAuthScheme",
241
+ "ApiKeyHeaderScheme",
242
+ "ApiKeyQueryScheme",
243
+ "ApiKeyCookieScheme",
244
+ "AnySchemes",
245
+ "AsyncAnySchemes",
246
+ "AllSchemes",
247
+ "AsyncAllSchemes",
248
+ "RevocableAuthScheme",
249
+ "invalidate",
250
+ # Managed OAuth 2.0
251
+ "OAuth2Scheme",
252
+ "AsyncOAuth2Scheme",
253
+ "OAuth2RefreshableScheme",
254
+ "AsyncOAuth2RefreshableScheme",
255
+ "TokenSource",
256
+ "AsyncTokenSource",
257
+ "RefreshableTokenSource",
258
+ "AsyncRefreshableTokenSource",
259
+ "client_secret_basic",
260
+ "client_secret_post",
261
+ "OAuthToken",
262
+ "OAuthTokenRefreshable",
263
+ "OAuthProviderError",
264
+ "OAuthError",
265
+ "oauth_error_response",
266
+ # oauth2 / clientCredentials
267
+ "ClientCredentials",
268
+ "ClientCredentialsDict",
269
+ "ClientCredentialsOrDict",
270
+ "ClientCredentialsTokenSource",
271
+ "AsyncClientCredentialsTokenSource",
272
+ # oauth2 / password
273
+ "PasswordCredentials",
274
+ "PasswordCredentialsDict",
275
+ "PasswordCredentialsOrDict",
276
+ "PasswordTokenSource",
277
+ "AsyncPasswordTokenSource",
278
+ # oauth2 / authorizationCode
279
+ "AuthorizationCodeCredentials",
280
+ "AuthorizationCodeCredentialsDict",
281
+ "AuthorizationCodeCredentialsOrDict",
282
+ "AsyncAuthorizationCodeCredentials",
283
+ "AsyncAuthorizationCodeCredentialsDict",
284
+ "AsyncAuthorizationCodeCredentialsOrDict",
285
+ "AuthorizationCodePrompt",
286
+ "AsyncAuthorizationCodePrompt",
287
+ "PkceMethod",
288
+ "AuthorizationCodeTokenSource",
289
+ "AsyncAuthorizationCodeTokenSource",
290
+ # Response decoding and error mapping
291
+ "ResponseDecoder",
292
+ "AsyncResponseDecoder",
293
+ "ErrorMapper",
294
+ "json_decoder",
295
+ "async_json_decoder",
296
+ "text_decoder",
297
+ "async_text_decoder",
298
+ "decode_json",
299
+ "decode_text",
300
+ "empty_response",
301
+ "async_empty_response",
302
+ "raw_error_response",
303
+ "file_decoder",
304
+ "async_file_decoder",
305
+ "json_event_decoder",
306
+ "text_event_decoder",
307
+ "async_json_event_decoder",
308
+ "async_text_event_decoder",
309
+ # Model base and optionality
310
+ "SdkBaseModel",
311
+ "UNSET",
312
+ "UnsetType",
313
+ "Optional",
314
+ "OptionalNullable",
315
+ # Union discrimination
316
+ "WireDiscriminator",
317
+ # Wire-format converters
318
+ "Date",
319
+ "RFC3339DateTime",
320
+ "RFC1123DateTime",
321
+ "UnixSecondsDateTime",
322
+ # Wire-format binary aliases -- one per (RFC 4648 alphabet, charset) pair
323
+ "Base64AsciiEncodedBytes",
324
+ "Base64Utf8EncodedBytes",
325
+ "Base64Latin1EncodedBytes",
326
+ "Base64Cp1252EncodedBytes",
327
+ "Base64UrlAsciiEncodedBytes",
328
+ "Base64UrlUtf8EncodedBytes",
329
+ "Base64UrlLatin1EncodedBytes",
330
+ "Base64UrlCp1252EncodedBytes",
331
+ "Base32AsciiEncodedBytes",
332
+ "Base32Utf8EncodedBytes",
333
+ "Base32Latin1EncodedBytes",
334
+ "Base32Cp1252EncodedBytes",
335
+ "Base32HexAsciiEncodedBytes",
336
+ "Base32HexUtf8EncodedBytes",
337
+ "Base32HexLatin1EncodedBytes",
338
+ "Base32HexCp1252EncodedBytes",
339
+ "Base16AsciiEncodedBytes",
340
+ "Base16Utf8EncodedBytes",
341
+ "Base16Latin1EncodedBytes",
342
+ "Base16Cp1252EncodedBytes",
343
+ # Binary property declaration
344
+ "ByteField",
345
+ # Open enums
346
+ "open_enum_validator",
347
+ # Raw clients and the raw-response base
348
+ "RawClient",
349
+ "AsyncRawClient",
350
+ "RawClientT",
351
+ "BaseRawResponse",
352
+ "SecuredRawResponse",
353
+ # Host environment reported in the SDK identification headers
354
+ "OPERATING_SYSTEM",
355
+ "PYTHON_RUNTIME",
356
+ # Server layer
357
+ "validate_one_of",
358
+ ]
@@ -0,0 +1,9 @@
1
+ """Runtime plumbing.
2
+
3
+ Nothing here is part of the SDK's public surface: mostly the pure functions the raw client calls to
4
+ turn parameters into a URL, a header mapping, and form fields, plus the one base class the
5
+ subscripted factories share and one stateful object -- ``sse_parser``'s push parser, which is
6
+ incremental by nature because it is fed a chunk at a time. They are grouped under a private package
7
+ so this runtime's own ``__init__`` stays the whole of what generated code imports."""
8
+
9
+ __all__: list[str] = []