basedpyright 1.25.0 → 1.26.0
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.
- package/dist/pyright-langserver.js +1 -1
- package/dist/pyright-langserver.js.map +1 -1
- package/dist/pyright.js +1 -1
- package/dist/pyright.js.map +1 -1
- package/dist/typeshed-fallback/README.md +1 -1
- package/dist/typeshed-fallback/commit.txt +1 -1
- package/dist/typeshed-fallback/stdlib/VERSIONS +1 -0
- package/dist/typeshed-fallback/stdlib/_asyncio.pyi +3 -3
- package/dist/typeshed-fallback/stdlib/_blake2.pyi +12 -12
- package/dist/typeshed-fallback/stdlib/_bz2.pyi +7 -1
- package/dist/typeshed-fallback/stdlib/_collections_abc.pyi +3 -0
- package/dist/typeshed-fallback/stdlib/_contextvars.pyi +5 -3
- package/dist/typeshed-fallback/stdlib/_csv.pyi +4 -4
- package/dist/typeshed-fallback/stdlib/_ctypes.pyi +7 -7
- package/dist/typeshed-fallback/stdlib/_curses.pyi +3 -3
- package/dist/typeshed-fallback/stdlib/_dummy_threading.pyi +19 -127
- package/dist/typeshed-fallback/stdlib/_frozen_importlib.pyi +2 -1
- package/dist/typeshed-fallback/stdlib/_interpqueues.pyi +9 -6
- package/dist/typeshed-fallback/stdlib/_interpreters.pyi +3 -1
- package/dist/typeshed-fallback/stdlib/_io.pyi +1 -1
- package/dist/typeshed-fallback/stdlib/_json.pyi +5 -4
- package/dist/typeshed-fallback/stdlib/_lzma.pyi +16 -5
- package/dist/typeshed-fallback/stdlib/_pickle.pyi +286 -0
- package/dist/typeshed-fallback/stdlib/_sitebuiltins.pyi +3 -2
- package/dist/typeshed-fallback/stdlib/_socket.pyi +3 -1
- package/dist/typeshed-fallback/stdlib/_ssl.pyi +3 -4
- package/dist/typeshed-fallback/stdlib/_thread.pyi +87 -39
- package/dist/typeshed-fallback/stdlib/_tkinter.pyi +35 -20
- package/dist/typeshed-fallback/stdlib/_weakrefset.pyi +2 -1
- package/dist/typeshed-fallback/stdlib/argparse.pyi +27 -20
- package/dist/typeshed-fallback/stdlib/array.pyi +13 -10
- package/dist/typeshed-fallback/stdlib/ast.pyi +24 -7
- package/dist/typeshed-fallback/stdlib/asyncio/__init__.pyi +1300 -0
- package/dist/typeshed-fallback/stdlib/asyncio/base_events.pyi +2 -0
- package/dist/typeshed-fallback/stdlib/asyncio/coroutines.pyi +1 -0
- package/dist/typeshed-fallback/stdlib/asyncio/events.pyi +1 -0
- package/dist/typeshed-fallback/stdlib/asyncio/exceptions.pyi +1 -0
- package/dist/typeshed-fallback/stdlib/asyncio/futures.pyi +1 -0
- package/dist/typeshed-fallback/stdlib/asyncio/locks.pyi +1 -0
- package/dist/typeshed-fallback/stdlib/asyncio/proactor_events.pyi +1 -0
- package/dist/typeshed-fallback/stdlib/asyncio/protocols.pyi +1 -0
- package/dist/typeshed-fallback/stdlib/asyncio/queues.pyi +1 -0
- package/dist/typeshed-fallback/stdlib/asyncio/runners.pyi +1 -0
- package/dist/typeshed-fallback/stdlib/asyncio/selector_events.pyi +2 -0
- package/dist/typeshed-fallback/stdlib/asyncio/streams.pyi +1 -0
- package/dist/typeshed-fallback/stdlib/asyncio/subprocess.pyi +1 -0
- package/dist/typeshed-fallback/stdlib/asyncio/taskgroups.pyi +1 -0
- package/dist/typeshed-fallback/stdlib/asyncio/tasks.pyi +1 -0
- package/dist/typeshed-fallback/stdlib/asyncio/threads.pyi +1 -0
- package/dist/typeshed-fallback/stdlib/asyncio/timeouts.pyi +1 -0
- package/dist/typeshed-fallback/stdlib/asyncio/transports.pyi +1 -0
- package/dist/typeshed-fallback/stdlib/asyncio/unix_events.pyi +3 -0
- package/dist/typeshed-fallback/stdlib/asyncio/windows_events.pyi +1 -0
- package/dist/typeshed-fallback/stdlib/builtins.pyi +21 -15
- package/dist/typeshed-fallback/stdlib/codecs.pyi +2 -0
- package/dist/typeshed-fallback/stdlib/codeop.pyi +5 -1
- package/dist/typeshed-fallback/stdlib/collections/__init__.pyi +3 -1
- package/dist/typeshed-fallback/stdlib/concurrent/futures/process.pyi +12 -2
- package/dist/typeshed-fallback/stdlib/contextlib.pyi +21 -22
- package/dist/typeshed-fallback/stdlib/ctypes/__init__.pyi +69 -18
- package/dist/typeshed-fallback/stdlib/dataclasses.pyi +11 -3
- package/dist/typeshed-fallback/stdlib/datetime.pyi +1 -1
- package/dist/typeshed-fallback/stdlib/decimal.pyi +0 -1
- package/dist/typeshed-fallback/stdlib/email/charset.pyi +2 -1
- package/dist/typeshed-fallback/stdlib/email/header.pyi +2 -1
- package/dist/typeshed-fallback/stdlib/email/headerregistry.pyi +2 -0
- package/dist/typeshed-fallback/stdlib/fractions.pyi +3 -3
- package/dist/typeshed-fallback/stdlib/gzip.pyi +5 -5
- package/dist/typeshed-fallback/stdlib/http/__init__.pyi +15 -6
- package/dist/typeshed-fallback/stdlib/http/client.pyi +80 -58
- package/dist/typeshed-fallback/stdlib/inspect.pyi +5 -5
- package/dist/typeshed-fallback/stdlib/ipaddress.pyi +5 -3
- package/dist/typeshed-fallback/stdlib/itertools.pyi +12 -12
- package/dist/typeshed-fallback/stdlib/json/scanner.pyi +4 -0
- package/dist/typeshed-fallback/stdlib/lib2to3/pgen2/pgen.pyi +2 -1
- package/dist/typeshed-fallback/stdlib/lib2to3/pytree.pyi +2 -1
- package/dist/typeshed-fallback/stdlib/mmap.pyi +6 -6
- package/dist/typeshed-fallback/stdlib/multiprocessing/managers.pyi +63 -17
- package/dist/typeshed-fallback/stdlib/multiprocessing/pool.pyi +3 -0
- package/dist/typeshed-fallback/stdlib/multiprocessing/reduction.pyi +1 -1
- package/dist/typeshed-fallback/stdlib/multiprocessing/synchronize.pyi +1 -0
- package/dist/typeshed-fallback/stdlib/numbers.pyi +2 -1
- package/dist/typeshed-fallback/stdlib/operator.pyi +2 -2
- package/dist/typeshed-fallback/stdlib/optparse.pyi +89 -32
- package/dist/typeshed-fallback/stdlib/os/__init__.pyi +1 -0
- package/dist/typeshed-fallback/stdlib/parser.pyi +2 -1
- package/dist/typeshed-fallback/stdlib/pickle.pyi +51 -266
- package/dist/typeshed-fallback/stdlib/pickletools.pyi +8 -1
- package/dist/typeshed-fallback/stdlib/plistlib.pyi +2 -1
- package/dist/typeshed-fallback/stdlib/sched.pyi +3 -2
- package/dist/typeshed-fallback/stdlib/select.pyi +19 -13
- package/dist/typeshed-fallback/stdlib/selectors.pyi +5 -3
- package/dist/typeshed-fallback/stdlib/signal.pyi +47 -47
- package/dist/typeshed-fallback/stdlib/socket.pyi +8 -6
- package/dist/typeshed-fallback/stdlib/sqlite3/__init__.pyi +1 -1
- package/dist/typeshed-fallback/stdlib/ssl.pyi +4 -0
- package/dist/typeshed-fallback/stdlib/sys/__init__.pyi +9 -3
- package/dist/typeshed-fallback/stdlib/tarfile.pyi +24 -10
- package/dist/typeshed-fallback/stdlib/telnetlib.pyi +2 -2
- package/dist/typeshed-fallback/stdlib/threading.pyi +6 -53
- package/dist/typeshed-fallback/stdlib/tkinter/__init__.pyi +193 -3
- package/dist/typeshed-fallback/stdlib/tkinter/filedialog.pyi +9 -9
- package/dist/typeshed-fallback/stdlib/tkinter/font.pyi +5 -4
- package/dist/typeshed-fallback/stdlib/token.pyi +1 -1
- package/dist/typeshed-fallback/stdlib/tokenize.pyi +3 -4
- package/dist/typeshed-fallback/stdlib/traceback.pyi +17 -4
- package/dist/typeshed-fallback/stdlib/types.pyi +45 -10
- package/dist/typeshed-fallback/stdlib/typing.pyi +45 -47
- package/dist/typeshed-fallback/stdlib/typing_extensions.pyi +53 -12
- package/dist/typeshed-fallback/stdlib/unittest/mock.pyi +3 -1
- package/dist/typeshed-fallback/stdlib/unittest/runner.pyi +11 -12
- package/dist/typeshed-fallback/stdlib/unittest/suite.pyi +2 -0
- package/dist/typeshed-fallback/stdlib/weakref.pyi +19 -5
- package/dist/typeshed-fallback/stdlib/xml/dom/minidom.pyi +5 -4
- package/dist/typeshed-fallback/stdlib/xml/sax/expatreader.pyi +53 -0
- package/dist/typeshed-fallback/stdlib/xmlrpc/client.pyi +4 -3
- package/dist/typeshed-fallback/stdlib/xxlimited.pyi +4 -2
- package/dist/typeshed-fallback/stdlib/zipfile/_path/glob.pyi +22 -0
- package/dist/typeshed-fallback/stdlib/zoneinfo/__init__.pyi +1 -1
- package/dist/typeshed-fallback/stubs/Authlib/METADATA.toml +7 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/__init__.pyi +4 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/common/encoding.pyi +10 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/common/errors.pyi +26 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/common/security.pyi +4 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/common/urls.pyi +19 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/consts.pyi +8 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/deprecate.pyi +7 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/integrations/__init__.pyi +0 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/integrations/base_client/__init__.pyi +29 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/integrations/base_client/async_app.pyi +16 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/integrations/base_client/async_openid.pyi +8 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/integrations/base_client/errors.pyi +23 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/integrations/base_client/framework_integration.pyi +13 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/integrations/base_client/registry.pyi +21 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/integrations/base_client/sync_app.pyi +93 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/integrations/base_client/sync_openid.pyi +7 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/jose/__init__.pyi +44 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/jose/drafts/__init__.pyi +3 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/jose/drafts/_jwe_algorithms.pyi +27 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/jose/drafts/_jwe_enc_cryptodome.pyi +13 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/jose/drafts/_jwe_enc_cryptography.pyi +13 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/jose/errors.pyi +72 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/jose/jwk.pyi +4 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/jose/rfc7515/__init__.pyi +4 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/jose/rfc7515/jws.pyi +14 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/jose/rfc7515/models.pyi +25 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/jose/rfc7516/__init__.pyi +9 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/jose/rfc7516/jwe.pyi +23 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/jose/rfc7516/models.pyi +56 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/jose/rfc7517/__init__.pyi +7 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/jose/rfc7517/_cryptography_key.pyi +5 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/jose/rfc7517/asymmetric_key.pyi +39 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/jose/rfc7517/base_key.pyi +28 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/jose/rfc7517/jwk.pyi +13 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/jose/rfc7517/key_set.pyi +10 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/jose/rfc7518/__init__.pyi +20 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/jose/rfc7518/ec_key.pyi +24 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/jose/rfc7518/jwe_algs.pyi +64 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/jose/rfc7518/jwe_encs.pyi +27 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/jose/rfc7518/jwe_zips.pyi +9 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/jose/rfc7518/jws_algs.pyi +63 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/jose/rfc7518/oct_key.pyi +23 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/jose/rfc7518/rsa_key.pyi +23 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/jose/rfc7518/util.pyi +2 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/jose/rfc7519/__init__.pyi +4 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/jose/rfc7519/claims.pyi +21 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/jose/rfc7519/jwt.pyi +21 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/jose/rfc8037/__init__.pyi +4 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/jose/rfc8037/jws_eddsa.pyi +10 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/jose/rfc8037/okp_key.pyi +24 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/jose/util.pyi +3 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth1/__init__.pyi +33 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth1/client.pyi +39 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth1/errors.pyi +1 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth1/rfc5849/__init__.pyi +35 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth1/rfc5849/authorization_server.pyi +21 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth1/rfc5849/base_server.pyi +12 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth1/rfc5849/client_auth.pyi +41 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth1/rfc5849/errors.pyi +56 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth1/rfc5849/models.pyi +21 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth1/rfc5849/parameters.pyi +5 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth1/rfc5849/resource_protector.pyi +5 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth1/rfc5849/rsa.pyi +2 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth1/rfc5849/signature.pyi +22 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth1/rfc5849/util.pyi +2 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth1/rfc5849/wrapper.pyi +33 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth2/__init__.pyi +22 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth2/auth.pyi +24 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth2/base.pyi +20 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth2/client.pyi +96 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth2/rfc6749/__init__.pyi +76 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth2/rfc6749/authenticate_client.pyi +13 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth2/rfc6749/authorization_server.pyi +46 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth2/rfc6749/errors.pyi +92 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth2/rfc6749/grants/__init__.pyi +21 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth2/rfc6749/grants/authorization_code.pyi +24 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth2/rfc6749/grants/base.pyi +55 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth2/rfc6749/grants/client_credentials.pyi +6 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth2/rfc6749/grants/implicit.pyi +12 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth2/rfc6749/grants/refresh_token.pyi +15 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth2/rfc6749/grants/resource_owner_password_credentials.pyi +7 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth2/rfc6749/models.pyi +22 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth2/rfc6749/parameters.pyi +14 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth2/rfc6749/requests.pyi +48 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth2/rfc6749/resource_protector.pyi +19 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth2/rfc6749/token_endpoint.pyi +13 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth2/rfc6749/util.pyi +5 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth2/rfc6749/wrappers.pyi +5 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth2/rfc6750/__init__.pyi +15 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth2/rfc6750/errors.pyi +27 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth2/rfc6750/parameters.pyi +6 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth2/rfc6750/token.pyi +41 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth2/rfc6750/validator.pyi +6 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth2/rfc7009/__init__.pyi +4 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth2/rfc7009/parameters.pyi +5 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth2/rfc7009/revocation.pyi +9 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth2/rfc7521/__init__.pyi +3 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth2/rfc7521/client.pyi +39 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth2/rfc7523/__init__.pyi +18 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth2/rfc7523/assertion.pyi +19 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth2/rfc7523/auth.pyi +22 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth2/rfc7523/client.pyi +16 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth2/rfc7523/jwt_bearer.pyi +28 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth2/rfc7523/token.pyi +30 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth2/rfc7523/validator.pyi +24 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth2/rfc7591/__init__.pyi +17 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth2/rfc7591/claims.pyi +22 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth2/rfc7591/endpoint.pyi +24 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth2/rfc7591/errors.pyi +13 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth2/rfc7592/__init__.pyi +3 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth2/rfc7592/endpoint.pyi +26 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth2/rfc7636/__init__.pyi +3 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth2/rfc7636/challenge.pyi +20 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth2/rfc7662/__init__.pyi +5 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth2/rfc7662/introspection.pyi +11 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth2/rfc7662/models.pyi +8 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth2/rfc7662/token_validator.pyi +7 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth2/rfc8414/__init__.pyi +4 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth2/rfc8414/models.pyi +40 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth2/rfc8414/well_known.pyi +1 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth2/rfc8628/__init__.pyi +19 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth2/rfc8628/device_code.pyi +15 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth2/rfc8628/endpoint.pyi +21 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth2/rfc8628/errors.pyi +10 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth2/rfc8628/models.pyi +13 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth2/rfc8693/__init__.pyi +0 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth2/rfc9068/__init__.pyi +6 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth2/rfc9068/claims.pyi +16 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth2/rfc9068/introspection.pyi +13 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth2/rfc9068/revocation.pyi +9 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth2/rfc9068/token.pyi +23 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth2/rfc9068/token_validator.pyi +20 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/oidc/__init__.pyi +0 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/oidc/core/__init__.pyi +29 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/oidc/core/claims.pyi +37 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/oidc/core/errors.pyi +28 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/oidc/core/grants/__init__.pyi +5 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/oidc/core/grants/code.pyi +17 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/oidc/core/grants/hybrid.pyi +13 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/oidc/core/grants/implicit.pyi +16 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/oidc/core/grants/util.pyi +18 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/oidc/core/models.pyi +5 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/oidc/core/util.pyi +1 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/oidc/discovery/__init__.pyi +4 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/oidc/discovery/models.pyi +36 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/oidc/discovery/well_known.pyi +1 -0
- package/dist/typeshed-fallback/stubs/Flask-Migrate/METADATA.toml +1 -1
- package/dist/typeshed-fallback/stubs/Flask-Migrate/flask_migrate/__init__.pyi +2 -4
- package/dist/typeshed-fallback/stubs/Flask-SocketIO/METADATA.toml +1 -1
- package/dist/typeshed-fallback/stubs/Flask-SocketIO/flask_socketio/__init__.pyi +30 -4
- package/dist/typeshed-fallback/stubs/Markdown/markdown/core.pyi +2 -13
- package/dist/typeshed-fallback/stubs/PyAutoGUI/pyautogui/__init__.pyi +2 -2
- package/dist/typeshed-fallback/stubs/PyYAML/yaml/constructor.pyi +1 -1
- package/dist/typeshed-fallback/stubs/Pygments/METADATA.toml +1 -1
- package/dist/typeshed-fallback/stubs/WebOb/webob/exc.pyi +1 -1
- package/dist/typeshed-fallback/stubs/click-log/METADATA.toml +3 -0
- package/dist/typeshed-fallback/stubs/click-log/click_log/__init__.pyi +4 -0
- package/dist/typeshed-fallback/stubs/click-log/click_log/core.pyi +15 -0
- package/dist/typeshed-fallback/stubs/click-log/click_log/options.pyi +12 -0
- package/dist/typeshed-fallback/stubs/click-web/METADATA.toml +3 -0
- package/dist/typeshed-fallback/stubs/click-web/click_web/__init__.pyi +16 -0
- package/dist/typeshed-fallback/stubs/click-web/click_web/exceptions.pyi +2 -0
- package/dist/typeshed-fallback/stubs/click-web/click_web/resources/cmd_exec.pyi +79 -0
- package/dist/typeshed-fallback/stubs/click-web/click_web/resources/cmd_form.pyi +6 -0
- package/dist/typeshed-fallback/stubs/click-web/click_web/resources/index.pyi +6 -0
- package/dist/typeshed-fallback/stubs/click-web/click_web/resources/input_fields.pyi +49 -0
- package/dist/typeshed-fallback/stubs/click-web/click_web/web_click_types.pyi +18 -0
- package/dist/typeshed-fallback/stubs/croniter/METADATA.toml +1 -1
- package/dist/typeshed-fallback/stubs/croniter/croniter/croniter.pyi +7 -0
- package/dist/typeshed-fallback/stubs/django-import-export/METADATA.toml +6 -0
- package/dist/typeshed-fallback/stubs/django-import-export/import_export/__init__.pyi +1 -0
- package/dist/typeshed-fallback/stubs/django-import-export/import_export/admin.pyi +114 -0
- package/dist/typeshed-fallback/stubs/django-import-export/import_export/exceptions.pyi +2 -0
- package/dist/typeshed-fallback/stubs/django-import-export/import_export/fields.pyi +34 -0
- package/dist/typeshed-fallback/stubs/django-import-export/import_export/formats/__init__.pyi +0 -0
- package/dist/typeshed-fallback/stubs/django-import-export/import_export/formats/base_formats.pyi +57 -0
- package/dist/typeshed-fallback/stubs/django-import-export/import_export/forms.pyi +31 -0
- package/dist/typeshed-fallback/stubs/django-import-export/import_export/instance_loaders.pyi +23 -0
- package/dist/typeshed-fallback/stubs/django-import-export/import_export/mixins.pyi +66 -0
- package/dist/typeshed-fallback/stubs/django-import-export/import_export/resources.pyi +232 -0
- package/dist/typeshed-fallback/stubs/django-import-export/import_export/results.pyi +73 -0
- package/dist/typeshed-fallback/stubs/django-import-export/import_export/signals.pyi +4 -0
- package/dist/typeshed-fallback/stubs/django-import-export/import_export/templatetags/__init__.pyi +0 -0
- package/dist/typeshed-fallback/stubs/django-import-export/import_export/templatetags/import_export_tags.pyi +8 -0
- package/dist/typeshed-fallback/stubs/django-import-export/import_export/tmp_storages.pyi +34 -0
- package/dist/typeshed-fallback/stubs/django-import-export/import_export/utils.pyi +18 -0
- package/dist/typeshed-fallback/stubs/django-import-export/import_export/widgets.pyi +66 -0
- package/dist/typeshed-fallback/stubs/docker/docker/models/containers.pyi +2 -2
- package/dist/typeshed-fallback/stubs/flake8-bugbear/METADATA.toml +1 -1
- package/dist/typeshed-fallback/stubs/fpdf2/METADATA.toml +1 -1
- package/dist/typeshed-fallback/stubs/fpdf2/fpdf/__init__.pyi +2 -0
- package/dist/typeshed-fallback/stubs/fpdf2/fpdf/annotations.pyi +2 -2
- package/dist/typeshed-fallback/stubs/fpdf2/fpdf/enums.pyi +50 -4
- package/dist/typeshed-fallback/stubs/fpdf2/fpdf/fonts.pyi +3 -3
- package/dist/typeshed-fallback/stubs/fpdf2/fpdf/fpdf.pyi +53 -18
- package/dist/typeshed-fallback/stubs/fpdf2/fpdf/html.pyi +2 -0
- package/dist/typeshed-fallback/stubs/fpdf2/fpdf/image_parsing.pyi +10 -2
- package/dist/typeshed-fallback/stubs/fpdf2/fpdf/line_break.pyi +9 -3
- package/dist/typeshed-fallback/stubs/fpdf2/fpdf/outline.pyi +21 -0
- package/dist/typeshed-fallback/stubs/fpdf2/fpdf/output.pyi +19 -0
- package/dist/typeshed-fallback/stubs/fpdf2/fpdf/prefs.pyi +38 -4
- package/dist/typeshed-fallback/stubs/fpdf2/fpdf/table.pyi +13 -1
- package/dist/typeshed-fallback/stubs/fpdf2/fpdf/util.pyi +1 -0
- package/dist/typeshed-fallback/stubs/gdb/METADATA.toml +1 -1
- package/dist/typeshed-fallback/stubs/gdb/gdb/__init__.pyi +126 -9
- package/dist/typeshed-fallback/stubs/gdb/gdb/unwinder.pyi +2 -3
- package/dist/typeshed-fallback/stubs/gevent/gevent/select.pyi +7 -2
- package/dist/typeshed-fallback/stubs/hdbcli/METADATA.toml +1 -1
- package/dist/typeshed-fallback/stubs/ibm-db/METADATA.toml +1 -1
- package/dist/typeshed-fallback/stubs/ibm-db/ibm_db.pyi +11 -1
- package/dist/typeshed-fallback/stubs/icalendar/METADATA.toml +1 -5
- package/dist/typeshed-fallback/stubs/icalendar/icalendar/timezone/tzp.pyi +1 -1
- package/dist/typeshed-fallback/stubs/jsonschema/METADATA.toml +0 -2
- package/dist/typeshed-fallback/stubs/jwcrypto/jwcrypto/jwk.pyi +4 -4
- package/dist/typeshed-fallback/stubs/lupa/METADATA.toml +1 -1
- package/dist/typeshed-fallback/stubs/m3u8/m3u8/httpclient.pyi +1 -1
- package/dist/typeshed-fallback/stubs/nanoleafapi/METADATA.toml +2 -0
- package/dist/typeshed-fallback/stubs/nanoleafapi/nanoleafapi/__init__.pyi +16 -0
- package/dist/typeshed-fallback/stubs/nanoleafapi/nanoleafapi/digital_twin.pyi +12 -0
- package/dist/typeshed-fallback/stubs/nanoleafapi/nanoleafapi/discovery.pyi +1 -0
- package/dist/typeshed-fallback/stubs/nanoleafapi/nanoleafapi/nanoleaf.pyi +68 -0
- package/dist/typeshed-fallback/stubs/networkx/networkx/classes/multidigraph.pyi +1 -1
- package/dist/typeshed-fallback/stubs/openpyxl/openpyxl/styles/cell_style.pyi +1 -1
- package/dist/typeshed-fallback/stubs/peewee/peewee.pyi +4 -4
- package/dist/typeshed-fallback/stubs/pexpect/pexpect/pty_spawn.pyi +1 -1
- package/dist/typeshed-fallback/stubs/pika/pika/credentials.pyi +10 -7
- package/dist/typeshed-fallback/stubs/polib/polib.pyi +3 -2
- package/dist/typeshed-fallback/stubs/protobuf/METADATA.toml +2 -2
- package/dist/typeshed-fallback/stubs/protobuf/google/protobuf/api_pb2.pyi +1 -1
- package/dist/typeshed-fallback/stubs/protobuf/google/protobuf/descriptor_pb2.pyi +4 -8
- package/dist/typeshed-fallback/stubs/protobuf/google/protobuf/runtime_version.pyi +23 -0
- package/dist/typeshed-fallback/stubs/pycocotools/METADATA.toml +1 -0
- package/dist/typeshed-fallback/stubs/pycocotools/pycocotools/coco.pyi +6 -11
- package/dist/typeshed-fallback/stubs/pycocotools/pycocotools/cocoeval.pyi +16 -30
- package/dist/typeshed-fallback/stubs/pycocotools/pycocotools/mask.pyi +7 -9
- package/dist/typeshed-fallback/stubs/pycurl/METADATA.toml +1 -1
- package/dist/typeshed-fallback/stubs/pycurl/pycurl.pyi +33 -32
- package/dist/typeshed-fallback/stubs/pynput/pynput/keyboard/_base.pyi +65 -65
- package/dist/typeshed-fallback/stubs/python-dateutil/dateutil/relativedelta.pyi +3 -11
- package/dist/typeshed-fallback/stubs/pywin32/_win32typing.pyi +3 -3
- package/dist/typeshed-fallback/stubs/qrbill/qrbill/bill.pyi +2 -2
- package/dist/typeshed-fallback/stubs/requests-oauthlib/requests_oauthlib/oauth1_auth.pyi +1 -1
- package/dist/typeshed-fallback/stubs/seaborn/METADATA.toml +1 -11
- package/dist/typeshed-fallback/stubs/seaborn/seaborn/algorithms.pyi +13 -13
- package/dist/typeshed-fallback/stubs/setuptools/METADATA.toml +1 -1
- package/dist/typeshed-fallback/stubs/setuptools/setuptools/_distutils/cmd.pyi +5 -0
- package/dist/typeshed-fallback/stubs/setuptools/setuptools/_distutils/command/bdist.pyi +1 -1
- package/dist/typeshed-fallback/stubs/setuptools/setuptools/_distutils/command/install_data.pyi +2 -1
- package/dist/typeshed-fallback/stubs/setuptools/setuptools/_distutils/dist.pyi +21 -21
- package/dist/typeshed-fallback/stubs/setuptools/setuptools/_distutils/extension.pyi +3 -4
- package/dist/typeshed-fallback/stubs/setuptools/setuptools/extension.pyi +2 -3
- package/dist/typeshed-fallback/stubs/shapely/shapely/_enum.pyi +1 -1
- package/dist/typeshed-fallback/stubs/six/METADATA.toml +1 -1
- package/dist/typeshed-fallback/stubs/tabulate/tabulate/__init__.pyi +2 -1
- package/dist/typeshed-fallback/stubs/tqdm/tqdm/asyncio.pyi +2 -2
- package/dist/typeshed-fallback/stubs/vobject/METADATA.toml +2 -2
- package/dist/typeshed-fallback/stubs/vobject/vobject/__init__.pyi +2 -4
- package/dist/typeshed-fallback/stubs/vobject/vobject/base.pyi +26 -24
- package/dist/typeshed-fallback/stubs/vobject/vobject/behavior.pyi +5 -4
- package/dist/typeshed-fallback/stubs/vobject/vobject/icalendar.pyi +28 -37
- package/dist/typeshed-fallback/stubs/vobject/vobject/vcard.pyi +20 -20
- package/dist/typeshed-fallback/stubs/vobject/vobject/win32tz.pyi +22 -22
- package/package.json +1 -1
- package/dist/typeshed-fallback/stubs/python-gflags/METADATA.toml +0 -2
- package/dist/typeshed-fallback/stubs/python-gflags/gflags.pyi +0 -309
- package/dist/typeshed-fallback/stubs/redis/METADATA.toml +0 -12
- package/dist/typeshed-fallback/stubs/redis/redis/__init__.pyi +0 -72
- package/dist/typeshed-fallback/stubs/redis/redis/asyncio/__init__.pyi +0 -64
- package/dist/typeshed-fallback/stubs/redis/redis/asyncio/client.pyi +0 -1091
- package/dist/typeshed-fallback/stubs/redis/redis/asyncio/cluster.pyi +0 -229
- package/dist/typeshed-fallback/stubs/redis/redis/asyncio/connection.pyi +0 -363
- package/dist/typeshed-fallback/stubs/redis/redis/asyncio/lock.pyi +0 -51
- package/dist/typeshed-fallback/stubs/redis/redis/asyncio/parser.pyi +0 -9
- package/dist/typeshed-fallback/stubs/redis/redis/asyncio/retry.pyi +0 -12
- package/dist/typeshed-fallback/stubs/redis/redis/asyncio/sentinel.pyi +0 -162
- package/dist/typeshed-fallback/stubs/redis/redis/asyncio/utils.pyi +0 -15
- package/dist/typeshed-fallback/stubs/redis/redis/backoff.pyi +0 -31
- package/dist/typeshed-fallback/stubs/redis/redis/client.pyi +0 -817
- package/dist/typeshed-fallback/stubs/redis/redis/cluster.pyi +0 -265
- package/dist/typeshed-fallback/stubs/redis/redis/commands/__init__.pyi +0 -17
- package/dist/typeshed-fallback/stubs/redis/redis/commands/bf/__init__.pyi +0 -58
- package/dist/typeshed-fallback/stubs/redis/redis/commands/bf/commands.pyi +0 -112
- package/dist/typeshed-fallback/stubs/redis/redis/commands/bf/info.pyi +0 -43
- package/dist/typeshed-fallback/stubs/redis/redis/commands/cluster.pyi +0 -60
- package/dist/typeshed-fallback/stubs/redis/redis/commands/core.pyi +0 -1743
- package/dist/typeshed-fallback/stubs/redis/redis/commands/graph/__init__.pyi +0 -26
- package/dist/typeshed-fallback/stubs/redis/redis/commands/graph/commands.pyi +0 -25
- package/dist/typeshed-fallback/stubs/redis/redis/commands/graph/edge.pyi +0 -14
- package/dist/typeshed-fallback/stubs/redis/redis/commands/graph/exceptions.pyi +0 -5
- package/dist/typeshed-fallback/stubs/redis/redis/commands/graph/node.pyi +0 -18
- package/dist/typeshed-fallback/stubs/redis/redis/commands/graph/path.pyi +0 -18
- package/dist/typeshed-fallback/stubs/redis/redis/commands/graph/query_result.pyi +0 -74
- package/dist/typeshed-fallback/stubs/redis/redis/commands/helpers.pyi +0 -10
- package/dist/typeshed-fallback/stubs/redis/redis/commands/json/__init__.pyi +0 -15
- package/dist/typeshed-fallback/stubs/redis/redis/commands/json/commands.pyi +0 -32
- package/dist/typeshed-fallback/stubs/redis/redis/commands/json/decoders.pyi +0 -4
- package/dist/typeshed-fallback/stubs/redis/redis/commands/json/path.pyi +0 -5
- package/dist/typeshed-fallback/stubs/redis/redis/commands/parser.pyi +0 -8
- package/dist/typeshed-fallback/stubs/redis/redis/commands/redismodules.pyi +0 -14
- package/dist/typeshed-fallback/stubs/redis/redis/commands/search/__init__.pyi +0 -22
- package/dist/typeshed-fallback/stubs/redis/redis/commands/search/aggregation.pyi +0 -53
- package/dist/typeshed-fallback/stubs/redis/redis/commands/search/commands.pyi +0 -111
- package/dist/typeshed-fallback/stubs/redis/redis/commands/search/query.pyi +0 -52
- package/dist/typeshed-fallback/stubs/redis/redis/commands/search/result.pyi +0 -7
- package/dist/typeshed-fallback/stubs/redis/redis/commands/sentinel.pyi +0 -17
- package/dist/typeshed-fallback/stubs/redis/redis/commands/timeseries/__init__.pyi +0 -14
- package/dist/typeshed-fallback/stubs/redis/redis/commands/timeseries/commands.pyi +0 -160
- package/dist/typeshed-fallback/stubs/redis/redis/commands/timeseries/info.pyi +0 -18
- package/dist/typeshed-fallback/stubs/redis/redis/commands/timeseries/utils.pyi +0 -5
- package/dist/typeshed-fallback/stubs/redis/redis/connection.pyi +0 -289
- package/dist/typeshed-fallback/stubs/redis/redis/crc.pyi +0 -5
- package/dist/typeshed-fallback/stubs/redis/redis/credentials.pyi +0 -11
- package/dist/typeshed-fallback/stubs/redis/redis/exceptions.pyi +0 -42
- package/dist/typeshed-fallback/stubs/redis/redis/lock.pyi +0 -56
- package/dist/typeshed-fallback/stubs/redis/redis/ocsp.pyi +0 -21
- package/dist/typeshed-fallback/stubs/redis/redis/retry.pyi +0 -11
- package/dist/typeshed-fallback/stubs/redis/redis/sentinel.pyi +0 -62
- package/dist/typeshed-fallback/stubs/redis/redis/typing.pyi +0 -34
- package/dist/typeshed-fallback/stubs/redis/redis/utils.pyi +0 -22
- package/dist/typeshed-fallback/stubs/setuptools/setuptools/compat/py310.pyi +0 -9
- package/dist/typeshed-fallback/stubs/setuptools/setuptools/compat/py311.pyi +0 -4
- package/dist/typeshed-fallback/stubs/setuptools/setuptools/compat/py312.pyi +0 -3
- package/dist/typeshed-fallback/stubs/setuptools/setuptools/compat/py39.pyi +0 -7
- /package/dist/typeshed-fallback/stdlib/zipfile/{_path.pyi → _path/__init__.pyi} +0 -0
- /package/dist/typeshed-fallback/stubs/{setuptools/setuptools/compat → Authlib/authlib/common}/__init__.pyi +0 -0
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
from _typeshed import Incomplete
|
|
2
|
+
|
|
3
|
+
class JsonWebSignature:
|
|
4
|
+
REGISTERED_HEADER_PARAMETER_NAMES: Incomplete
|
|
5
|
+
ALGORITHMS_REGISTRY: Incomplete
|
|
6
|
+
def __init__(self, algorithms: Incomplete | None = None, private_headers: Incomplete | None = None) -> None: ...
|
|
7
|
+
@classmethod
|
|
8
|
+
def register_algorithm(cls, algorithm) -> None: ...
|
|
9
|
+
def serialize_compact(self, protected, payload, key): ...
|
|
10
|
+
def deserialize_compact(self, s, key, decode: Incomplete | None = None): ...
|
|
11
|
+
def serialize_json(self, header_obj, payload, key): ...
|
|
12
|
+
def deserialize_json(self, obj, key, decode: Incomplete | None = None): ...
|
|
13
|
+
def serialize(self, header, payload, key): ...
|
|
14
|
+
def deserialize(self, s, key, decode: Incomplete | None = None): ...
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
from _typeshed import Incomplete
|
|
2
|
+
|
|
3
|
+
class JWSAlgorithm:
|
|
4
|
+
name: Incomplete
|
|
5
|
+
description: Incomplete
|
|
6
|
+
algorithm_type: str
|
|
7
|
+
algorithm_location: str
|
|
8
|
+
def prepare_key(self, raw_data) -> None: ...
|
|
9
|
+
def sign(self, msg, key) -> None: ...
|
|
10
|
+
def verify(self, msg, sig, key) -> None: ...
|
|
11
|
+
|
|
12
|
+
class JWSHeader(dict[str, object]):
|
|
13
|
+
protected: Incomplete
|
|
14
|
+
header: Incomplete
|
|
15
|
+
def __init__(self, protected, header) -> None: ...
|
|
16
|
+
@classmethod
|
|
17
|
+
def from_dict(cls, obj): ...
|
|
18
|
+
|
|
19
|
+
class JWSObject(dict[str, object]):
|
|
20
|
+
header: Incomplete
|
|
21
|
+
payload: Incomplete
|
|
22
|
+
type: Incomplete
|
|
23
|
+
def __init__(self, header, payload, type: str = "compact") -> None: ...
|
|
24
|
+
@property
|
|
25
|
+
def headers(self): ...
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
from .jwe import JsonWebEncryption as JsonWebEncryption
|
|
2
|
+
from .models import (
|
|
3
|
+
JWEAlgorithm as JWEAlgorithm,
|
|
4
|
+
JWEAlgorithmWithTagAwareKeyAgreement as JWEAlgorithmWithTagAwareKeyAgreement,
|
|
5
|
+
JWEEncAlgorithm as JWEEncAlgorithm,
|
|
6
|
+
JWEZipAlgorithm as JWEZipAlgorithm,
|
|
7
|
+
)
|
|
8
|
+
|
|
9
|
+
__all__ = ["JsonWebEncryption", "JWEAlgorithm", "JWEAlgorithmWithTagAwareKeyAgreement", "JWEEncAlgorithm", "JWEZipAlgorithm"]
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
from _typeshed import Incomplete
|
|
2
|
+
|
|
3
|
+
class JsonWebEncryption:
|
|
4
|
+
REGISTERED_HEADER_PARAMETER_NAMES: Incomplete
|
|
5
|
+
ALG_REGISTRY: Incomplete
|
|
6
|
+
ENC_REGISTRY: Incomplete
|
|
7
|
+
ZIP_REGISTRY: Incomplete
|
|
8
|
+
def __init__(self, algorithms: Incomplete | None = None, private_headers: Incomplete | None = None) -> None: ...
|
|
9
|
+
@classmethod
|
|
10
|
+
def register_algorithm(cls, algorithm) -> None: ...
|
|
11
|
+
def serialize_compact(self, protected, payload, key, sender_key: Incomplete | None = None): ...
|
|
12
|
+
def serialize_json(self, header_obj, payload, keys, sender_key: Incomplete | None = None): ...
|
|
13
|
+
def serialize(self, header, payload, key, sender_key: Incomplete | None = None): ...
|
|
14
|
+
def deserialize_compact(self, s, key, decode: Incomplete | None = None, sender_key: Incomplete | None = None): ...
|
|
15
|
+
def deserialize_json(self, obj, key, decode: Incomplete | None = None, sender_key: Incomplete | None = None): ...
|
|
16
|
+
def deserialize(self, obj, key, decode: Incomplete | None = None, sender_key: Incomplete | None = None): ...
|
|
17
|
+
@staticmethod
|
|
18
|
+
def parse_json(obj): ...
|
|
19
|
+
def get_header_alg(self, header): ...
|
|
20
|
+
def get_header_enc(self, header): ...
|
|
21
|
+
def get_header_zip(self, header): ...
|
|
22
|
+
|
|
23
|
+
def prepare_key(alg, header, key): ...
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
from _typeshed import Incomplete
|
|
2
|
+
from abc import ABCMeta
|
|
3
|
+
|
|
4
|
+
class JWEAlgorithmBase(metaclass=ABCMeta):
|
|
5
|
+
EXTRA_HEADERS: Incomplete
|
|
6
|
+
name: Incomplete
|
|
7
|
+
description: Incomplete
|
|
8
|
+
algorithm_type: str
|
|
9
|
+
algorithm_location: str
|
|
10
|
+
def prepare_key(self, raw_data) -> None: ...
|
|
11
|
+
def generate_preset(self, enc_alg, key) -> None: ...
|
|
12
|
+
|
|
13
|
+
class JWEAlgorithm(JWEAlgorithmBase, metaclass=ABCMeta):
|
|
14
|
+
def wrap(self, enc_alg, headers, key, preset: Incomplete | None = None) -> None: ...
|
|
15
|
+
def unwrap(self, enc_alg, ek, headers, key) -> None: ...
|
|
16
|
+
|
|
17
|
+
class JWEAlgorithmWithTagAwareKeyAgreement(JWEAlgorithmBase, metaclass=ABCMeta):
|
|
18
|
+
def generate_keys_and_prepare_headers(self, enc_alg, key, sender_key, preset: Incomplete | None = None) -> None: ...
|
|
19
|
+
def agree_upon_key_and_wrap_cek(self, enc_alg, headers, key, sender_key, epk, cek, tag) -> None: ...
|
|
20
|
+
def wrap(self, enc_alg, headers, key, sender_key, preset: Incomplete | None = None) -> None: ...
|
|
21
|
+
def unwrap(self, enc_alg, ek, headers, key, sender_key, tag: Incomplete | None = None) -> None: ...
|
|
22
|
+
|
|
23
|
+
class JWEEncAlgorithm:
|
|
24
|
+
name: Incomplete
|
|
25
|
+
description: Incomplete
|
|
26
|
+
algorithm_type: str
|
|
27
|
+
algorithm_location: str
|
|
28
|
+
IV_SIZE: Incomplete
|
|
29
|
+
CEK_SIZE: Incomplete
|
|
30
|
+
def generate_cek(self): ...
|
|
31
|
+
def generate_iv(self): ...
|
|
32
|
+
def check_iv(self, iv) -> None: ...
|
|
33
|
+
def encrypt(self, msg, aad, iv, key) -> None: ...
|
|
34
|
+
def decrypt(self, ciphertext, aad, iv, tag, key) -> None: ...
|
|
35
|
+
|
|
36
|
+
class JWEZipAlgorithm:
|
|
37
|
+
name: Incomplete
|
|
38
|
+
description: Incomplete
|
|
39
|
+
algorithm_type: str
|
|
40
|
+
algorithm_location: str
|
|
41
|
+
def compress(self, s) -> None: ...
|
|
42
|
+
def decompress(self, s) -> None: ...
|
|
43
|
+
|
|
44
|
+
class JWESharedHeader(dict[str, object]):
|
|
45
|
+
protected: Incomplete
|
|
46
|
+
unprotected: Incomplete
|
|
47
|
+
def __init__(self, protected, unprotected) -> None: ...
|
|
48
|
+
def update_protected(self, addition) -> None: ...
|
|
49
|
+
@classmethod
|
|
50
|
+
def from_dict(cls, obj): ...
|
|
51
|
+
|
|
52
|
+
class JWEHeader(dict[str, object]):
|
|
53
|
+
protected: Incomplete
|
|
54
|
+
unprotected: Incomplete
|
|
55
|
+
header: Incomplete
|
|
56
|
+
def __init__(self, protected, unprotected, header) -> None: ...
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
from ._cryptography_key import load_pem_key as load_pem_key
|
|
2
|
+
from .asymmetric_key import AsymmetricKey as AsymmetricKey
|
|
3
|
+
from .base_key import Key as Key
|
|
4
|
+
from .jwk import JsonWebKey as JsonWebKey
|
|
5
|
+
from .key_set import KeySet as KeySet
|
|
6
|
+
|
|
7
|
+
__all__ = ["Key", "AsymmetricKey", "KeySet", "JsonWebKey", "load_pem_key"]
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
from _typeshed import Incomplete
|
|
2
|
+
|
|
3
|
+
from authlib.jose.rfc7517 import Key
|
|
4
|
+
|
|
5
|
+
class AsymmetricKey(Key):
|
|
6
|
+
PUBLIC_KEY_FIELDS: Incomplete
|
|
7
|
+
PRIVATE_KEY_FIELDS: Incomplete
|
|
8
|
+
PRIVATE_KEY_CLS = Incomplete
|
|
9
|
+
PUBLIC_KEY_CLS = Incomplete
|
|
10
|
+
SSH_PUBLIC_PREFIX: bytes
|
|
11
|
+
private_key: Incomplete
|
|
12
|
+
public_key: Incomplete
|
|
13
|
+
def __init__(
|
|
14
|
+
self, private_key: Incomplete | None = None, public_key: Incomplete | None = None, options: Incomplete | None = None
|
|
15
|
+
) -> None: ...
|
|
16
|
+
@property
|
|
17
|
+
def public_only(self): ...
|
|
18
|
+
def get_op_key(self, operation): ...
|
|
19
|
+
def get_public_key(self): ...
|
|
20
|
+
def get_private_key(self): ...
|
|
21
|
+
def load_raw_key(self) -> None: ...
|
|
22
|
+
def load_dict_key(self) -> None: ...
|
|
23
|
+
def dumps_private_key(self) -> None: ...
|
|
24
|
+
def dumps_public_key(self) -> None: ...
|
|
25
|
+
def load_private_key(self) -> None: ...
|
|
26
|
+
def load_public_key(self) -> None: ...
|
|
27
|
+
def as_dict(self, is_private: bool = False, **params): ...
|
|
28
|
+
def as_key(self, is_private: bool = False): ...
|
|
29
|
+
def as_bytes(self, encoding: Incomplete | None = None, is_private: bool = False, password: Incomplete | None = None): ...
|
|
30
|
+
def as_pem(self, is_private: bool = False, password: Incomplete | None = None): ...
|
|
31
|
+
def as_der(self, is_private: bool = False, password: Incomplete | None = None): ...
|
|
32
|
+
@classmethod
|
|
33
|
+
def import_dict_key(cls, raw, options: Incomplete | None = None): ...
|
|
34
|
+
@classmethod
|
|
35
|
+
def import_key(cls, raw, options: Incomplete | None = None): ...
|
|
36
|
+
@classmethod
|
|
37
|
+
def validate_raw_key(cls, key): ...
|
|
38
|
+
@classmethod
|
|
39
|
+
def generate_key(cls, crv_or_size, options: Incomplete | None = None, is_private: bool = False) -> AsymmetricKey: ...
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
from _typeshed import Incomplete
|
|
2
|
+
|
|
3
|
+
class Key:
|
|
4
|
+
kty: str
|
|
5
|
+
ALLOWED_PARAMS: Incomplete
|
|
6
|
+
PRIVATE_KEY_OPS: Incomplete
|
|
7
|
+
PUBLIC_KEY_OPS: Incomplete
|
|
8
|
+
REQUIRED_JSON_FIELDS: Incomplete
|
|
9
|
+
options: Incomplete
|
|
10
|
+
def __init__(self, options: Incomplete | None = None) -> None: ...
|
|
11
|
+
@property
|
|
12
|
+
def tokens(self): ...
|
|
13
|
+
@property
|
|
14
|
+
def kid(self): ...
|
|
15
|
+
def keys(self): ...
|
|
16
|
+
def __getitem__(self, item): ...
|
|
17
|
+
@property
|
|
18
|
+
def public_only(self) -> None: ...
|
|
19
|
+
def load_raw_key(self) -> None: ...
|
|
20
|
+
def load_dict_key(self) -> None: ...
|
|
21
|
+
def check_key_op(self, operation) -> None: ...
|
|
22
|
+
def as_dict(self, is_private: bool = False, **params) -> None: ...
|
|
23
|
+
def as_json(self, is_private: bool = False, **params): ...
|
|
24
|
+
def thumbprint(self): ...
|
|
25
|
+
@classmethod
|
|
26
|
+
def check_required_fields(cls, data) -> None: ...
|
|
27
|
+
@classmethod
|
|
28
|
+
def validate_raw_key(cls, key) -> None: ...
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
from _typeshed import Incomplete
|
|
2
|
+
from collections.abc import Collection, Mapping
|
|
3
|
+
|
|
4
|
+
from authlib.jose.rfc7517 import Key, KeySet
|
|
5
|
+
|
|
6
|
+
class JsonWebKey:
|
|
7
|
+
JWK_KEY_CLS: Incomplete
|
|
8
|
+
@classmethod
|
|
9
|
+
def generate_key(cls, kty, crv_or_size, options: Incomplete | None = None, is_private: bool = False): ...
|
|
10
|
+
@classmethod
|
|
11
|
+
def import_key(cls, raw: Mapping[str, object], options: Mapping[str, object] | None = None) -> Key: ...
|
|
12
|
+
@classmethod
|
|
13
|
+
def import_key_set(cls, raw: str | Collection[str] | dict[str, object]) -> KeySet: ...
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
from collections.abc import Collection
|
|
2
|
+
|
|
3
|
+
from authlib.jose.rfc7517 import Key
|
|
4
|
+
|
|
5
|
+
class KeySet:
|
|
6
|
+
keys: Collection[Key]
|
|
7
|
+
def __init__(self, keys) -> None: ...
|
|
8
|
+
def as_dict(self, is_private: bool = False, **params): ...
|
|
9
|
+
def as_json(self, is_private: bool = False, **params): ...
|
|
10
|
+
def find_by_kid(self, kid): ...
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
from .ec_key import ECKey as ECKey
|
|
2
|
+
from .jwe_algs import AESAlgorithm as AESAlgorithm, ECDHESAlgorithm as ECDHESAlgorithm, u32be_len_input as u32be_len_input
|
|
3
|
+
from .jwe_encs import CBCHS2EncAlgorithm as CBCHS2EncAlgorithm
|
|
4
|
+
from .oct_key import OctKey as OctKey
|
|
5
|
+
from .rsa_key import RSAKey as RSAKey
|
|
6
|
+
|
|
7
|
+
__all__ = [
|
|
8
|
+
"register_jws_rfc7518",
|
|
9
|
+
"register_jwe_rfc7518",
|
|
10
|
+
"OctKey",
|
|
11
|
+
"RSAKey",
|
|
12
|
+
"ECKey",
|
|
13
|
+
"u32be_len_input",
|
|
14
|
+
"AESAlgorithm",
|
|
15
|
+
"ECDHESAlgorithm",
|
|
16
|
+
"CBCHS2EncAlgorithm",
|
|
17
|
+
]
|
|
18
|
+
|
|
19
|
+
def register_jws_rfc7518(cls) -> None: ...
|
|
20
|
+
def register_jwe_rfc7518(cls) -> None: ...
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
from _typeshed import Incomplete
|
|
2
|
+
|
|
3
|
+
from authlib.jose.rfc7517 import AsymmetricKey
|
|
4
|
+
from cryptography.hazmat.primitives.asymmetric.ec import EllipticCurvePrivateKeyWithSerialization, EllipticCurvePublicKey
|
|
5
|
+
|
|
6
|
+
class ECKey(AsymmetricKey):
|
|
7
|
+
kty: str
|
|
8
|
+
DSS_CURVES: Incomplete
|
|
9
|
+
CURVES_DSS: Incomplete
|
|
10
|
+
REQUIRED_JSON_FIELDS: Incomplete
|
|
11
|
+
PUBLIC_KEY_FIELDS = REQUIRED_JSON_FIELDS
|
|
12
|
+
PRIVATE_KEY_FIELDS: Incomplete
|
|
13
|
+
PUBLIC_KEY_CLS = EllipticCurvePublicKey
|
|
14
|
+
PRIVATE_KEY_CLS = EllipticCurvePrivateKeyWithSerialization
|
|
15
|
+
SSH_PUBLIC_PREFIX: bytes
|
|
16
|
+
def exchange_shared_key(self, pubkey): ...
|
|
17
|
+
@property
|
|
18
|
+
def curve_key_size(self): ...
|
|
19
|
+
def load_private_key(self): ...
|
|
20
|
+
def load_public_key(self): ...
|
|
21
|
+
def dumps_private_key(self): ...
|
|
22
|
+
def dumps_public_key(self): ...
|
|
23
|
+
@classmethod
|
|
24
|
+
def generate_key(cls, crv: str = "P-256", options: Incomplete | None = None, is_private: bool = False) -> ECKey: ...
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
from _typeshed import Incomplete
|
|
2
|
+
|
|
3
|
+
from authlib.jose.rfc7516 import JWEAlgorithm
|
|
4
|
+
|
|
5
|
+
class DirectAlgorithm(JWEAlgorithm):
|
|
6
|
+
name: str
|
|
7
|
+
description: str
|
|
8
|
+
def prepare_key(self, raw_data): ...
|
|
9
|
+
def generate_preset(self, enc_alg, key): ...
|
|
10
|
+
def wrap(self, enc_alg, headers, key, preset: Incomplete | None = None): ...
|
|
11
|
+
def unwrap(self, enc_alg, ek, headers, key): ...
|
|
12
|
+
|
|
13
|
+
class RSAAlgorithm(JWEAlgorithm):
|
|
14
|
+
key_size: int
|
|
15
|
+
name: Incomplete
|
|
16
|
+
description: Incomplete
|
|
17
|
+
padding: Incomplete
|
|
18
|
+
def __init__(self, name, description, pad_fn) -> None: ...
|
|
19
|
+
def prepare_key(self, raw_data): ...
|
|
20
|
+
def generate_preset(self, enc_alg, key): ...
|
|
21
|
+
def wrap(self, enc_alg, headers, key, preset: Incomplete | None = None): ...
|
|
22
|
+
def unwrap(self, enc_alg, ek, headers, key): ...
|
|
23
|
+
|
|
24
|
+
class AESAlgorithm(JWEAlgorithm):
|
|
25
|
+
name: Incomplete
|
|
26
|
+
description: Incomplete
|
|
27
|
+
key_size: Incomplete
|
|
28
|
+
def __init__(self, key_size) -> None: ...
|
|
29
|
+
def prepare_key(self, raw_data): ...
|
|
30
|
+
def generate_preset(self, enc_alg, key): ...
|
|
31
|
+
def wrap_cek(self, cek, key): ...
|
|
32
|
+
def wrap(self, enc_alg, headers, key, preset: Incomplete | None = None): ...
|
|
33
|
+
def unwrap(self, enc_alg, ek, headers, key): ...
|
|
34
|
+
|
|
35
|
+
class AESGCMAlgorithm(JWEAlgorithm):
|
|
36
|
+
EXTRA_HEADERS: Incomplete
|
|
37
|
+
name: Incomplete
|
|
38
|
+
description: Incomplete
|
|
39
|
+
key_size: Incomplete
|
|
40
|
+
def __init__(self, key_size) -> None: ...
|
|
41
|
+
def prepare_key(self, raw_data): ...
|
|
42
|
+
def generate_preset(self, enc_alg, key): ...
|
|
43
|
+
def wrap(self, enc_alg, headers, key, preset: Incomplete | None = None): ...
|
|
44
|
+
def unwrap(self, enc_alg, ek, headers, key): ...
|
|
45
|
+
|
|
46
|
+
class ECDHESAlgorithm(JWEAlgorithm):
|
|
47
|
+
EXTRA_HEADERS: Incomplete
|
|
48
|
+
ALLOWED_KEY_CLS = Incomplete
|
|
49
|
+
name: str
|
|
50
|
+
description: str
|
|
51
|
+
key_size: Incomplete
|
|
52
|
+
aeskw: Incomplete
|
|
53
|
+
def __init__(self, key_size: Incomplete | None = None) -> None: ...
|
|
54
|
+
def prepare_key(self, raw_data): ...
|
|
55
|
+
def generate_preset(self, enc_alg, key): ...
|
|
56
|
+
def compute_fixed_info(self, headers, bit_size): ...
|
|
57
|
+
def compute_derived_key(self, shared_key, fixed_info, bit_size): ...
|
|
58
|
+
def deliver(self, key, pubkey, headers, bit_size): ...
|
|
59
|
+
def wrap(self, enc_alg, headers, key, preset: Incomplete | None = None): ...
|
|
60
|
+
def unwrap(self, enc_alg, ek, headers, key): ...
|
|
61
|
+
|
|
62
|
+
def u32be_len_input(s, base64: bool = False): ...
|
|
63
|
+
|
|
64
|
+
JWE_ALG_ALGORITHMS: Incomplete
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
from _typeshed import Incomplete
|
|
2
|
+
|
|
3
|
+
from authlib.jose.rfc7516 import JWEEncAlgorithm
|
|
4
|
+
|
|
5
|
+
class CBCHS2EncAlgorithm(JWEEncAlgorithm):
|
|
6
|
+
IV_SIZE: int
|
|
7
|
+
name: Incomplete
|
|
8
|
+
description: Incomplete
|
|
9
|
+
key_size: Incomplete
|
|
10
|
+
key_len: Incomplete
|
|
11
|
+
CEK_SIZE: Incomplete
|
|
12
|
+
hash_alg: Incomplete
|
|
13
|
+
def __init__(self, key_size, hash_type) -> None: ...
|
|
14
|
+
def encrypt(self, msg, aad, iv, key): ...
|
|
15
|
+
def decrypt(self, ciphertext, aad, iv, tag, key): ...
|
|
16
|
+
|
|
17
|
+
class GCMEncAlgorithm(JWEEncAlgorithm):
|
|
18
|
+
IV_SIZE: int
|
|
19
|
+
name: Incomplete
|
|
20
|
+
description: Incomplete
|
|
21
|
+
key_size: Incomplete
|
|
22
|
+
CEK_SIZE: Incomplete
|
|
23
|
+
def __init__(self, key_size) -> None: ...
|
|
24
|
+
def encrypt(self, msg, aad, iv, key): ...
|
|
25
|
+
def decrypt(self, ciphertext, aad, iv, tag, key): ...
|
|
26
|
+
|
|
27
|
+
JWE_ENC_ALGORITHMS: Incomplete
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import hashlib
|
|
2
|
+
from _typeshed import Incomplete
|
|
3
|
+
|
|
4
|
+
from authlib.jose.rfc7515 import JWSAlgorithm
|
|
5
|
+
|
|
6
|
+
class NoneAlgorithm(JWSAlgorithm):
|
|
7
|
+
name: str
|
|
8
|
+
description: str
|
|
9
|
+
def prepare_key(self, raw_data) -> None: ...
|
|
10
|
+
def sign(self, msg, key): ...
|
|
11
|
+
def verify(self, msg, sig, key): ...
|
|
12
|
+
|
|
13
|
+
class HMACAlgorithm(JWSAlgorithm):
|
|
14
|
+
SHA256 = hashlib.sha256
|
|
15
|
+
SHA384 = hashlib.sha384
|
|
16
|
+
SHA512 = hashlib.sha512
|
|
17
|
+
name: Incomplete
|
|
18
|
+
description: Incomplete
|
|
19
|
+
hash_alg: Incomplete
|
|
20
|
+
def __init__(self, sha_type) -> None: ...
|
|
21
|
+
def prepare_key(self, raw_data): ...
|
|
22
|
+
def sign(self, msg, key): ...
|
|
23
|
+
def verify(self, msg, sig, key): ...
|
|
24
|
+
|
|
25
|
+
class RSAAlgorithm(JWSAlgorithm):
|
|
26
|
+
SHA256: Incomplete
|
|
27
|
+
SHA384: Incomplete
|
|
28
|
+
SHA512: Incomplete
|
|
29
|
+
name: Incomplete
|
|
30
|
+
description: Incomplete
|
|
31
|
+
hash_alg: Incomplete
|
|
32
|
+
padding: Incomplete
|
|
33
|
+
def __init__(self, sha_type) -> None: ...
|
|
34
|
+
def prepare_key(self, raw_data): ...
|
|
35
|
+
def sign(self, msg, key): ...
|
|
36
|
+
def verify(self, msg, sig, key): ...
|
|
37
|
+
|
|
38
|
+
class ECAlgorithm(JWSAlgorithm):
|
|
39
|
+
SHA256: Incomplete
|
|
40
|
+
SHA384: Incomplete
|
|
41
|
+
SHA512: Incomplete
|
|
42
|
+
name: Incomplete
|
|
43
|
+
curve: Incomplete
|
|
44
|
+
description: Incomplete
|
|
45
|
+
hash_alg: Incomplete
|
|
46
|
+
def __init__(self, name, curve, sha_type) -> None: ...
|
|
47
|
+
def prepare_key(self, raw_data): ...
|
|
48
|
+
def sign(self, msg, key): ...
|
|
49
|
+
def verify(self, msg, sig, key): ...
|
|
50
|
+
|
|
51
|
+
class RSAPSSAlgorithm(JWSAlgorithm):
|
|
52
|
+
SHA256: Incomplete
|
|
53
|
+
SHA384: Incomplete
|
|
54
|
+
SHA512: Incomplete
|
|
55
|
+
name: Incomplete
|
|
56
|
+
description: Incomplete
|
|
57
|
+
hash_alg: Incomplete
|
|
58
|
+
def __init__(self, sha_type) -> None: ...
|
|
59
|
+
def prepare_key(self, raw_data): ...
|
|
60
|
+
def sign(self, msg, key): ...
|
|
61
|
+
def verify(self, msg, sig, key): ...
|
|
62
|
+
|
|
63
|
+
JWS_ALGORITHMS: Incomplete
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
from _typeshed import Incomplete
|
|
2
|
+
|
|
3
|
+
from authlib.jose.rfc7517 import Key
|
|
4
|
+
|
|
5
|
+
POSSIBLE_UNSAFE_KEYS: Incomplete
|
|
6
|
+
|
|
7
|
+
class OctKey(Key):
|
|
8
|
+
kty: str
|
|
9
|
+
REQUIRED_JSON_FIELDS: Incomplete
|
|
10
|
+
raw_key: Incomplete
|
|
11
|
+
def __init__(self, raw_key: Incomplete | None = None, options: Incomplete | None = None) -> None: ...
|
|
12
|
+
@property
|
|
13
|
+
def public_only(self): ...
|
|
14
|
+
def get_op_key(self, operation): ...
|
|
15
|
+
def load_raw_key(self) -> None: ...
|
|
16
|
+
def load_dict_key(self) -> None: ...
|
|
17
|
+
def as_dict(self, is_private: bool = False, **params): ...
|
|
18
|
+
@classmethod
|
|
19
|
+
def validate_raw_key(cls, key): ...
|
|
20
|
+
@classmethod
|
|
21
|
+
def import_key(cls, raw, options: Incomplete | None = None): ...
|
|
22
|
+
@classmethod
|
|
23
|
+
def generate_key(cls, key_size: int = 256, options: Incomplete | None = None, is_private: bool = True): ...
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
from _typeshed import Incomplete
|
|
2
|
+
|
|
3
|
+
from authlib.jose.rfc7517 import AsymmetricKey
|
|
4
|
+
from cryptography.hazmat.primitives.asymmetric.rsa import RSAPrivateKeyWithSerialization, RSAPublicKey
|
|
5
|
+
|
|
6
|
+
class RSAKey(AsymmetricKey):
|
|
7
|
+
kty: str
|
|
8
|
+
PUBLIC_KEY_CLS = RSAPublicKey
|
|
9
|
+
PRIVATE_KEY_CLS = RSAPrivateKeyWithSerialization
|
|
10
|
+
PUBLIC_KEY_FIELDS: Incomplete
|
|
11
|
+
PRIVATE_KEY_FIELDS: Incomplete
|
|
12
|
+
REQUIRED_JSON_FIELDS: Incomplete
|
|
13
|
+
SSH_PUBLIC_PREFIX: bytes
|
|
14
|
+
def dumps_private_key(self): ...
|
|
15
|
+
def dumps_public_key(self): ...
|
|
16
|
+
def load_private_key(self): ...
|
|
17
|
+
def load_public_key(self): ...
|
|
18
|
+
@classmethod
|
|
19
|
+
def generate_key(cls, key_size: int = 2048, options: Incomplete | None = None, is_private: bool = False) -> RSAKey: ...
|
|
20
|
+
@classmethod
|
|
21
|
+
def import_dict_key(cls, raw, options: Incomplete | None = None): ...
|
|
22
|
+
|
|
23
|
+
def has_all_prime_factors(obj): ...
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
from _typeshed import Incomplete
|
|
2
|
+
|
|
3
|
+
class BaseClaims(dict[str, object]):
|
|
4
|
+
REGISTERED_CLAIMS: Incomplete
|
|
5
|
+
header: Incomplete
|
|
6
|
+
options: Incomplete
|
|
7
|
+
params: Incomplete
|
|
8
|
+
def __init__(self, payload, header, options: Incomplete | None = None, params: Incomplete | None = None) -> None: ...
|
|
9
|
+
def __getattr__(self, key): ...
|
|
10
|
+
def get_registered_claims(self): ...
|
|
11
|
+
|
|
12
|
+
class JWTClaims(BaseClaims):
|
|
13
|
+
REGISTERED_CLAIMS: Incomplete
|
|
14
|
+
def validate(self, now: Incomplete | None = None, leeway: int = 0) -> None: ...
|
|
15
|
+
def validate_iss(self) -> None: ...
|
|
16
|
+
def validate_sub(self) -> None: ...
|
|
17
|
+
def validate_aud(self) -> None: ...
|
|
18
|
+
def validate_exp(self, now, leeway) -> None: ...
|
|
19
|
+
def validate_nbf(self, now, leeway) -> None: ...
|
|
20
|
+
def validate_iat(self, now, leeway) -> None: ...
|
|
21
|
+
def validate_jti(self) -> None: ...
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
from _typeshed import Incomplete
|
|
2
|
+
|
|
3
|
+
class JsonWebToken:
|
|
4
|
+
SENSITIVE_NAMES: Incomplete
|
|
5
|
+
SENSITIVE_VALUES: Incomplete
|
|
6
|
+
def __init__(self, algorithms, private_headers: Incomplete | None = None) -> None: ...
|
|
7
|
+
def check_sensitive_data(self, payload) -> None: ...
|
|
8
|
+
def encode(self, header, payload, key, check: bool = True): ...
|
|
9
|
+
def decode(
|
|
10
|
+
self,
|
|
11
|
+
s,
|
|
12
|
+
key,
|
|
13
|
+
claims_cls: Incomplete | None = None,
|
|
14
|
+
claims_options: Incomplete | None = None,
|
|
15
|
+
claims_params: Incomplete | None = None,
|
|
16
|
+
): ...
|
|
17
|
+
|
|
18
|
+
def decode_payload(bytes_payload): ...
|
|
19
|
+
def prepare_raw_key(raw): ...
|
|
20
|
+
def find_encode_key(key, header): ...
|
|
21
|
+
def create_load_key(key): ...
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
from authlib.jose.rfc7515 import JWSAlgorithm
|
|
2
|
+
|
|
3
|
+
class EdDSAAlgorithm(JWSAlgorithm):
|
|
4
|
+
name: str
|
|
5
|
+
description: str
|
|
6
|
+
def prepare_key(self, raw_data): ...
|
|
7
|
+
def sign(self, msg, key): ...
|
|
8
|
+
def verify(self, msg, sig, key): ...
|
|
9
|
+
|
|
10
|
+
def register_jws_rfc8037(cls) -> None: ...
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
from _typeshed import Incomplete
|
|
2
|
+
|
|
3
|
+
from authlib.jose.rfc7517 import AsymmetricKey
|
|
4
|
+
|
|
5
|
+
PUBLIC_KEYS_MAP: Incomplete
|
|
6
|
+
PRIVATE_KEYS_MAP: Incomplete
|
|
7
|
+
|
|
8
|
+
class OKPKey(AsymmetricKey):
|
|
9
|
+
kty: str
|
|
10
|
+
REQUIRED_JSON_FIELDS: Incomplete
|
|
11
|
+
PUBLIC_KEY_FIELDS = REQUIRED_JSON_FIELDS
|
|
12
|
+
PRIVATE_KEY_FIELDS: Incomplete
|
|
13
|
+
PUBLIC_KEY_CLS: Incomplete
|
|
14
|
+
PRIVATE_KEY_CLS: Incomplete
|
|
15
|
+
SSH_PUBLIC_PREFIX: bytes
|
|
16
|
+
def exchange_shared_key(self, pubkey): ...
|
|
17
|
+
@staticmethod
|
|
18
|
+
def get_key_curve(key): ...
|
|
19
|
+
def load_private_key(self): ...
|
|
20
|
+
def load_public_key(self): ...
|
|
21
|
+
def dumps_private_key(self): ...
|
|
22
|
+
def dumps_public_key(self, public_key: Incomplete | None = None): ...
|
|
23
|
+
@classmethod
|
|
24
|
+
def generate_key(cls, crv: str = "Ed25519", options: Incomplete | None = None, is_private: bool = False) -> OKPKey: ...
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
from .rfc5849 import (
|
|
2
|
+
SIGNATURE_HMAC_SHA1 as SIGNATURE_HMAC_SHA1,
|
|
3
|
+
SIGNATURE_PLAINTEXT as SIGNATURE_PLAINTEXT,
|
|
4
|
+
SIGNATURE_RSA_SHA1 as SIGNATURE_RSA_SHA1,
|
|
5
|
+
SIGNATURE_TYPE_BODY as SIGNATURE_TYPE_BODY,
|
|
6
|
+
SIGNATURE_TYPE_HEADER as SIGNATURE_TYPE_HEADER,
|
|
7
|
+
SIGNATURE_TYPE_QUERY as SIGNATURE_TYPE_QUERY,
|
|
8
|
+
AuthorizationServer as AuthorizationServer,
|
|
9
|
+
ClientAuth as ClientAuth,
|
|
10
|
+
ClientMixin as ClientMixin,
|
|
11
|
+
OAuth1Request as OAuth1Request,
|
|
12
|
+
ResourceProtector as ResourceProtector,
|
|
13
|
+
TemporaryCredential as TemporaryCredential,
|
|
14
|
+
TemporaryCredentialMixin as TemporaryCredentialMixin,
|
|
15
|
+
TokenCredentialMixin as TokenCredentialMixin,
|
|
16
|
+
)
|
|
17
|
+
|
|
18
|
+
__all__ = [
|
|
19
|
+
"OAuth1Request",
|
|
20
|
+
"ClientAuth",
|
|
21
|
+
"SIGNATURE_HMAC_SHA1",
|
|
22
|
+
"SIGNATURE_RSA_SHA1",
|
|
23
|
+
"SIGNATURE_PLAINTEXT",
|
|
24
|
+
"SIGNATURE_TYPE_HEADER",
|
|
25
|
+
"SIGNATURE_TYPE_QUERY",
|
|
26
|
+
"SIGNATURE_TYPE_BODY",
|
|
27
|
+
"ClientMixin",
|
|
28
|
+
"TemporaryCredentialMixin",
|
|
29
|
+
"TokenCredentialMixin",
|
|
30
|
+
"TemporaryCredential",
|
|
31
|
+
"AuthorizationServer",
|
|
32
|
+
"ResourceProtector",
|
|
33
|
+
]
|