From 638e7a288ea18083aa0cf9dab0c9cdfce631f12c Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Wed, 30 Oct 2024 09:35:33 +0000 Subject: [PATCH] ci: regenerated with OpenAPI Doc , Speakeasy CLI 1.423.2 --- .speakeasy/gen.lock | 178 +++++++++--------- .speakeasy/gen.yaml | 2 +- .speakeasy/workflow.lock | 8 +- README.md | 32 ++-- RELEASES.md | 12 +- USAGE.md | 4 +- docs/sdks/apis/README.md | 10 +- docs/sdks/identities/README.md | 10 +- docs/sdks/keys/README.md | 48 ++--- docs/sdks/liveness/README.md | 2 +- docs/sdks/migrations/README.md | 16 +- docs/sdks/permissions/README.md | 16 +- docs/sdks/ratelimits/README.md | 2 +- pyproject.toml | 12 +- src/{unkey => unkey_py}/__init__.py | 0 src/{unkey => unkey_py}/_hooks/__init__.py | 0 src/unkey_py/_hooks/registration.py | 13 ++ src/{unkey => unkey_py}/_hooks/sdkhooks.py | 2 +- src/{unkey => unkey_py}/_hooks/types.py | 2 +- src/{unkey => unkey_py}/_version.py | 4 +- src/{unkey => unkey_py}/apis.py | 8 +- src/{unkey => unkey_py}/basesdk.py | 6 +- src/{unkey => unkey_py}/httpclient.py | 0 src/{unkey => unkey_py}/identities.py | 8 +- src/{unkey => unkey_py}/keys.py | 8 +- src/{unkey => unkey_py}/liveness.py | 8 +- src/{unkey => unkey_py}/migrations.py | 8 +- src/{unkey => unkey_py}/models/__init__.py | 0 .../models/addpermissionsop.py | 2 +- src/{unkey => unkey_py}/models/addrolesop.py | 2 +- src/{unkey => unkey_py}/models/createapiop.py | 2 +- .../models/createidentityop.py | 2 +- src/{unkey => unkey_py}/models/createkeyop.py | 2 +- .../models/createpermissionop.py | 2 +- .../models/createroleop.py | 2 +- src/{unkey => unkey_py}/models/deleteapiop.py | 2 +- .../models/deleteidentityop.py | 2 +- src/{unkey => unkey_py}/models/deletekeyop.py | 2 +- .../models/deletekeysop.py | 2 +- .../models/deletepermissionop.py | 2 +- .../models/deleteroleop.py | 2 +- .../models/errbadrequest.py | 4 +- src/{unkey => unkey_py}/models/errconflict.py | 4 +- .../models/errdeleteprotected.py | 4 +- .../models/errforbidden.py | 4 +- .../models/errinternalservererror.py | 4 +- src/{unkey => unkey_py}/models/errnotfound.py | 4 +- .../models/errtoomanyrequests.py | 4 +- .../models/errunauthorized.py | 4 +- src/{unkey => unkey_py}/models/getapiop.py | 4 +- .../models/getidentityop.py | 4 +- src/{unkey => unkey_py}/models/getkeyop.py | 4 +- .../models/getpermissionop.py | 4 +- src/{unkey => unkey_py}/models/getroleop.py | 4 +- .../models/getverificationsop.py | 4 +- .../models/httpmetadata.py | 2 +- src/{unkey => unkey_py}/models/key.py | 2 +- src/{unkey => unkey_py}/models/limitop.py | 2 +- .../models/listidentitiesop.py | 4 +- src/{unkey => unkey_py}/models/listkeysop.py | 4 +- .../models/listpermissionsop.py | 2 +- src/{unkey => unkey_py}/models/listrolesop.py | 2 +- .../models/permissionquery.py | 2 +- .../models/removepermissionsop.py | 2 +- .../models/removerolesop.py | 2 +- src/{unkey => unkey_py}/models/sdkerror.py | 0 src/{unkey => unkey_py}/models/security.py | 4 +- .../models/setpermissionsop.py | 2 +- src/{unkey => unkey_py}/models/setrolesop.py | 2 +- .../models/updateidentityop.py | 2 +- src/{unkey => unkey_py}/models/updatekeyop.py | 2 +- .../models/updateremainingop.py | 2 +- .../models/v1_livenessop.py | 2 +- .../models/v1_migrations_createkeysop.py | 2 +- .../models/v1_migrations_enqueuekeysop.py | 2 +- .../models/v1keysverifykeyrequest.py | 2 +- .../models/v1keysverifykeyresponse.py | 2 +- src/{unkey => unkey_py}/models/verifykeyop.py | 2 +- src/{unkey => unkey_py}/models/whoamiop.py | 2 +- src/{unkey => unkey_py}/permissions.py | 8 +- src/{unkey => unkey_py}/py.typed | 0 src/{unkey => unkey_py}/ratelimits.py | 8 +- src/{unkey => unkey_py}/sdk.py | 20 +- src/{unkey => unkey_py}/sdkconfiguration.py | 8 +- src/{unkey => unkey_py}/types/__init__.py | 0 src/{unkey => unkey_py}/types/basemodel.py | 0 src/{unkey => unkey_py}/utils/__init__.py | 0 src/{unkey => unkey_py}/utils/annotations.py | 0 src/{unkey => unkey_py}/utils/enums.py | 0 .../utils/eventstreaming.py | 0 src/{unkey => unkey_py}/utils/forms.py | 0 src/{unkey => unkey_py}/utils/headers.py | 0 src/{unkey => unkey_py}/utils/logger.py | 2 +- src/{unkey => unkey_py}/utils/metadata.py | 0 src/{unkey => unkey_py}/utils/queryparams.py | 0 .../utils/requestbodies.py | 0 src/{unkey => unkey_py}/utils/retries.py | 0 src/{unkey => unkey_py}/utils/security.py | 0 src/{unkey => unkey_py}/utils/serializers.py | 0 src/{unkey => unkey_py}/utils/url.py | 0 src/{unkey => unkey_py}/utils/values.py | 0 101 files changed, 311 insertions(+), 288 deletions(-) rename src/{unkey => unkey_py}/__init__.py (100%) rename src/{unkey => unkey_py}/_hooks/__init__.py (100%) create mode 100644 src/unkey_py/_hooks/registration.py rename src/{unkey => unkey_py}/_hooks/sdkhooks.py (98%) rename src/{unkey => unkey_py}/_hooks/types.py (98%) rename src/{unkey => unkey_py}/_version.py (82%) rename src/{unkey => unkey_py}/apis.py (99%) rename src/{unkey => unkey_py}/basesdk.py (98%) rename src/{unkey => unkey_py}/httpclient.py (100%) rename src/{unkey => unkey_py}/identities.py (99%) rename src/{unkey => unkey_py}/keys.py (99%) rename src/{unkey => unkey_py}/liveness.py (98%) rename src/{unkey => unkey_py}/migrations.py (99%) rename src/{unkey => unkey_py}/models/__init__.py (100%) rename src/{unkey => unkey_py}/models/addpermissionsop.py (98%) rename src/{unkey => unkey_py}/models/addrolesop.py (98%) rename src/{unkey => unkey_py}/models/createapiop.py (97%) rename src/{unkey => unkey_py}/models/createidentityop.py (99%) rename src/{unkey => unkey_py}/models/createkeyop.py (99%) rename src/{unkey => unkey_py}/models/createpermissionop.py (97%) rename src/{unkey => unkey_py}/models/createroleop.py (97%) rename src/{unkey => unkey_py}/models/deleteapiop.py (97%) rename src/{unkey => unkey_py}/models/deleteidentityop.py (97%) rename src/{unkey => unkey_py}/models/deletekeyop.py (97%) rename src/{unkey => unkey_py}/models/deletekeysop.py (97%) rename src/{unkey => unkey_py}/models/deletepermissionop.py (97%) rename src/{unkey => unkey_py}/models/deleteroleop.py (96%) rename src/{unkey => unkey_py}/models/errbadrequest.py (95%) rename src/{unkey => unkey_py}/models/errconflict.py (95%) rename src/{unkey => unkey_py}/models/errdeleteprotected.py (95%) rename src/{unkey => unkey_py}/models/errforbidden.py (95%) rename src/{unkey => unkey_py}/models/errinternalservererror.py (95%) rename src/{unkey => unkey_py}/models/errnotfound.py (95%) rename src/{unkey => unkey_py}/models/errtoomanyrequests.py (95%) rename src/{unkey => unkey_py}/models/errunauthorized.py (95%) rename src/{unkey => unkey_py}/models/getapiop.py (94%) rename src/{unkey => unkey_py}/models/getidentityop.py (96%) rename src/{unkey => unkey_py}/models/getkeyop.py (93%) rename src/{unkey => unkey_py}/models/getpermissionop.py (94%) rename src/{unkey => unkey_py}/models/getroleop.py (93%) rename src/{unkey => unkey_py}/models/getverificationsop.py (96%) rename src/{unkey => unkey_py}/models/httpmetadata.py (95%) rename src/{unkey => unkey_py}/models/key.py (99%) rename src/{unkey => unkey_py}/models/limitop.py (99%) rename src/{unkey => unkey_py}/models/listidentitiesop.py (97%) rename src/{unkey => unkey_py}/models/listkeysop.py (96%) rename src/{unkey => unkey_py}/models/listpermissionsop.py (97%) rename src/{unkey => unkey_py}/models/listrolesop.py (97%) rename src/{unkey => unkey_py}/models/permissionquery.py (95%) rename src/{unkey => unkey_py}/models/removepermissionsop.py (98%) rename src/{unkey => unkey_py}/models/removerolesop.py (97%) rename src/{unkey => unkey_py}/models/sdkerror.py (100%) rename src/{unkey => unkey_py}/models/security.py (86%) rename src/{unkey => unkey_py}/models/setpermissionsop.py (98%) rename src/{unkey => unkey_py}/models/setrolesop.py (98%) rename src/{unkey => unkey_py}/models/updateidentityop.py (99%) rename src/{unkey => unkey_py}/models/updatekeyop.py (99%) rename src/{unkey => unkey_py}/models/updateremainingop.py (98%) rename src/{unkey => unkey_py}/models/v1_livenessop.py (98%) rename src/{unkey => unkey_py}/models/v1_migrations_createkeysop.py (99%) rename src/{unkey => unkey_py}/models/v1_migrations_enqueuekeysop.py (99%) rename src/{unkey => unkey_py}/models/v1keysverifykeyrequest.py (98%) rename src/{unkey => unkey_py}/models/v1keysverifykeyresponse.py (99%) rename src/{unkey => unkey_py}/models/verifykeyop.py (95%) rename src/{unkey => unkey_py}/models/whoamiop.py (98%) rename src/{unkey => unkey_py}/permissions.py (99%) rename src/{unkey => unkey_py}/py.typed (100%) rename src/{unkey => unkey_py}/ratelimits.py (98%) rename src/{unkey => unkey_py}/sdk.py (91%) rename src/{unkey => unkey_py}/sdkconfiguration.py (88%) rename src/{unkey => unkey_py}/types/__init__.py (100%) rename src/{unkey => unkey_py}/types/basemodel.py (100%) rename src/{unkey => unkey_py}/utils/__init__.py (100%) rename src/{unkey => unkey_py}/utils/annotations.py (100%) rename src/{unkey => unkey_py}/utils/enums.py (100%) rename src/{unkey => unkey_py}/utils/eventstreaming.py (100%) rename src/{unkey => unkey_py}/utils/forms.py (100%) rename src/{unkey => unkey_py}/utils/headers.py (100%) rename src/{unkey => unkey_py}/utils/logger.py (93%) rename src/{unkey => unkey_py}/utils/metadata.py (100%) rename src/{unkey => unkey_py}/utils/queryparams.py (100%) rename src/{unkey => unkey_py}/utils/requestbodies.py (100%) rename src/{unkey => unkey_py}/utils/retries.py (100%) rename src/{unkey => unkey_py}/utils/security.py (100%) rename src/{unkey => unkey_py}/utils/serializers.py (100%) rename src/{unkey => unkey_py}/utils/url.py (100%) rename src/{unkey => unkey_py}/utils/values.py (100%) diff --git a/.speakeasy/gen.lock b/.speakeasy/gen.lock index 0f79667..0603d91 100644 --- a/.speakeasy/gen.lock +++ b/.speakeasy/gen.lock @@ -3,10 +3,10 @@ id: 8618b570-44d2-4c9e-aa91-d78e8fe5330e management: docChecksum: 6a3c4265582b7a6d51d438f935f03946 docVersion: 1.0.0 - speakeasyVersion: 1.423.1 + speakeasyVersion: 1.423.2 generationVersion: 2.442.11 - releaseVersion: 0.2.0 - configChecksum: 6f8d3a2df81e982a349004e60ee623a2 + releaseVersion: 0.2.1 + configChecksum: ab6b2b4d99cbe9ccc8b9e716725cb36f repoURL: https://github.com/unkeyed/unkey-py.git installationURL: https://github.com/unkeyed/unkey-py.git published: true @@ -246,92 +246,92 @@ generatedFiles: - scripts/compile.sh - scripts/prepare-readme.py - scripts/publish.sh - - src/unkey/__init__.py - - src/unkey/_hooks/__init__.py - - src/unkey/_hooks/sdkhooks.py - - src/unkey/_hooks/types.py - - src/unkey/_version.py - - src/unkey/apis.py - - src/unkey/basesdk.py - - src/unkey/httpclient.py - - src/unkey/identities.py - - src/unkey/keys.py - - src/unkey/liveness.py - - src/unkey/migrations.py - - src/unkey/models/__init__.py - - src/unkey/models/addpermissionsop.py - - src/unkey/models/addrolesop.py - - src/unkey/models/createapiop.py - - src/unkey/models/createidentityop.py - - src/unkey/models/createkeyop.py - - src/unkey/models/createpermissionop.py - - src/unkey/models/createroleop.py - - src/unkey/models/deleteapiop.py - - src/unkey/models/deleteidentityop.py - - src/unkey/models/deletekeyop.py - - src/unkey/models/deletekeysop.py - - src/unkey/models/deletepermissionop.py - - src/unkey/models/deleteroleop.py - - src/unkey/models/errbadrequest.py - - src/unkey/models/errconflict.py - - src/unkey/models/errdeleteprotected.py - - src/unkey/models/errforbidden.py - - src/unkey/models/errinternalservererror.py - - src/unkey/models/errnotfound.py - - src/unkey/models/errtoomanyrequests.py - - src/unkey/models/errunauthorized.py - - src/unkey/models/getapiop.py - - src/unkey/models/getidentityop.py - - src/unkey/models/getkeyop.py - - src/unkey/models/getpermissionop.py - - src/unkey/models/getroleop.py - - src/unkey/models/getverificationsop.py - - src/unkey/models/httpmetadata.py - - src/unkey/models/key.py - - src/unkey/models/limitop.py - - src/unkey/models/listidentitiesop.py - - src/unkey/models/listkeysop.py - - src/unkey/models/listpermissionsop.py - - src/unkey/models/listrolesop.py - - src/unkey/models/permissionquery.py - - src/unkey/models/removepermissionsop.py - - src/unkey/models/removerolesop.py - - src/unkey/models/sdkerror.py - - src/unkey/models/security.py - - src/unkey/models/setpermissionsop.py - - src/unkey/models/setrolesop.py - - src/unkey/models/updateidentityop.py - - src/unkey/models/updatekeyop.py - - src/unkey/models/updateremainingop.py - - src/unkey/models/v1_livenessop.py - - src/unkey/models/v1_migrations_createkeysop.py - - src/unkey/models/v1_migrations_enqueuekeysop.py - - src/unkey/models/v1keysverifykeyrequest.py - - src/unkey/models/v1keysverifykeyresponse.py - - src/unkey/models/verifykeyop.py - - src/unkey/models/whoamiop.py - - src/unkey/permissions.py - - src/unkey/py.typed - - src/unkey/ratelimits.py - - src/unkey/sdk.py - - src/unkey/sdkconfiguration.py - - src/unkey/types/__init__.py - - src/unkey/types/basemodel.py - - src/unkey/utils/__init__.py - - src/unkey/utils/annotations.py - - src/unkey/utils/enums.py - - src/unkey/utils/eventstreaming.py - - src/unkey/utils/forms.py - - src/unkey/utils/headers.py - - src/unkey/utils/logger.py - - src/unkey/utils/metadata.py - - src/unkey/utils/queryparams.py - - src/unkey/utils/requestbodies.py - - src/unkey/utils/retries.py - - src/unkey/utils/security.py - - src/unkey/utils/serializers.py - - src/unkey/utils/url.py - - src/unkey/utils/values.py + - src/unkey_py/__init__.py + - src/unkey_py/_hooks/__init__.py + - src/unkey_py/_hooks/sdkhooks.py + - src/unkey_py/_hooks/types.py + - src/unkey_py/_version.py + - src/unkey_py/apis.py + - src/unkey_py/basesdk.py + - src/unkey_py/httpclient.py + - src/unkey_py/identities.py + - src/unkey_py/keys.py + - src/unkey_py/liveness.py + - src/unkey_py/migrations.py + - src/unkey_py/models/__init__.py + - src/unkey_py/models/addpermissionsop.py + - src/unkey_py/models/addrolesop.py + - src/unkey_py/models/createapiop.py + - src/unkey_py/models/createidentityop.py + - src/unkey_py/models/createkeyop.py + - src/unkey_py/models/createpermissionop.py + - src/unkey_py/models/createroleop.py + - src/unkey_py/models/deleteapiop.py + - src/unkey_py/models/deleteidentityop.py + - src/unkey_py/models/deletekeyop.py + - src/unkey_py/models/deletekeysop.py + - src/unkey_py/models/deletepermissionop.py + - src/unkey_py/models/deleteroleop.py + - src/unkey_py/models/errbadrequest.py + - src/unkey_py/models/errconflict.py + - src/unkey_py/models/errdeleteprotected.py + - src/unkey_py/models/errforbidden.py + - src/unkey_py/models/errinternalservererror.py + - src/unkey_py/models/errnotfound.py + - src/unkey_py/models/errtoomanyrequests.py + - src/unkey_py/models/errunauthorized.py + - src/unkey_py/models/getapiop.py + - src/unkey_py/models/getidentityop.py + - src/unkey_py/models/getkeyop.py + - src/unkey_py/models/getpermissionop.py + - src/unkey_py/models/getroleop.py + - src/unkey_py/models/getverificationsop.py + - src/unkey_py/models/httpmetadata.py + - src/unkey_py/models/key.py + - src/unkey_py/models/limitop.py + - src/unkey_py/models/listidentitiesop.py + - src/unkey_py/models/listkeysop.py + - src/unkey_py/models/listpermissionsop.py + - src/unkey_py/models/listrolesop.py + - src/unkey_py/models/permissionquery.py + - src/unkey_py/models/removepermissionsop.py + - src/unkey_py/models/removerolesop.py + - src/unkey_py/models/sdkerror.py + - src/unkey_py/models/security.py + - src/unkey_py/models/setpermissionsop.py + - src/unkey_py/models/setrolesop.py + - src/unkey_py/models/updateidentityop.py + - src/unkey_py/models/updatekeyop.py + - src/unkey_py/models/updateremainingop.py + - src/unkey_py/models/v1_livenessop.py + - src/unkey_py/models/v1_migrations_createkeysop.py + - src/unkey_py/models/v1_migrations_enqueuekeysop.py + - src/unkey_py/models/v1keysverifykeyrequest.py + - src/unkey_py/models/v1keysverifykeyresponse.py + - src/unkey_py/models/verifykeyop.py + - src/unkey_py/models/whoamiop.py + - src/unkey_py/permissions.py + - src/unkey_py/py.typed + - src/unkey_py/ratelimits.py + - src/unkey_py/sdk.py + - src/unkey_py/sdkconfiguration.py + - src/unkey_py/types/__init__.py + - src/unkey_py/types/basemodel.py + - src/unkey_py/utils/__init__.py + - src/unkey_py/utils/annotations.py + - src/unkey_py/utils/enums.py + - src/unkey_py/utils/eventstreaming.py + - src/unkey_py/utils/forms.py + - src/unkey_py/utils/headers.py + - src/unkey_py/utils/logger.py + - src/unkey_py/utils/metadata.py + - src/unkey_py/utils/queryparams.py + - src/unkey_py/utils/requestbodies.py + - src/unkey_py/utils/retries.py + - src/unkey_py/utils/security.py + - src/unkey_py/utils/serializers.py + - src/unkey_py/utils/url.py + - src/unkey_py/utils/values.py examples: v1.liveness: speakeasy-default-v1-liveness: diff --git a/.speakeasy/gen.yaml b/.speakeasy/gen.yaml index 6a28f46..3e43f81 100644 --- a/.speakeasy/gen.yaml +++ b/.speakeasy/gen.yaml @@ -15,7 +15,7 @@ generation: auth: oAuth2ClientCredentialsEnabled: true python: - version: 0.2.0 + version: 0.2.1 additionalDependencies: dev: {} main: {} diff --git a/.speakeasy/workflow.lock b/.speakeasy/workflow.lock index dfb40de..90a6232 100644 --- a/.speakeasy/workflow.lock +++ b/.speakeasy/workflow.lock @@ -1,8 +1,8 @@ -speakeasyVersion: 1.423.1 +speakeasyVersion: 1.423.2 sources: Unkey-OAS: sourceNamespace: unkey-oas - sourceRevisionDigest: sha256:dadcd25da50cf8783e6c2fba52f0c5e004af0c77635edacdc6948b5d8cf88c51 + sourceRevisionDigest: sha256:03047b549939407d79938b5a9f9c27c689dad8d80d6635471e89043b89848b77 sourceBlobDigest: sha256:6af87205b63b788e53a11d7145cd48df3e627187a5a2f694c27e3b2b49b06871 tags: - latest @@ -11,10 +11,10 @@ targets: unkey: source: Unkey-OAS sourceNamespace: unkey-oas - sourceRevisionDigest: sha256:dadcd25da50cf8783e6c2fba52f0c5e004af0c77635edacdc6948b5d8cf88c51 + sourceRevisionDigest: sha256:03047b549939407d79938b5a9f9c27c689dad8d80d6635471e89043b89848b77 sourceBlobDigest: sha256:6af87205b63b788e53a11d7145cd48df3e627187a5a2f694c27e3b2b49b06871 codeSamplesNamespace: unkey-oas-code-samples - codeSamplesRevisionDigest: sha256:7555f203175249a448e9cc199ac850a15ba297f09eb320ec9913825d0979f417 + codeSamplesRevisionDigest: sha256:74fbb75516a01df5ebc92ddfa43bffe6d18873933719e7ffadfd16bc591f6271 workflow: workflowVersion: 1.0.0 speakeasyVersion: latest diff --git a/README.md b/README.md index 436f20d..f2eeb71 100644 --- a/README.md +++ b/README.md @@ -44,7 +44,7 @@ The SDK can be installed with either *pip* or *poetry* package managers. *PIP* is the default package installer for Python, enabling easy installation and management of packages from PyPI via the command line. ```bash -pip install unkey +pip install unkey.py ``` ### Poetry @@ -52,7 +52,7 @@ pip install unkey *Poetry* is a modern tool that simplifies dependency management and package publishing by using a single `pyproject.toml` file to handle project metadata and dependencies. ```bash -poetry add unkey +poetry add unkey.py ``` @@ -74,7 +74,7 @@ Generally, the SDK will work well with most IDEs out of the box. However, when u ```python # Synchronous Example import os -from unkey import Unkey +from unkey_py import Unkey s = Unkey( bearer_auth=os.getenv("UNKEY_BEARER_AUTH", ""), @@ -94,7 +94,7 @@ The same SDK client can also be used to make asychronous requests by importing a # Asynchronous Example import asyncio import os -from unkey import Unkey +from unkey_py import Unkey async def main(): s = Unkey( @@ -186,7 +186,7 @@ return value of `Next` is `None`, then there are no more pages to be fetched. Here's an example of one such pagination call: ```python import os -from unkey import Unkey +from unkey_py import Unkey s = Unkey( bearer_auth=os.getenv("UNKEY_BEARER_AUTH", ""), @@ -213,8 +213,8 @@ Some of the endpoints in this SDK support retries. If you use the SDK without an To change the default retry strategy for a single API call, simply provide a `RetryConfig` object to the call: ```python import os -from unkey import Unkey from unkey.utils import BackoffStrategy, RetryConfig +from unkey_py import Unkey s = Unkey( bearer_auth=os.getenv("UNKEY_BEARER_AUTH", ""), @@ -232,8 +232,8 @@ if res.object is not None: If you'd like to override the default retry strategy for all operations that support retries, you can use the `retry_config` optional parameter when initializing the SDK: ```python import os -from unkey import Unkey from unkey.utils import BackoffStrategy, RetryConfig +from unkey_py import Unkey s = Unkey( retry_config=RetryConfig("backoff", BackoffStrategy(1, 50, 1.1, 100), False), @@ -280,7 +280,7 @@ When custom error responses are specified for an operation, the SDK may also rai ```python import os -from unkey import Unkey, models +from unkey_py import Unkey, models s = Unkey( bearer_auth=os.getenv("UNKEY_BEARER_AUTH", ""), @@ -336,7 +336,7 @@ You can override the default server globally by passing a server index to the `s ```python import os -from unkey import Unkey +from unkey_py import Unkey s = Unkey( server_idx=0, @@ -357,7 +357,7 @@ if res.object is not None: The default server can also be overridden globally by passing a URL to the `server_url: str` optional parameter when initializing the SDK client instance. For example: ```python import os -from unkey import Unkey +from unkey_py import Unkey s = Unkey( server_url="https://api.unkey.dev", @@ -382,7 +382,7 @@ This allows you to wrap the client with your own custom logic, such as adding cu For example, you could specify a header for every request that this sdk makes as follows: ```python -from unkey import Unkey +from unkey_py import Unkey import httpx http_client = httpx.Client(headers={"x-custom-header": "someValue"}) @@ -391,8 +391,8 @@ s = Unkey(client=http_client) or you could wrap the client with your own custom logic: ```python -from unkey import Unkey -from unkey.httpclient import AsyncHttpClient +from unkey_py import Unkey +from unkey_py.httpclient import AsyncHttpClient import httpx class CustomClient(AsyncHttpClient): @@ -468,7 +468,7 @@ This SDK supports the following security scheme globally: To authenticate with the API the `bearer_auth` parameter must be set when initializing the SDK client instance. For example: ```python import os -from unkey import Unkey +from unkey_py import Unkey s = Unkey( bearer_auth=os.getenv("UNKEY_BEARER_AUTH", ""), @@ -490,11 +490,11 @@ You can setup your SDK to emit debug logs for SDK requests and responses. You can pass your own logger class directly into your SDK. ```python -from unkey import Unkey +from unkey_py import Unkey import logging logging.basicConfig(level=logging.DEBUG) -s = Unkey(debug_logger=logging.getLogger("unkey")) +s = Unkey(debug_logger=logging.getLogger("unkey_py")) ``` You can also enable a default debug logger by setting an environment variable `UNKEY_DEBUG` to true. diff --git a/RELEASES.md b/RELEASES.md index b9e87cf..eaef41c 100644 --- a/RELEASES.md +++ b/RELEASES.md @@ -18,4 +18,14 @@ Based on: ### Generated - [python v0.2.0] . ### Releases -- [PyPI v0.2.0] https://pypi.org/project/unkey/0.2.0 - . \ No newline at end of file +- [PyPI v0.2.0] https://pypi.org/project/unkey/0.2.0 - . + +## 2024-10-30 09:34:46 +### Changes +Based on: +- OpenAPI Doc +- Speakeasy CLI 1.423.2 (2.442.11) https://github.com/speakeasy-api/speakeasy +### Generated +- [python v0.2.1] . +### Releases +- [PyPI v0.2.1] https://pypi.org/project/unkey.py/0.2.1 - . \ No newline at end of file diff --git a/USAGE.md b/USAGE.md index 2fd2fc8..09fb0c1 100644 --- a/USAGE.md +++ b/USAGE.md @@ -2,7 +2,7 @@ ```python # Synchronous Example import os -from unkey import Unkey +from unkey_py import Unkey s = Unkey( bearer_auth=os.getenv("UNKEY_BEARER_AUTH", ""), @@ -22,7 +22,7 @@ The same SDK client can also be used to make asychronous requests by importing a # Asynchronous Example import asyncio import os -from unkey import Unkey +from unkey_py import Unkey async def main(): s = Unkey( diff --git a/docs/sdks/apis/README.md b/docs/sdks/apis/README.md index 69f828f..f68fa1e 100644 --- a/docs/sdks/apis/README.md +++ b/docs/sdks/apis/README.md @@ -17,7 +17,7 @@ ```python import os -from unkey import Unkey +from unkey_py import Unkey s = Unkey( bearer_auth=os.getenv("UNKEY_BEARER_AUTH", ""), @@ -61,7 +61,7 @@ if res.object is not None: ```python import os -from unkey import Unkey +from unkey_py import Unkey s = Unkey( bearer_auth=os.getenv("UNKEY_BEARER_AUTH", ""), @@ -107,7 +107,7 @@ if res.object is not None: ```python import os -from unkey import Unkey +from unkey_py import Unkey s = Unkey( bearer_auth=os.getenv("UNKEY_BEARER_AUTH", ""), @@ -154,7 +154,7 @@ if res.object is not None: ```python import os -from unkey import Unkey +from unkey_py import Unkey s = Unkey( bearer_auth=os.getenv("UNKEY_BEARER_AUTH", ""), @@ -200,7 +200,7 @@ if res.object is not None: ```python import os -from unkey import Unkey +from unkey_py import Unkey s = Unkey( bearer_auth=os.getenv("UNKEY_BEARER_AUTH", ""), diff --git a/docs/sdks/identities/README.md b/docs/sdks/identities/README.md index 1ed47cc..11e0e75 100644 --- a/docs/sdks/identities/README.md +++ b/docs/sdks/identities/README.md @@ -17,7 +17,7 @@ ```python import os -from unkey import Unkey +from unkey_py import Unkey s = Unkey( bearer_auth=os.getenv("UNKEY_BEARER_AUTH", ""), @@ -75,7 +75,7 @@ if res.object is not None: ```python import os -from unkey import Unkey +from unkey_py import Unkey s = Unkey( bearer_auth=os.getenv("UNKEY_BEARER_AUTH", ""), @@ -120,7 +120,7 @@ if res.object is not None: ```python import os -from unkey import Unkey +from unkey_py import Unkey s = Unkey( bearer_auth=os.getenv("UNKEY_BEARER_AUTH", ""), @@ -170,7 +170,7 @@ if res.object is not None: ```python import os -from unkey import Unkey +from unkey_py import Unkey s = Unkey( bearer_auth=os.getenv("UNKEY_BEARER_AUTH", ""), @@ -234,7 +234,7 @@ if res.object is not None: ```python import os -from unkey import Unkey +from unkey_py import Unkey s = Unkey( bearer_auth=os.getenv("UNKEY_BEARER_AUTH", ""), diff --git a/docs/sdks/keys/README.md b/docs/sdks/keys/README.md index bb73f8e..140485b 100644 --- a/docs/sdks/keys/README.md +++ b/docs/sdks/keys/README.md @@ -26,7 +26,7 @@ ```python import os -from unkey import Unkey +from unkey_py import Unkey s = Unkey( bearer_auth=os.getenv("UNKEY_BEARER_AUTH", ""), @@ -71,7 +71,7 @@ if res.key is not None: ```python import os -from unkey import Unkey +from unkey_py import Unkey s = Unkey( bearer_auth=os.getenv("UNKEY_BEARER_AUTH", ""), @@ -117,7 +117,7 @@ if res.object is not None: ```python import os -from unkey import Unkey +from unkey_py import Unkey s = Unkey( bearer_auth=os.getenv("UNKEY_BEARER_AUTH", ""), @@ -163,8 +163,8 @@ if res.object is not None: ```python import os -import unkey -from unkey import Unkey +import unkey_py +from unkey_py import Unkey s = Unkey( bearer_auth=os.getenv("UNKEY_BEARER_AUTH", ""), @@ -189,12 +189,12 @@ res = s.keys.create(request={ "expires": 1623869797161, "remaining": 1000, "refill": { - "interval": unkey.CreateKeyInterval.DAILY, + "interval": unkey_py.CreateKeyInterval.DAILY, "amount": 100, }, "ratelimit": { "limit": 10, - "type": unkey.CreateKeyType.FAST, + "type": unkey_py.CreateKeyType.FAST, "duration": 60000, }, "enabled": False, @@ -236,7 +236,7 @@ if res.object is not None: ```python import os -from unkey import Unkey +from unkey_py import Unkey s = Unkey( bearer_auth=os.getenv("UNKEY_BEARER_AUTH", ""), @@ -295,8 +295,8 @@ if res.v1_keys_verify_key_response is not None: ```python import os -import unkey -from unkey import Unkey +import unkey_py +from unkey_py import Unkey s = Unkey( bearer_auth=os.getenv("UNKEY_BEARER_AUTH", ""), @@ -316,13 +316,13 @@ res = s.keys.update(request={ "expires": 0, "ratelimit": { "limit": 10, - "type": unkey.UpdateKeyType.FAST, + "type": unkey_py.UpdateKeyType.FAST, "refill_rate": 1, "refill_interval": 60, }, "remaining": 1000, "refill": { - "interval": unkey.UpdateKeyInterval.DAILY, + "interval": unkey_py.UpdateKeyInterval.DAILY, "amount": 100, }, "enabled": True, @@ -388,8 +388,8 @@ if res.object is not None: ```python import os -import unkey -from unkey import Unkey +import unkey_py +from unkey_py import Unkey s = Unkey( bearer_auth=os.getenv("UNKEY_BEARER_AUTH", ""), @@ -397,7 +397,7 @@ s = Unkey( res = s.keys.update_remaining(request={ "key_id": "key_123", - "op": unkey.Op.SET, + "op": unkey_py.Op.SET, "value": 1, }) @@ -437,8 +437,8 @@ if res.object is not None: ```python import os -import unkey -from unkey import Unkey +import unkey_py +from unkey_py import Unkey s = Unkey( bearer_auth=os.getenv("UNKEY_BEARER_AUTH", ""), @@ -449,7 +449,7 @@ res = s.keys.get_verifications(request={ "owner_id": "chronark", "start": 1620000000000, "end": 1620000000000, - "granularity": unkey.Granularity.DAY, + "granularity": unkey_py.Granularity.DAY, }) if res.object is not None: @@ -488,7 +488,7 @@ if res.object is not None: ```python import os -from unkey import Unkey +from unkey_py import Unkey s = Unkey( bearer_auth=os.getenv("UNKEY_BEARER_AUTH", ""), @@ -537,7 +537,7 @@ if res.response_bodies is not None: ```python import os -from unkey import Unkey +from unkey_py import Unkey s = Unkey( bearer_auth=os.getenv("UNKEY_BEARER_AUTH", ""), @@ -591,7 +591,7 @@ if res.object is not None: ```python import os -from unkey import Unkey +from unkey_py import Unkey s = Unkey( bearer_auth=os.getenv("UNKEY_BEARER_AUTH", ""), @@ -649,7 +649,7 @@ if res.response_bodies is not None: ```python import os -from unkey import Unkey +from unkey_py import Unkey s = Unkey( bearer_auth=os.getenv("UNKEY_BEARER_AUTH", ""), @@ -707,7 +707,7 @@ if res.response_bodies is not None: ```python import os -from unkey import Unkey +from unkey_py import Unkey s = Unkey( bearer_auth=os.getenv("UNKEY_BEARER_AUTH", ""), @@ -761,7 +761,7 @@ if res.object is not None: ```python import os -from unkey import Unkey +from unkey_py import Unkey s = Unkey( bearer_auth=os.getenv("UNKEY_BEARER_AUTH", ""), diff --git a/docs/sdks/liveness/README.md b/docs/sdks/liveness/README.md index 9ed9d23..897fd01 100644 --- a/docs/sdks/liveness/README.md +++ b/docs/sdks/liveness/README.md @@ -13,7 +13,7 @@ ```python import os -from unkey import Unkey +from unkey_py import Unkey s = Unkey( bearer_auth=os.getenv("UNKEY_BEARER_AUTH", ""), diff --git a/docs/sdks/migrations/README.md b/docs/sdks/migrations/README.md index efd787e..8f5b4a3 100644 --- a/docs/sdks/migrations/README.md +++ b/docs/sdks/migrations/README.md @@ -14,8 +14,8 @@ ```python import os -import unkey -from unkey import Unkey +import unkey_py +from unkey_py import Unkey s = Unkey( bearer_auth=os.getenv("UNKEY_BEARER_AUTH", ""), @@ -42,14 +42,14 @@ res = s.migrations.create_keys(request=[ "expires": 1623869797161, "remaining": 1000, "refill": { - "interval": unkey.V1MigrationsCreateKeysInterval.DAILY, + "interval": unkey_py.V1MigrationsCreateKeysInterval.DAILY, "amount": 100, }, "ratelimit": { "limit": 10, "refill_rate": 1, "refill_interval": 60, - "type": unkey.V1MigrationsCreateKeysType.FAST, + "type": unkey_py.V1MigrationsCreateKeysType.FAST, }, "enabled": False, }, @@ -91,8 +91,8 @@ if res.object is not None: ```python import os -import unkey -from unkey import Unkey +import unkey_py +from unkey_py import Unkey s = Unkey( bearer_auth=os.getenv("UNKEY_BEARER_AUTH", ""), @@ -121,13 +121,13 @@ res = s.migrations.enqueue(request={ "expires": 1623869797161, "remaining": 1000, "refill": { - "interval": unkey.V1MigrationsEnqueueKeysInterval.DAILY, + "interval": unkey_py.V1MigrationsEnqueueKeysInterval.DAILY, "amount": 100, }, "ratelimit": { "limit": 10, "duration": 60000, - "type": unkey.V1MigrationsEnqueueKeysType.FAST, + "type": unkey_py.V1MigrationsEnqueueKeysType.FAST, }, "enabled": False, }, diff --git a/docs/sdks/permissions/README.md b/docs/sdks/permissions/README.md index 59c6043..cd70dd5 100644 --- a/docs/sdks/permissions/README.md +++ b/docs/sdks/permissions/README.md @@ -20,7 +20,7 @@ ```python import os -from unkey import Unkey +from unkey_py import Unkey s = Unkey( bearer_auth=os.getenv("UNKEY_BEARER_AUTH", ""), @@ -67,7 +67,7 @@ if res.object is not None: ```python import os -from unkey import Unkey +from unkey_py import Unkey s = Unkey( bearer_auth=os.getenv("UNKEY_BEARER_AUTH", ""), @@ -113,7 +113,7 @@ if res.object is not None: ```python import os -from unkey import Unkey +from unkey_py import Unkey s = Unkey( bearer_auth=os.getenv("UNKEY_BEARER_AUTH", ""), @@ -157,7 +157,7 @@ if res.object is not None: ```python import os -from unkey import Unkey +from unkey_py import Unkey s = Unkey( bearer_auth=os.getenv("UNKEY_BEARER_AUTH", ""), @@ -200,7 +200,7 @@ if res.response_bodies is not None: ```python import os -from unkey import Unkey +from unkey_py import Unkey s = Unkey( bearer_auth=os.getenv("UNKEY_BEARER_AUTH", ""), @@ -247,7 +247,7 @@ if res.object is not None: ```python import os -from unkey import Unkey +from unkey_py import Unkey s = Unkey( bearer_auth=os.getenv("UNKEY_BEARER_AUTH", ""), @@ -293,7 +293,7 @@ if res.object is not None: ```python import os -from unkey import Unkey +from unkey_py import Unkey s = Unkey( bearer_auth=os.getenv("UNKEY_BEARER_AUTH", ""), @@ -337,7 +337,7 @@ if res.object is not None: ```python import os -from unkey import Unkey +from unkey_py import Unkey s = Unkey( bearer_auth=os.getenv("UNKEY_BEARER_AUTH", ""), diff --git a/docs/sdks/ratelimits/README.md b/docs/sdks/ratelimits/README.md index e8317ad..1c93cd0 100644 --- a/docs/sdks/ratelimits/README.md +++ b/docs/sdks/ratelimits/README.md @@ -13,7 +13,7 @@ ```python import os -from unkey import Unkey +from unkey_py import Unkey s = Unkey( bearer_auth=os.getenv("UNKEY_BEARER_AUTH", ""), diff --git a/pyproject.toml b/pyproject.toml index a7719b4..8ee09c4 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,17 +1,17 @@ [tool.poetry] -name = "unkey" -version = "0.2.0" -description = "Python Client SDK Generated by Speakeasy." +name = "unkey.py" +version = "0.2.1" +description = "Python Client SDK for unkey.com." authors = ["Speakeasy",] readme = "README-PYPI.md" repository = "https://github.com/unkeyed/unkey-py.git" packages = [ - { include = "unkey", from = "src" } + { include = "unkey_py", from = "src" } ] -include = ["py.typed", "src/unkey/py.typed"] +include = ["py.typed", "src/unkey_py/py.typed"] [tool.setuptools.package-data] -"*" = ["py.typed", "src/unkey/py.typed"] +"*" = ["py.typed", "src/unkey_py/py.typed"] [virtualenvs] in-project = true diff --git a/src/unkey/__init__.py b/src/unkey_py/__init__.py similarity index 100% rename from src/unkey/__init__.py rename to src/unkey_py/__init__.py diff --git a/src/unkey/_hooks/__init__.py b/src/unkey_py/_hooks/__init__.py similarity index 100% rename from src/unkey/_hooks/__init__.py rename to src/unkey_py/_hooks/__init__.py diff --git a/src/unkey_py/_hooks/registration.py b/src/unkey_py/_hooks/registration.py new file mode 100644 index 0000000..cab4778 --- /dev/null +++ b/src/unkey_py/_hooks/registration.py @@ -0,0 +1,13 @@ +from .types import Hooks + + +# This file is only ever generated once on the first generation and then is free to be modified. +# Any hooks you wish to add should be registered in the init_hooks function. Feel free to define them +# in this file or in separate files in the hooks folder. + + +def init_hooks(hooks: Hooks): + # pylint: disable=unused-argument + """Add hooks by calling hooks.register{sdk_init/before_request/after_success/after_error}Hook + with an instance of a hook that implements that specific Hook interface + Hooks are registered per SDK instance, and are valid for the lifetime of the SDK instance""" diff --git a/src/unkey/_hooks/sdkhooks.py b/src/unkey_py/_hooks/sdkhooks.py similarity index 98% rename from src/unkey/_hooks/sdkhooks.py rename to src/unkey_py/_hooks/sdkhooks.py index 847c210..2b8b4b2 100644 --- a/src/unkey/_hooks/sdkhooks.py +++ b/src/unkey_py/_hooks/sdkhooks.py @@ -13,7 +13,7 @@ ) from .registration import init_hooks from typing import List, Optional, Tuple -from unkey.httpclient import HttpClient +from unkey_py.httpclient import HttpClient class SDKHooks(Hooks): diff --git a/src/unkey/_hooks/types.py b/src/unkey_py/_hooks/types.py similarity index 98% rename from src/unkey/_hooks/types.py rename to src/unkey_py/_hooks/types.py index 14e9cbf..665a44d 100644 --- a/src/unkey/_hooks/types.py +++ b/src/unkey_py/_hooks/types.py @@ -3,7 +3,7 @@ from abc import ABC, abstractmethod import httpx from typing import Any, Callable, List, Optional, Tuple, Union -from unkey.httpclient import HttpClient +from unkey_py.httpclient import HttpClient class HookContext: diff --git a/src/unkey/_version.py b/src/unkey_py/_version.py similarity index 82% rename from src/unkey/_version.py rename to src/unkey_py/_version.py index 2bfaf51..b9c6db7 100644 --- a/src/unkey/_version.py +++ b/src/unkey_py/_version.py @@ -2,8 +2,8 @@ import importlib.metadata -__title__: str = "unkey" -__version__: str = "0.2.0" +__title__: str = "unkey.py" +__version__: str = "0.2.1" try: if __package__ is not None: diff --git a/src/unkey/apis.py b/src/unkey_py/apis.py similarity index 99% rename from src/unkey/apis.py rename to src/unkey_py/apis.py index 49c446a..e19c2f0 100644 --- a/src/unkey/apis.py +++ b/src/unkey_py/apis.py @@ -2,10 +2,10 @@ from .basesdk import BaseSDK from typing import Any, Optional, Union, cast -from unkey import models, utils -from unkey._hooks import HookContext -from unkey.types import BaseModel, OptionalNullable, UNSET -from unkey.utils import get_security_from_env +from unkey_py import models, utils +from unkey_py._hooks import HookContext +from unkey_py.types import BaseModel, OptionalNullable, UNSET +from unkey_py.utils import get_security_from_env class Apis(BaseSDK): diff --git a/src/unkey/basesdk.py b/src/unkey_py/basesdk.py similarity index 98% rename from src/unkey/basesdk.py rename to src/unkey_py/basesdk.py index f397030..49638bf 100644 --- a/src/unkey/basesdk.py +++ b/src/unkey_py/basesdk.py @@ -3,9 +3,9 @@ from .sdkconfiguration import SDKConfiguration import httpx from typing import Callable, List, Optional, Tuple -from unkey import models, utils -from unkey._hooks import AfterErrorContext, AfterSuccessContext, BeforeRequestContext -from unkey.utils import RetryConfig, SerializedRequestBody, get_body_content +from unkey_py import models, utils +from unkey_py._hooks import AfterErrorContext, AfterSuccessContext, BeforeRequestContext +from unkey_py.utils import RetryConfig, SerializedRequestBody, get_body_content class BaseSDK: diff --git a/src/unkey/httpclient.py b/src/unkey_py/httpclient.py similarity index 100% rename from src/unkey/httpclient.py rename to src/unkey_py/httpclient.py diff --git a/src/unkey/identities.py b/src/unkey_py/identities.py similarity index 99% rename from src/unkey/identities.py rename to src/unkey_py/identities.py index b889a09..dcf6287 100644 --- a/src/unkey/identities.py +++ b/src/unkey_py/identities.py @@ -3,10 +3,10 @@ from .basesdk import BaseSDK from jsonpath import JSONPath from typing import Any, Dict, Optional, Union, cast -from unkey import models, utils -from unkey._hooks import HookContext -from unkey.types import BaseModel, OptionalNullable, UNSET -from unkey.utils import get_security_from_env +from unkey_py import models, utils +from unkey_py._hooks import HookContext +from unkey_py.types import BaseModel, OptionalNullable, UNSET +from unkey_py.utils import get_security_from_env class Identities(BaseSDK): diff --git a/src/unkey/keys.py b/src/unkey_py/keys.py similarity index 99% rename from src/unkey/keys.py rename to src/unkey_py/keys.py index 8606800..36e98fe 100644 --- a/src/unkey/keys.py +++ b/src/unkey_py/keys.py @@ -2,10 +2,10 @@ from .basesdk import BaseSDK from typing import Any, List, Optional, Union, cast -from unkey import models, utils -from unkey._hooks import HookContext -from unkey.types import BaseModel, OptionalNullable, UNSET -from unkey.utils import get_security_from_env +from unkey_py import models, utils +from unkey_py._hooks import HookContext +from unkey_py.types import BaseModel, OptionalNullable, UNSET +from unkey_py.utils import get_security_from_env class Keys(BaseSDK): diff --git a/src/unkey/liveness.py b/src/unkey_py/liveness.py similarity index 98% rename from src/unkey/liveness.py rename to src/unkey_py/liveness.py index 2908c2a..629732f 100644 --- a/src/unkey/liveness.py +++ b/src/unkey_py/liveness.py @@ -2,10 +2,10 @@ from .basesdk import BaseSDK from typing import Any, Optional -from unkey import models, utils -from unkey._hooks import HookContext -from unkey.types import OptionalNullable, UNSET -from unkey.utils import get_security_from_env +from unkey_py import models, utils +from unkey_py._hooks import HookContext +from unkey_py.types import OptionalNullable, UNSET +from unkey_py.utils import get_security_from_env class Liveness(BaseSDK): diff --git a/src/unkey/migrations.py b/src/unkey_py/migrations.py similarity index 99% rename from src/unkey/migrations.py rename to src/unkey_py/migrations.py index 12ecbdf..a2c69e9 100644 --- a/src/unkey/migrations.py +++ b/src/unkey_py/migrations.py @@ -2,10 +2,10 @@ from .basesdk import BaseSDK from typing import Any, List, Optional, Union, cast -from unkey import models, utils -from unkey._hooks import HookContext -from unkey.types import BaseModel, OptionalNullable, UNSET -from unkey.utils import get_security_from_env +from unkey_py import models, utils +from unkey_py._hooks import HookContext +from unkey_py.types import BaseModel, OptionalNullable, UNSET +from unkey_py.utils import get_security_from_env class Migrations(BaseSDK): diff --git a/src/unkey/models/__init__.py b/src/unkey_py/models/__init__.py similarity index 100% rename from src/unkey/models/__init__.py rename to src/unkey_py/models/__init__.py diff --git a/src/unkey/models/addpermissionsop.py b/src/unkey_py/models/addpermissionsop.py similarity index 98% rename from src/unkey/models/addpermissionsop.py rename to src/unkey_py/models/addpermissionsop.py index 69cdc9b..8073c5e 100644 --- a/src/unkey/models/addpermissionsop.py +++ b/src/unkey_py/models/addpermissionsop.py @@ -5,7 +5,7 @@ import pydantic from typing import List, Optional from typing_extensions import Annotated, NotRequired, TypedDict -from unkey.types import BaseModel +from unkey_py.types import BaseModel class AddPermissionsPermissionsTypedDict(TypedDict): diff --git a/src/unkey/models/addrolesop.py b/src/unkey_py/models/addrolesop.py similarity index 98% rename from src/unkey/models/addrolesop.py rename to src/unkey_py/models/addrolesop.py index d608030..5afa34c 100644 --- a/src/unkey/models/addrolesop.py +++ b/src/unkey_py/models/addrolesop.py @@ -5,7 +5,7 @@ import pydantic from typing import List, Optional from typing_extensions import Annotated, NotRequired, TypedDict -from unkey.types import BaseModel +from unkey_py.types import BaseModel class AddRolesRolesTypedDict(TypedDict): diff --git a/src/unkey/models/createapiop.py b/src/unkey_py/models/createapiop.py similarity index 97% rename from src/unkey/models/createapiop.py rename to src/unkey_py/models/createapiop.py index 6191cbd..95eecb4 100644 --- a/src/unkey/models/createapiop.py +++ b/src/unkey_py/models/createapiop.py @@ -5,7 +5,7 @@ import pydantic from typing import Optional from typing_extensions import Annotated, NotRequired, TypedDict -from unkey.types import BaseModel +from unkey_py.types import BaseModel class CreateAPIRequestBodyTypedDict(TypedDict): diff --git a/src/unkey/models/createidentityop.py b/src/unkey_py/models/createidentityop.py similarity index 99% rename from src/unkey/models/createidentityop.py rename to src/unkey_py/models/createidentityop.py index 2a35ef6..9009e3d 100644 --- a/src/unkey/models/createidentityop.py +++ b/src/unkey_py/models/createidentityop.py @@ -5,7 +5,7 @@ import pydantic from typing import Any, Dict, List, Optional from typing_extensions import Annotated, NotRequired, TypedDict -from unkey.types import BaseModel +from unkey_py.types import BaseModel class CreateIdentityRatelimitsTypedDict(TypedDict): diff --git a/src/unkey/models/createkeyop.py b/src/unkey_py/models/createkeyop.py similarity index 99% rename from src/unkey/models/createkeyop.py rename to src/unkey_py/models/createkeyop.py index 3f44009..40daabe 100644 --- a/src/unkey/models/createkeyop.py +++ b/src/unkey_py/models/createkeyop.py @@ -6,7 +6,7 @@ import pydantic from typing import Any, Dict, List, Optional from typing_extensions import Annotated, NotRequired, TypedDict, deprecated -from unkey.types import BaseModel +from unkey_py.types import BaseModel class CreateKeyInterval(str, Enum): diff --git a/src/unkey/models/createpermissionop.py b/src/unkey_py/models/createpermissionop.py similarity index 97% rename from src/unkey/models/createpermissionop.py rename to src/unkey_py/models/createpermissionop.py index e1a5729..f7140fb 100644 --- a/src/unkey/models/createpermissionop.py +++ b/src/unkey_py/models/createpermissionop.py @@ -5,7 +5,7 @@ import pydantic from typing import Optional from typing_extensions import Annotated, NotRequired, TypedDict -from unkey.types import BaseModel +from unkey_py.types import BaseModel class CreatePermissionRequestBodyTypedDict(TypedDict): diff --git a/src/unkey/models/createroleop.py b/src/unkey_py/models/createroleop.py similarity index 97% rename from src/unkey/models/createroleop.py rename to src/unkey_py/models/createroleop.py index ec4ba9f..bbe68f5 100644 --- a/src/unkey/models/createroleop.py +++ b/src/unkey_py/models/createroleop.py @@ -5,7 +5,7 @@ import pydantic from typing import Optional from typing_extensions import Annotated, NotRequired, TypedDict -from unkey.types import BaseModel +from unkey_py.types import BaseModel class CreateRoleRequestBodyTypedDict(TypedDict): diff --git a/src/unkey/models/deleteapiop.py b/src/unkey_py/models/deleteapiop.py similarity index 97% rename from src/unkey/models/deleteapiop.py rename to src/unkey_py/models/deleteapiop.py index e87fc62..1673481 100644 --- a/src/unkey/models/deleteapiop.py +++ b/src/unkey_py/models/deleteapiop.py @@ -5,7 +5,7 @@ import pydantic from typing import Optional from typing_extensions import Annotated, NotRequired, TypedDict -from unkey.types import BaseModel +from unkey_py.types import BaseModel class DeleteAPIRequestBodyTypedDict(TypedDict): diff --git a/src/unkey/models/deleteidentityop.py b/src/unkey_py/models/deleteidentityop.py similarity index 97% rename from src/unkey/models/deleteidentityop.py rename to src/unkey_py/models/deleteidentityop.py index 4c4bb77..e83f9c7 100644 --- a/src/unkey/models/deleteidentityop.py +++ b/src/unkey_py/models/deleteidentityop.py @@ -5,7 +5,7 @@ import pydantic from typing import Optional from typing_extensions import Annotated, NotRequired, TypedDict -from unkey.types import BaseModel +from unkey_py.types import BaseModel class DeleteIdentityRequestBodyTypedDict(TypedDict): diff --git a/src/unkey/models/deletekeyop.py b/src/unkey_py/models/deletekeyop.py similarity index 97% rename from src/unkey/models/deletekeyop.py rename to src/unkey_py/models/deletekeyop.py index edeb298..19f6036 100644 --- a/src/unkey/models/deletekeyop.py +++ b/src/unkey_py/models/deletekeyop.py @@ -5,7 +5,7 @@ import pydantic from typing import Optional from typing_extensions import Annotated, NotRequired, TypedDict -from unkey.types import BaseModel +from unkey_py.types import BaseModel class DeleteKeyRequestBodyTypedDict(TypedDict): diff --git a/src/unkey/models/deletekeysop.py b/src/unkey_py/models/deletekeysop.py similarity index 97% rename from src/unkey/models/deletekeysop.py rename to src/unkey_py/models/deletekeysop.py index b24dfa1..0e1603d 100644 --- a/src/unkey/models/deletekeysop.py +++ b/src/unkey_py/models/deletekeysop.py @@ -5,7 +5,7 @@ import pydantic from typing import Optional from typing_extensions import Annotated, NotRequired, TypedDict -from unkey.types import BaseModel +from unkey_py.types import BaseModel class DeleteKeysRequestBodyTypedDict(TypedDict): diff --git a/src/unkey/models/deletepermissionop.py b/src/unkey_py/models/deletepermissionop.py similarity index 97% rename from src/unkey/models/deletepermissionop.py rename to src/unkey_py/models/deletepermissionop.py index 9bd6fb6..a9d9f8d 100644 --- a/src/unkey/models/deletepermissionop.py +++ b/src/unkey_py/models/deletepermissionop.py @@ -5,7 +5,7 @@ import pydantic from typing import Optional from typing_extensions import Annotated, NotRequired, TypedDict -from unkey.types import BaseModel +from unkey_py.types import BaseModel class DeletePermissionRequestBodyTypedDict(TypedDict): diff --git a/src/unkey/models/deleteroleop.py b/src/unkey_py/models/deleteroleop.py similarity index 96% rename from src/unkey/models/deleteroleop.py rename to src/unkey_py/models/deleteroleop.py index 79ff231..e6045e5 100644 --- a/src/unkey/models/deleteroleop.py +++ b/src/unkey_py/models/deleteroleop.py @@ -5,7 +5,7 @@ import pydantic from typing import Optional from typing_extensions import Annotated, NotRequired, TypedDict -from unkey.types import BaseModel +from unkey_py.types import BaseModel class DeleteRoleRequestBodyTypedDict(TypedDict): diff --git a/src/unkey/models/errbadrequest.py b/src/unkey_py/models/errbadrequest.py similarity index 95% rename from src/unkey/models/errbadrequest.py rename to src/unkey_py/models/errbadrequest.py index 483e3c4..b67813c 100644 --- a/src/unkey/models/errbadrequest.py +++ b/src/unkey_py/models/errbadrequest.py @@ -4,8 +4,8 @@ from enum import Enum import pydantic from typing_extensions import Annotated, TypedDict -from unkey import utils -from unkey.types import BaseModel +from unkey_py import utils +from unkey_py.types import BaseModel class ErrBadRequestCode(str, Enum): diff --git a/src/unkey/models/errconflict.py b/src/unkey_py/models/errconflict.py similarity index 95% rename from src/unkey/models/errconflict.py rename to src/unkey_py/models/errconflict.py index 48d97a6..6886d1d 100644 --- a/src/unkey/models/errconflict.py +++ b/src/unkey_py/models/errconflict.py @@ -4,8 +4,8 @@ from enum import Enum import pydantic from typing_extensions import Annotated, TypedDict -from unkey import utils -from unkey.types import BaseModel +from unkey_py import utils +from unkey_py.types import BaseModel class ErrConflictCode(str, Enum): diff --git a/src/unkey/models/errdeleteprotected.py b/src/unkey_py/models/errdeleteprotected.py similarity index 95% rename from src/unkey/models/errdeleteprotected.py rename to src/unkey_py/models/errdeleteprotected.py index bedaae9..45d1bc3 100644 --- a/src/unkey/models/errdeleteprotected.py +++ b/src/unkey_py/models/errdeleteprotected.py @@ -4,8 +4,8 @@ from enum import Enum import pydantic from typing_extensions import Annotated, TypedDict -from unkey import utils -from unkey.types import BaseModel +from unkey_py import utils +from unkey_py.types import BaseModel class ErrDeleteProtectedCode(str, Enum): diff --git a/src/unkey/models/errforbidden.py b/src/unkey_py/models/errforbidden.py similarity index 95% rename from src/unkey/models/errforbidden.py rename to src/unkey_py/models/errforbidden.py index 4146663..9353d16 100644 --- a/src/unkey/models/errforbidden.py +++ b/src/unkey_py/models/errforbidden.py @@ -4,8 +4,8 @@ from enum import Enum import pydantic from typing_extensions import Annotated, TypedDict -from unkey import utils -from unkey.types import BaseModel +from unkey_py import utils +from unkey_py.types import BaseModel class ErrForbiddenCode(str, Enum): diff --git a/src/unkey/models/errinternalservererror.py b/src/unkey_py/models/errinternalservererror.py similarity index 95% rename from src/unkey/models/errinternalservererror.py rename to src/unkey_py/models/errinternalservererror.py index b0884c1..a52e7e8 100644 --- a/src/unkey/models/errinternalservererror.py +++ b/src/unkey_py/models/errinternalservererror.py @@ -4,8 +4,8 @@ from enum import Enum import pydantic from typing_extensions import Annotated, TypedDict -from unkey import utils -from unkey.types import BaseModel +from unkey_py import utils +from unkey_py.types import BaseModel class ErrInternalServerErrorCode(str, Enum): diff --git a/src/unkey/models/errnotfound.py b/src/unkey_py/models/errnotfound.py similarity index 95% rename from src/unkey/models/errnotfound.py rename to src/unkey_py/models/errnotfound.py index c754551..f3b8913 100644 --- a/src/unkey/models/errnotfound.py +++ b/src/unkey_py/models/errnotfound.py @@ -4,8 +4,8 @@ from enum import Enum import pydantic from typing_extensions import Annotated, TypedDict -from unkey import utils -from unkey.types import BaseModel +from unkey_py import utils +from unkey_py.types import BaseModel class ErrNotFoundCode(str, Enum): diff --git a/src/unkey/models/errtoomanyrequests.py b/src/unkey_py/models/errtoomanyrequests.py similarity index 95% rename from src/unkey/models/errtoomanyrequests.py rename to src/unkey_py/models/errtoomanyrequests.py index 2ad856c..db292d9 100644 --- a/src/unkey/models/errtoomanyrequests.py +++ b/src/unkey_py/models/errtoomanyrequests.py @@ -4,8 +4,8 @@ from enum import Enum import pydantic from typing_extensions import Annotated, TypedDict -from unkey import utils -from unkey.types import BaseModel +from unkey_py import utils +from unkey_py.types import BaseModel class ErrTooManyRequestsCode(str, Enum): diff --git a/src/unkey/models/errunauthorized.py b/src/unkey_py/models/errunauthorized.py similarity index 95% rename from src/unkey/models/errunauthorized.py rename to src/unkey_py/models/errunauthorized.py index eeead86..9cab6f5 100644 --- a/src/unkey/models/errunauthorized.py +++ b/src/unkey_py/models/errunauthorized.py @@ -4,8 +4,8 @@ from enum import Enum import pydantic from typing_extensions import Annotated, TypedDict -from unkey import utils -from unkey.types import BaseModel +from unkey_py import utils +from unkey_py.types import BaseModel class ErrUnauthorizedCode(str, Enum): diff --git a/src/unkey/models/getapiop.py b/src/unkey_py/models/getapiop.py similarity index 94% rename from src/unkey/models/getapiop.py rename to src/unkey_py/models/getapiop.py index bc2ff49..b43deb6 100644 --- a/src/unkey/models/getapiop.py +++ b/src/unkey_py/models/getapiop.py @@ -5,8 +5,8 @@ import pydantic from typing import Optional from typing_extensions import Annotated, NotRequired, TypedDict -from unkey.types import BaseModel -from unkey.utils import FieldMetadata, QueryParamMetadata +from unkey_py.types import BaseModel +from unkey_py.utils import FieldMetadata, QueryParamMetadata class GetAPIRequestTypedDict(TypedDict): diff --git a/src/unkey/models/getidentityop.py b/src/unkey_py/models/getidentityop.py similarity index 96% rename from src/unkey/models/getidentityop.py rename to src/unkey_py/models/getidentityop.py index 38614b6..b42ee76 100644 --- a/src/unkey/models/getidentityop.py +++ b/src/unkey_py/models/getidentityop.py @@ -5,8 +5,8 @@ import pydantic from typing import Any, Dict, List, Optional from typing_extensions import Annotated, NotRequired, TypedDict -from unkey.types import BaseModel -from unkey.utils import FieldMetadata, QueryParamMetadata +from unkey_py.types import BaseModel +from unkey_py.utils import FieldMetadata, QueryParamMetadata class GetIdentityRequestTypedDict(TypedDict): diff --git a/src/unkey/models/getkeyop.py b/src/unkey_py/models/getkeyop.py similarity index 93% rename from src/unkey/models/getkeyop.py rename to src/unkey_py/models/getkeyop.py index 511a061..594fcb8 100644 --- a/src/unkey/models/getkeyop.py +++ b/src/unkey_py/models/getkeyop.py @@ -7,8 +7,8 @@ from pydantic import model_serializer from typing import Optional from typing_extensions import Annotated, NotRequired, TypedDict -from unkey.types import BaseModel, Nullable, OptionalNullable, UNSET, UNSET_SENTINEL -from unkey.utils import FieldMetadata, QueryParamMetadata +from unkey_py.types import BaseModel, Nullable, OptionalNullable, UNSET, UNSET_SENTINEL +from unkey_py.utils import FieldMetadata, QueryParamMetadata class GetKeyRequestTypedDict(TypedDict): diff --git a/src/unkey/models/getpermissionop.py b/src/unkey_py/models/getpermissionop.py similarity index 94% rename from src/unkey/models/getpermissionop.py rename to src/unkey_py/models/getpermissionop.py index c8e9405..2cec2be 100644 --- a/src/unkey/models/getpermissionop.py +++ b/src/unkey_py/models/getpermissionop.py @@ -5,8 +5,8 @@ import pydantic from typing import Optional from typing_extensions import Annotated, NotRequired, TypedDict -from unkey.types import BaseModel -from unkey.utils import FieldMetadata, QueryParamMetadata +from unkey_py.types import BaseModel +from unkey_py.utils import FieldMetadata, QueryParamMetadata class GetPermissionRequestTypedDict(TypedDict): diff --git a/src/unkey/models/getroleop.py b/src/unkey_py/models/getroleop.py similarity index 93% rename from src/unkey/models/getroleop.py rename to src/unkey_py/models/getroleop.py index 72f8275..e406982 100644 --- a/src/unkey/models/getroleop.py +++ b/src/unkey_py/models/getroleop.py @@ -5,8 +5,8 @@ import pydantic from typing import Optional from typing_extensions import Annotated, NotRequired, TypedDict -from unkey.types import BaseModel -from unkey.utils import FieldMetadata, QueryParamMetadata +from unkey_py.types import BaseModel +from unkey_py.utils import FieldMetadata, QueryParamMetadata class GetRoleRequestTypedDict(TypedDict): diff --git a/src/unkey/models/getverificationsop.py b/src/unkey_py/models/getverificationsop.py similarity index 96% rename from src/unkey/models/getverificationsop.py rename to src/unkey_py/models/getverificationsop.py index a21e4b1..5703b08 100644 --- a/src/unkey/models/getverificationsop.py +++ b/src/unkey_py/models/getverificationsop.py @@ -7,8 +7,8 @@ from pydantic import model_serializer from typing import List, Optional from typing_extensions import Annotated, NotRequired, TypedDict -from unkey.types import BaseModel, Nullable, OptionalNullable, UNSET, UNSET_SENTINEL -from unkey.utils import FieldMetadata, QueryParamMetadata +from unkey_py.types import BaseModel, Nullable, OptionalNullable, UNSET, UNSET_SENTINEL +from unkey_py.utils import FieldMetadata, QueryParamMetadata class Granularity(str, Enum): diff --git a/src/unkey/models/httpmetadata.py b/src/unkey_py/models/httpmetadata.py similarity index 95% rename from src/unkey/models/httpmetadata.py rename to src/unkey_py/models/httpmetadata.py index 4763a88..3d45ee6 100644 --- a/src/unkey/models/httpmetadata.py +++ b/src/unkey_py/models/httpmetadata.py @@ -5,7 +5,7 @@ import pydantic from typing import Optional from typing_extensions import Annotated, TypedDict -from unkey.types import BaseModel +from unkey_py.types import BaseModel class HTTPMetadataTypedDict(TypedDict): diff --git a/src/unkey/models/key.py b/src/unkey_py/models/key.py similarity index 99% rename from src/unkey/models/key.py rename to src/unkey_py/models/key.py index b749e5b..f916057 100644 --- a/src/unkey/models/key.py +++ b/src/unkey_py/models/key.py @@ -5,7 +5,7 @@ import pydantic from typing import Any, Dict, List, Optional from typing_extensions import Annotated, NotRequired, TypedDict -from unkey.types import BaseModel +from unkey_py.types import BaseModel class Interval(str, Enum): diff --git a/src/unkey/models/limitop.py b/src/unkey_py/models/limitop.py similarity index 99% rename from src/unkey/models/limitop.py rename to src/unkey_py/models/limitop.py index 87185fc..ec4beb7 100644 --- a/src/unkey/models/limitop.py +++ b/src/unkey_py/models/limitop.py @@ -5,7 +5,7 @@ import pydantic from typing import Any, Dict, List, Optional from typing_extensions import Annotated, NotRequired, TypedDict -from unkey.types import BaseModel +from unkey_py.types import BaseModel class ResourcesTypedDict(TypedDict): diff --git a/src/unkey/models/listidentitiesop.py b/src/unkey_py/models/listidentitiesop.py similarity index 97% rename from src/unkey/models/listidentitiesop.py rename to src/unkey_py/models/listidentitiesop.py index 5df7dc2..8cab884 100644 --- a/src/unkey/models/listidentitiesop.py +++ b/src/unkey_py/models/listidentitiesop.py @@ -5,8 +5,8 @@ import pydantic from typing import Callable, List, Optional from typing_extensions import Annotated, NotRequired, TypedDict -from unkey.types import BaseModel -from unkey.utils import FieldMetadata, QueryParamMetadata +from unkey_py.types import BaseModel +from unkey_py.utils import FieldMetadata, QueryParamMetadata class ListIdentitiesRequestTypedDict(TypedDict): diff --git a/src/unkey/models/listkeysop.py b/src/unkey_py/models/listkeysop.py similarity index 96% rename from src/unkey/models/listkeysop.py rename to src/unkey_py/models/listkeysop.py index 9155157..c9d3ec2 100644 --- a/src/unkey/models/listkeysop.py +++ b/src/unkey_py/models/listkeysop.py @@ -7,8 +7,8 @@ from pydantic import model_serializer from typing import List, Optional from typing_extensions import Annotated, NotRequired, TypedDict -from unkey.types import BaseModel, Nullable, OptionalNullable, UNSET, UNSET_SENTINEL -from unkey.utils import FieldMetadata, QueryParamMetadata +from unkey_py.types import BaseModel, Nullable, OptionalNullable, UNSET, UNSET_SENTINEL +from unkey_py.utils import FieldMetadata, QueryParamMetadata class ListKeysRequestTypedDict(TypedDict): diff --git a/src/unkey/models/listpermissionsop.py b/src/unkey_py/models/listpermissionsop.py similarity index 97% rename from src/unkey/models/listpermissionsop.py rename to src/unkey_py/models/listpermissionsop.py index d0991c4..ea1bf05 100644 --- a/src/unkey/models/listpermissionsop.py +++ b/src/unkey_py/models/listpermissionsop.py @@ -5,7 +5,7 @@ import pydantic from typing import List, Optional from typing_extensions import Annotated, NotRequired, TypedDict -from unkey.types import BaseModel +from unkey_py.types import BaseModel class ListPermissionsResponseBodyTypedDict(TypedDict): diff --git a/src/unkey/models/listrolesop.py b/src/unkey_py/models/listrolesop.py similarity index 97% rename from src/unkey/models/listrolesop.py rename to src/unkey_py/models/listrolesop.py index c0cb2f7..78db0db 100644 --- a/src/unkey/models/listrolesop.py +++ b/src/unkey_py/models/listrolesop.py @@ -5,7 +5,7 @@ import pydantic from typing import List, Optional from typing_extensions import Annotated, NotRequired, TypedDict -from unkey.types import BaseModel +from unkey_py.types import BaseModel class ListRolesResponseBodyTypedDict(TypedDict): diff --git a/src/unkey/models/permissionquery.py b/src/unkey_py/models/permissionquery.py similarity index 95% rename from src/unkey/models/permissionquery.py rename to src/unkey_py/models/permissionquery.py index 7606940..6df8538 100644 --- a/src/unkey/models/permissionquery.py +++ b/src/unkey_py/models/permissionquery.py @@ -4,7 +4,7 @@ import pydantic from typing import List, Union from typing_extensions import Annotated, TypedDict -from unkey.types import BaseModel +from unkey_py.types import BaseModel class OrTypedDict(TypedDict): diff --git a/src/unkey/models/removepermissionsop.py b/src/unkey_py/models/removepermissionsop.py similarity index 98% rename from src/unkey/models/removepermissionsop.py rename to src/unkey_py/models/removepermissionsop.py index 4c36692..d7f8982 100644 --- a/src/unkey/models/removepermissionsop.py +++ b/src/unkey_py/models/removepermissionsop.py @@ -5,7 +5,7 @@ import pydantic from typing import List, Optional from typing_extensions import Annotated, NotRequired, TypedDict -from unkey.types import BaseModel +from unkey_py.types import BaseModel class RemovePermissionsPermissionsTypedDict(TypedDict): diff --git a/src/unkey/models/removerolesop.py b/src/unkey_py/models/removerolesop.py similarity index 97% rename from src/unkey/models/removerolesop.py rename to src/unkey_py/models/removerolesop.py index 8cace09..4e351fb 100644 --- a/src/unkey/models/removerolesop.py +++ b/src/unkey_py/models/removerolesop.py @@ -5,7 +5,7 @@ import pydantic from typing import List, Optional from typing_extensions import Annotated, NotRequired, TypedDict -from unkey.types import BaseModel +from unkey_py.types import BaseModel class RemoveRolesRolesTypedDict(TypedDict): diff --git a/src/unkey/models/sdkerror.py b/src/unkey_py/models/sdkerror.py similarity index 100% rename from src/unkey/models/sdkerror.py rename to src/unkey_py/models/sdkerror.py diff --git a/src/unkey/models/security.py b/src/unkey_py/models/security.py similarity index 86% rename from src/unkey/models/security.py rename to src/unkey_py/models/security.py index fac1add..010f10a 100644 --- a/src/unkey/models/security.py +++ b/src/unkey_py/models/security.py @@ -3,8 +3,8 @@ from __future__ import annotations from typing import Optional from typing_extensions import Annotated, NotRequired, TypedDict -from unkey.types import BaseModel -from unkey.utils import FieldMetadata, SecurityMetadata +from unkey_py.types import BaseModel +from unkey_py.utils import FieldMetadata, SecurityMetadata class SecurityTypedDict(TypedDict): diff --git a/src/unkey/models/setpermissionsop.py b/src/unkey_py/models/setpermissionsop.py similarity index 98% rename from src/unkey/models/setpermissionsop.py rename to src/unkey_py/models/setpermissionsop.py index 2b339e4..dcb2244 100644 --- a/src/unkey/models/setpermissionsop.py +++ b/src/unkey_py/models/setpermissionsop.py @@ -5,7 +5,7 @@ import pydantic from typing import List, Optional from typing_extensions import Annotated, NotRequired, TypedDict -from unkey.types import BaseModel +from unkey_py.types import BaseModel class SetPermissionsPermissionsTypedDict(TypedDict): diff --git a/src/unkey/models/setrolesop.py b/src/unkey_py/models/setrolesop.py similarity index 98% rename from src/unkey/models/setrolesop.py rename to src/unkey_py/models/setrolesop.py index 754ea94..5c1c4a1 100644 --- a/src/unkey/models/setrolesop.py +++ b/src/unkey_py/models/setrolesop.py @@ -5,7 +5,7 @@ import pydantic from typing import List, Optional from typing_extensions import Annotated, NotRequired, TypedDict -from unkey.types import BaseModel +from unkey_py.types import BaseModel class SetRolesRolesTypedDict(TypedDict): diff --git a/src/unkey/models/updateidentityop.py b/src/unkey_py/models/updateidentityop.py similarity index 99% rename from src/unkey/models/updateidentityop.py rename to src/unkey_py/models/updateidentityop.py index beaa1ea..a37eb11 100644 --- a/src/unkey/models/updateidentityop.py +++ b/src/unkey_py/models/updateidentityop.py @@ -5,7 +5,7 @@ import pydantic from typing import Any, Dict, List, Optional from typing_extensions import Annotated, NotRequired, TypedDict -from unkey.types import BaseModel +from unkey_py.types import BaseModel class UpdateIdentityRatelimitsTypedDict(TypedDict): diff --git a/src/unkey/models/updatekeyop.py b/src/unkey_py/models/updatekeyop.py similarity index 99% rename from src/unkey/models/updatekeyop.py rename to src/unkey_py/models/updatekeyop.py index cceb89a..f769be8 100644 --- a/src/unkey/models/updatekeyop.py +++ b/src/unkey_py/models/updatekeyop.py @@ -7,7 +7,7 @@ from pydantic import model_serializer from typing import Any, Dict, List, Optional from typing_extensions import Annotated, NotRequired, TypedDict, deprecated -from unkey.types import BaseModel, Nullable, OptionalNullable, UNSET, UNSET_SENTINEL +from unkey_py.types import BaseModel, Nullable, OptionalNullable, UNSET, UNSET_SENTINEL @deprecated( diff --git a/src/unkey/models/updateremainingop.py b/src/unkey_py/models/updateremainingop.py similarity index 98% rename from src/unkey/models/updateremainingop.py rename to src/unkey_py/models/updateremainingop.py index 6ec8cc2..b1c6016 100644 --- a/src/unkey/models/updateremainingop.py +++ b/src/unkey_py/models/updateremainingop.py @@ -7,7 +7,7 @@ from pydantic import model_serializer from typing import Optional from typing_extensions import Annotated, NotRequired, TypedDict -from unkey.types import BaseModel, Nullable, UNSET_SENTINEL +from unkey_py.types import BaseModel, Nullable, UNSET_SENTINEL class Op(str, Enum): diff --git a/src/unkey/models/v1_livenessop.py b/src/unkey_py/models/v1_livenessop.py similarity index 98% rename from src/unkey/models/v1_livenessop.py rename to src/unkey_py/models/v1_livenessop.py index 7acdace..39eb13b 100644 --- a/src/unkey/models/v1_livenessop.py +++ b/src/unkey_py/models/v1_livenessop.py @@ -5,7 +5,7 @@ import pydantic from typing import Optional from typing_extensions import Annotated, NotRequired, TypedDict -from unkey.types import BaseModel +from unkey_py.types import BaseModel class ServicesTypedDict(TypedDict): diff --git a/src/unkey/models/v1_migrations_createkeysop.py b/src/unkey_py/models/v1_migrations_createkeysop.py similarity index 99% rename from src/unkey/models/v1_migrations_createkeysop.py rename to src/unkey_py/models/v1_migrations_createkeysop.py index 7e8f38f..a468028 100644 --- a/src/unkey/models/v1_migrations_createkeysop.py +++ b/src/unkey_py/models/v1_migrations_createkeysop.py @@ -6,7 +6,7 @@ import pydantic from typing import Any, Dict, List, Optional from typing_extensions import Annotated, NotRequired, TypedDict, deprecated -from unkey.types import BaseModel +from unkey_py.types import BaseModel class Variant(str, Enum): diff --git a/src/unkey/models/v1_migrations_enqueuekeysop.py b/src/unkey_py/models/v1_migrations_enqueuekeysop.py similarity index 99% rename from src/unkey/models/v1_migrations_enqueuekeysop.py rename to src/unkey_py/models/v1_migrations_enqueuekeysop.py index 9924c7d..0be93b2 100644 --- a/src/unkey/models/v1_migrations_enqueuekeysop.py +++ b/src/unkey_py/models/v1_migrations_enqueuekeysop.py @@ -6,7 +6,7 @@ import pydantic from typing import Any, Dict, List, Optional from typing_extensions import Annotated, NotRequired, TypedDict, deprecated -from unkey.types import BaseModel +from unkey_py.types import BaseModel class V1MigrationsEnqueueKeysVariant(str, Enum): diff --git a/src/unkey/models/v1keysverifykeyrequest.py b/src/unkey_py/models/v1keysverifykeyrequest.py similarity index 98% rename from src/unkey/models/v1keysverifykeyrequest.py rename to src/unkey_py/models/v1keysverifykeyrequest.py index 5f76e65..8bea650 100644 --- a/src/unkey/models/v1keysverifykeyrequest.py +++ b/src/unkey_py/models/v1keysverifykeyrequest.py @@ -6,7 +6,7 @@ from pydantic import model_serializer from typing import List, Optional from typing_extensions import Annotated, NotRequired, TypedDict, deprecated -from unkey.types import BaseModel, Nullable, OptionalNullable, UNSET, UNSET_SENTINEL +from unkey_py.types import BaseModel, Nullable, OptionalNullable, UNSET, UNSET_SENTINEL class AuthorizationTypedDict(TypedDict): diff --git a/src/unkey/models/v1keysverifykeyresponse.py b/src/unkey_py/models/v1keysverifykeyresponse.py similarity index 99% rename from src/unkey/models/v1keysverifykeyresponse.py rename to src/unkey_py/models/v1keysverifykeyresponse.py index cbdb221..60f70fc 100644 --- a/src/unkey/models/v1keysverifykeyresponse.py +++ b/src/unkey_py/models/v1keysverifykeyresponse.py @@ -5,7 +5,7 @@ import pydantic from typing import Any, Dict, List, Optional from typing_extensions import Annotated, NotRequired, TypedDict -from unkey.types import BaseModel +from unkey_py.types import BaseModel class V1KeysVerifyKeyResponseRatelimitTypedDict(TypedDict): diff --git a/src/unkey/models/verifykeyop.py b/src/unkey_py/models/verifykeyop.py similarity index 95% rename from src/unkey/models/verifykeyop.py rename to src/unkey_py/models/verifykeyop.py index bb62c85..5691303 100644 --- a/src/unkey/models/verifykeyop.py +++ b/src/unkey_py/models/verifykeyop.py @@ -9,7 +9,7 @@ import pydantic from typing import Optional from typing_extensions import Annotated, NotRequired, TypedDict -from unkey.types import BaseModel +from unkey_py.types import BaseModel class VerifyKeyResponseTypedDict(TypedDict): diff --git a/src/unkey/models/whoamiop.py b/src/unkey_py/models/whoamiop.py similarity index 98% rename from src/unkey/models/whoamiop.py rename to src/unkey_py/models/whoamiop.py index 24f6b49..26e9e13 100644 --- a/src/unkey/models/whoamiop.py +++ b/src/unkey_py/models/whoamiop.py @@ -5,7 +5,7 @@ import pydantic from typing import Any, Dict, Optional from typing_extensions import Annotated, NotRequired, TypedDict -from unkey.types import BaseModel +from unkey_py.types import BaseModel class WhoamiRequestBodyTypedDict(TypedDict): diff --git a/src/unkey/permissions.py b/src/unkey_py/permissions.py similarity index 99% rename from src/unkey/permissions.py rename to src/unkey_py/permissions.py index 8a49256..655b0dd 100644 --- a/src/unkey/permissions.py +++ b/src/unkey_py/permissions.py @@ -2,10 +2,10 @@ from .basesdk import BaseSDK from typing import Any, List, Optional, Union, cast -from unkey import models, utils -from unkey._hooks import HookContext -from unkey.types import BaseModel, OptionalNullable, UNSET -from unkey.utils import get_security_from_env +from unkey_py import models, utils +from unkey_py._hooks import HookContext +from unkey_py.types import BaseModel, OptionalNullable, UNSET +from unkey_py.utils import get_security_from_env class Permissions(BaseSDK): diff --git a/src/unkey/py.typed b/src/unkey_py/py.typed similarity index 100% rename from src/unkey/py.typed rename to src/unkey_py/py.typed diff --git a/src/unkey/ratelimits.py b/src/unkey_py/ratelimits.py similarity index 98% rename from src/unkey/ratelimits.py rename to src/unkey_py/ratelimits.py index 369ea4e..ca4e49d 100644 --- a/src/unkey/ratelimits.py +++ b/src/unkey_py/ratelimits.py @@ -2,10 +2,10 @@ from .basesdk import BaseSDK from typing import Any, Optional, Union, cast -from unkey import models, utils -from unkey._hooks import HookContext -from unkey.types import BaseModel, OptionalNullable, UNSET -from unkey.utils import get_security_from_env +from unkey_py import models, utils +from unkey_py._hooks import HookContext +from unkey_py.types import BaseModel, OptionalNullable, UNSET +from unkey_py.utils import get_security_from_env class Ratelimits(BaseSDK): diff --git a/src/unkey/sdk.py b/src/unkey_py/sdk.py similarity index 91% rename from src/unkey/sdk.py rename to src/unkey_py/sdk.py index b33edbd..edbd887 100644 --- a/src/unkey/sdk.py +++ b/src/unkey_py/sdk.py @@ -7,16 +7,16 @@ from .utils.retries import RetryConfig import httpx from typing import Any, Callable, Dict, Optional, Union -from unkey import models, utils -from unkey._hooks import SDKHooks -from unkey.apis import Apis -from unkey.identities import Identities -from unkey.keys import Keys -from unkey.liveness import Liveness -from unkey.migrations import Migrations -from unkey.permissions import Permissions -from unkey.ratelimits import Ratelimits -from unkey.types import OptionalNullable, UNSET +from unkey_py import models, utils +from unkey_py._hooks import SDKHooks +from unkey_py.apis import Apis +from unkey_py.identities import Identities +from unkey_py.keys import Keys +from unkey_py.liveness import Liveness +from unkey_py.migrations import Migrations +from unkey_py.permissions import Permissions +from unkey_py.ratelimits import Ratelimits +from unkey_py.types import OptionalNullable, UNSET class Unkey(BaseSDK): diff --git a/src/unkey/sdkconfiguration.py b/src/unkey_py/sdkconfiguration.py similarity index 88% rename from src/unkey/sdkconfiguration.py rename to src/unkey_py/sdkconfiguration.py index 4b30387..6eb7a99 100644 --- a/src/unkey/sdkconfiguration.py +++ b/src/unkey_py/sdkconfiguration.py @@ -6,8 +6,8 @@ from dataclasses import dataclass from pydantic import Field from typing import Callable, Dict, Optional, Tuple, Union -from unkey import models -from unkey.types import OptionalNullable, UNSET +from unkey_py import models +from unkey_py.types import OptionalNullable, UNSET SERVERS = [ @@ -27,9 +27,9 @@ class SDKConfiguration: server_idx: Optional[int] = 0 language: str = "python" openapi_doc_version: str = "1.0.0" - sdk_version: str = "0.2.0" + sdk_version: str = "0.2.1" gen_version: str = "2.442.11" - user_agent: str = "speakeasy-sdk/python 0.2.0 2.442.11 1.0.0 unkey" + user_agent: str = "speakeasy-sdk/python 0.2.1 2.442.11 1.0.0 unkey.py" retry_config: OptionalNullable[RetryConfig] = Field(default_factory=lambda: UNSET) timeout_ms: Optional[int] = None diff --git a/src/unkey/types/__init__.py b/src/unkey_py/types/__init__.py similarity index 100% rename from src/unkey/types/__init__.py rename to src/unkey_py/types/__init__.py diff --git a/src/unkey/types/basemodel.py b/src/unkey_py/types/basemodel.py similarity index 100% rename from src/unkey/types/basemodel.py rename to src/unkey_py/types/basemodel.py diff --git a/src/unkey/utils/__init__.py b/src/unkey_py/utils/__init__.py similarity index 100% rename from src/unkey/utils/__init__.py rename to src/unkey_py/utils/__init__.py diff --git a/src/unkey/utils/annotations.py b/src/unkey_py/utils/annotations.py similarity index 100% rename from src/unkey/utils/annotations.py rename to src/unkey_py/utils/annotations.py diff --git a/src/unkey/utils/enums.py b/src/unkey_py/utils/enums.py similarity index 100% rename from src/unkey/utils/enums.py rename to src/unkey_py/utils/enums.py diff --git a/src/unkey/utils/eventstreaming.py b/src/unkey_py/utils/eventstreaming.py similarity index 100% rename from src/unkey/utils/eventstreaming.py rename to src/unkey_py/utils/eventstreaming.py diff --git a/src/unkey/utils/forms.py b/src/unkey_py/utils/forms.py similarity index 100% rename from src/unkey/utils/forms.py rename to src/unkey_py/utils/forms.py diff --git a/src/unkey/utils/headers.py b/src/unkey_py/utils/headers.py similarity index 100% rename from src/unkey/utils/headers.py rename to src/unkey_py/utils/headers.py diff --git a/src/unkey/utils/logger.py b/src/unkey_py/utils/logger.py similarity index 93% rename from src/unkey/utils/logger.py rename to src/unkey_py/utils/logger.py index ffb9077..7367179 100644 --- a/src/unkey/utils/logger.py +++ b/src/unkey_py/utils/logger.py @@ -23,5 +23,5 @@ def get_body_content(req: httpx.Request) -> str: def get_default_logger() -> Logger: if os.getenv("UNKEY_DEBUG"): logging.basicConfig(level=logging.DEBUG) - return logging.getLogger("unkey") + return logging.getLogger("unkey_py") return NoOpLogger() diff --git a/src/unkey/utils/metadata.py b/src/unkey_py/utils/metadata.py similarity index 100% rename from src/unkey/utils/metadata.py rename to src/unkey_py/utils/metadata.py diff --git a/src/unkey/utils/queryparams.py b/src/unkey_py/utils/queryparams.py similarity index 100% rename from src/unkey/utils/queryparams.py rename to src/unkey_py/utils/queryparams.py diff --git a/src/unkey/utils/requestbodies.py b/src/unkey_py/utils/requestbodies.py similarity index 100% rename from src/unkey/utils/requestbodies.py rename to src/unkey_py/utils/requestbodies.py diff --git a/src/unkey/utils/retries.py b/src/unkey_py/utils/retries.py similarity index 100% rename from src/unkey/utils/retries.py rename to src/unkey_py/utils/retries.py diff --git a/src/unkey/utils/security.py b/src/unkey_py/utils/security.py similarity index 100% rename from src/unkey/utils/security.py rename to src/unkey_py/utils/security.py diff --git a/src/unkey/utils/serializers.py b/src/unkey_py/utils/serializers.py similarity index 100% rename from src/unkey/utils/serializers.py rename to src/unkey_py/utils/serializers.py diff --git a/src/unkey/utils/url.py b/src/unkey_py/utils/url.py similarity index 100% rename from src/unkey/utils/url.py rename to src/unkey_py/utils/url.py diff --git a/src/unkey/utils/values.py b/src/unkey_py/utils/values.py similarity index 100% rename from src/unkey/utils/values.py rename to src/unkey_py/utils/values.py