Skip to content

Commit

Permalink
ci: regenerated with OpenAPI Doc , Speakeasy CLI 1.438.0
Browse files Browse the repository at this point in the history
  • Loading branch information
speakeasybot committed Nov 11, 2024
1 parent 3167ffa commit ea851ff
Show file tree
Hide file tree
Showing 11 changed files with 74 additions and 41 deletions.
13 changes: 7 additions & 6 deletions .speakeasy/gen.lock

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion .speakeasy/gen.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ generation:
oAuth2ClientCredentialsEnabled: true
oAuth2PasswordEnabled: false
python:
version: 1.3.0
version: 1.3.1
additionalDependencies:
dev:
pytest: ^8.3.3
Expand Down
12 changes: 6 additions & 6 deletions .speakeasy/workflow.lock
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
speakeasyVersion: 1.437.0
speakeasyVersion: 1.438.0
sources:
clerk-openapi:
sourceNamespace: clerk-openapi
sourceRevisionDigest: sha256:b9003a9949cb3383f2cdaf2d335e2690613bf936b1807dabb3db73ea6de9681b
sourceBlobDigest: sha256:a6fe6b772943fa5f6ea18ff77bc4a90528bce97944df850b2b84c862466a0c29
sourceRevisionDigest: sha256:e89d3d42646d1804adab2c71e3590848a232acd0a6e18e1bddbdacbbebd22c57
sourceBlobDigest: sha256:44d33d8984dd639bbff908aee705242bc26fc9fcd380c4b3f355f419767172b2
tags:
- latest
- main
targets:
clerk-sdk-python:
source: clerk-openapi
sourceNamespace: clerk-openapi
sourceRevisionDigest: sha256:b9003a9949cb3383f2cdaf2d335e2690613bf936b1807dabb3db73ea6de9681b
sourceBlobDigest: sha256:a6fe6b772943fa5f6ea18ff77bc4a90528bce97944df850b2b84c862466a0c29
sourceRevisionDigest: sha256:e89d3d42646d1804adab2c71e3590848a232acd0a6e18e1bddbdacbbebd22c57
sourceBlobDigest: sha256:44d33d8984dd639bbff908aee705242bc26fc9fcd380c4b3f355f419767172b2
codeSamplesNamespace: clerk-openapi-code-samples
codeSamplesRevisionDigest: sha256:51a35774b712e61587715c33e2ae31cc98c7e6a0f93b33065a483085c7197f95
codeSamplesRevisionDigest: sha256:451997437b6cb4252f6235d61551d71e090c734b87e291437dcb200d975e8b2d
workflow:
workflowVersion: 1.0.0
speakeasyVersion: latest
Expand Down
12 changes: 11 additions & 1 deletion RELEASES.md
Original file line number Diff line number Diff line change
Expand Up @@ -178,4 +178,14 @@ Based on:
### Generated
- [python v1.3.0] .
### Releases
- [PyPI v1.3.0] https://pypi.org/project/clerk-backend-api/1.3.0 - .
- [PyPI v1.3.0] https://pypi.org/project/clerk-backend-api/1.3.0 - .

## 2024-11-11 21:45:02
### Changes
Based on:
- OpenAPI Doc
- Speakeasy CLI 1.438.0 (2.457.1) https://github.com/speakeasy-api/speakeasy
### Generated
- [python v1.3.1] .
### Releases
- [PyPI v1.3.1] https://pypi.org/project/clerk-backend-api/1.3.1 - .
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "clerk-backend-api"
version = "1.3.0"
version = "1.3.1"
description = "Python Client SDK for clerk.dev"
authors = ["Clerk",]
readme = "README-PYPI.md"
Expand Down
2 changes: 1 addition & 1 deletion src/clerk_backend_api/_version.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import importlib.metadata

__title__: str = "clerk-backend-api"
__version__: str = "1.3.0"
__version__: str = "1.3.1"

try:
if __package__ is not None:
Expand Down
29 changes: 18 additions & 11 deletions src/clerk_backend_api/models/emailaddress.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,34 +2,37 @@

from __future__ import annotations
from .identificationlink import IdentificationLink, IdentificationLinkTypedDict
from clerk_backend_api import utils
from clerk_backend_api.types import (
BaseModel,
Nullable,
OptionalNullable,
UNSET,
UNSET_SENTINEL,
)
from clerk_backend_api.utils import validate_open_enum
from enum import Enum
from pydantic import model_serializer
from pydantic.functional_validators import PlainValidator
from typing import List, Optional, Union
from typing_extensions import NotRequired, TypedDict
from typing_extensions import Annotated, NotRequired, TypedDict


class EmailAddressObject(str, Enum):
class EmailAddressObject(str, Enum, metaclass=utils.OpenEnumMeta):
r"""String representing the object's type. Objects of the same type share the same value."""

EMAIL_ADDRESS = "email_address"


class OauthVerificationStatus(str, Enum):
class OauthVerificationStatus(str, Enum, metaclass=utils.OpenEnumMeta):
UNVERIFIED = "unverified"
VERIFIED = "verified"
FAILED = "failed"
EXPIRED = "expired"
TRANSFERABLE = "transferable"


class OauthVerificationStrategy(str, Enum):
class OauthVerificationStrategy(str, Enum, metaclass=utils.OpenEnumMeta):
OAUTH_GOOGLE = "oauth_google"
OAUTH_MOCK = "oauth_mock"
FROM_OAUTH_GOOGLE = "from_oauth_google"
Expand Down Expand Up @@ -85,9 +88,13 @@ class OauthTypedDict(TypedDict):


class Oauth(BaseModel):
status: OauthVerificationStatus
status: Annotated[
OauthVerificationStatus, PlainValidator(validate_open_enum(False))
]

strategy: OauthVerificationStrategy
strategy: Annotated[
OauthVerificationStrategy, PlainValidator(validate_open_enum(False))
]

expire_at: int

Expand Down Expand Up @@ -132,7 +139,7 @@ class AdminVerificationStatus(str, Enum):
VERIFIED = "verified"


class VerificationStrategy(str, Enum):
class VerificationStrategy(str, Enum, metaclass=utils.OpenEnumMeta):
ADMIN = "admin"


Expand All @@ -146,7 +153,7 @@ class AdminTypedDict(TypedDict):
class Admin(BaseModel):
status: AdminVerificationStatus

strategy: VerificationStrategy
strategy: Annotated[VerificationStrategy, PlainValidator(validate_open_enum(False))]

attempts: OptionalNullable[int] = UNSET

Expand Down Expand Up @@ -190,7 +197,7 @@ class VerificationStatus(str, Enum):
EXPIRED = "expired"


class Strategy(str, Enum):
class Strategy(str, Enum, metaclass=utils.OpenEnumMeta):
PHONE_CODE = "phone_code"
EMAIL_CODE = "email_code"
EMAIL_LINK = "email_link"
Expand All @@ -212,7 +219,7 @@ class OtpTypedDict(TypedDict):
class Otp(BaseModel):
status: VerificationStatus

strategy: Strategy
strategy: Annotated[Strategy, PlainValidator(validate_open_enum(False))]

attempts: int

Expand Down Expand Up @@ -250,7 +257,7 @@ class EmailAddressTypedDict(TypedDict):
class EmailAddress(BaseModel):
r"""Success"""

object: EmailAddressObject
object: Annotated[EmailAddressObject, PlainValidator(validate_open_enum(False))]
r"""String representing the object's type. Objects of the same type share the same value.
"""
Expand Down
9 changes: 6 additions & 3 deletions src/clerk_backend_api/models/identificationlink.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,15 @@
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""

from __future__ import annotations
from clerk_backend_api import utils
from clerk_backend_api.types import BaseModel
from clerk_backend_api.utils import validate_open_enum
from enum import Enum
from typing_extensions import TypedDict
from pydantic.functional_validators import PlainValidator
from typing_extensions import Annotated, TypedDict


class Type(str, Enum):
class Type(str, Enum, metaclass=utils.OpenEnumMeta):
OAUTH_GOOGLE = "oauth_google"
OAUTH_MOCK = "oauth_mock"
SAML = "saml"
Expand All @@ -23,6 +26,6 @@ class IdentificationLinkTypedDict(TypedDict):


class IdentificationLink(BaseModel):
type: Type
type: Annotated[Type, PlainValidator(validate_open_enum(False))]

id: str
17 changes: 12 additions & 5 deletions src/clerk_backend_api/models/phonenumber.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,20 @@

from __future__ import annotations
from .identificationlink import IdentificationLink, IdentificationLinkTypedDict
from clerk_backend_api import utils
from clerk_backend_api.types import (
BaseModel,
Nullable,
OptionalNullable,
UNSET,
UNSET_SENTINEL,
)
from clerk_backend_api.utils import validate_open_enum
from enum import Enum
from pydantic import model_serializer
from pydantic.functional_validators import PlainValidator
from typing import List, Optional, Union
from typing_extensions import NotRequired, TypedDict
from typing_extensions import Annotated, NotRequired, TypedDict


class PhoneNumberObject(str, Enum):
Expand All @@ -25,7 +28,7 @@ class AdminVerificationPhoneNumberStatus(str, Enum):
VERIFIED = "verified"


class AdminVerificationStrategy(str, Enum):
class AdminVerificationStrategy(str, Enum, metaclass=utils.OpenEnumMeta):
ADMIN = "admin"


Expand All @@ -39,7 +42,9 @@ class VerificationAdminTypedDict(TypedDict):
class VerificationAdmin(BaseModel):
status: AdminVerificationPhoneNumberStatus

strategy: AdminVerificationStrategy
strategy: Annotated[
AdminVerificationStrategy, PlainValidator(validate_open_enum(False))
]

attempts: OptionalNullable[int] = UNSET

Expand Down Expand Up @@ -83,7 +88,7 @@ class OTPVerificationStatus(str, Enum):
EXPIRED = "expired"


class OTPVerificationStrategy(str, Enum):
class OTPVerificationStrategy(str, Enum, metaclass=utils.OpenEnumMeta):
PHONE_CODE = "phone_code"
EMAIL_CODE = "email_code"
EMAIL_LINK = "email_link"
Expand All @@ -105,7 +110,9 @@ class VerificationOTPTypedDict(TypedDict):
class VerificationOTP(BaseModel):
status: OTPVerificationStatus

strategy: OTPVerificationStrategy
strategy: Annotated[
OTPVerificationStrategy, PlainValidator(validate_open_enum(False))
]

attempts: int

Expand Down
11 changes: 8 additions & 3 deletions src/clerk_backend_api/models/web3wallet.py
Original file line number Diff line number Diff line change
@@ -1,17 +1,20 @@
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""

from __future__ import annotations
from clerk_backend_api import utils
from clerk_backend_api.types import (
BaseModel,
Nullable,
OptionalNullable,
UNSET,
UNSET_SENTINEL,
)
from clerk_backend_api.utils import validate_open_enum
from enum import Enum
from pydantic import model_serializer
from pydantic.functional_validators import PlainValidator
from typing import Optional, Union
from typing_extensions import NotRequired, TypedDict
from typing_extensions import Annotated, NotRequired, TypedDict


class Web3WalletObject(str, Enum):
Expand All @@ -24,7 +27,7 @@ class AdminVerificationWeb3WalletStatus(str, Enum):
VERIFIED = "verified"


class AdminVerificationWeb3WalletStrategy(str, Enum):
class AdminVerificationWeb3WalletStrategy(str, Enum, metaclass=utils.OpenEnumMeta):
ADMIN = "admin"


Expand All @@ -38,7 +41,9 @@ class Web3WalletVerificationAdminTypedDict(TypedDict):
class Web3WalletVerificationAdmin(BaseModel):
status: AdminVerificationWeb3WalletStatus

strategy: AdminVerificationWeb3WalletStrategy
strategy: Annotated[
AdminVerificationWeb3WalletStrategy, PlainValidator(validate_open_enum(False))
]

attempts: OptionalNullable[int] = UNSET

Expand Down
6 changes: 3 additions & 3 deletions src/clerk_backend_api/sdkconfiguration.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@ class SDKConfiguration:
server_idx: Optional[int] = 0
language: str = "python"
openapi_doc_version: str = "v1"
sdk_version: str = "1.3.0"
gen_version: str = "2.456.0"
user_agent: str = "speakeasy-sdk/python 1.3.0 2.456.0 v1 clerk-backend-api"
sdk_version: str = "1.3.1"
gen_version: str = "2.457.1"
user_agent: str = "speakeasy-sdk/python 1.3.1 2.457.1 v1 clerk-backend-api"
retry_config: OptionalNullable[RetryConfig] = Field(default_factory=lambda: UNSET)
timeout_ms: Optional[int] = None

Expand Down

0 comments on commit ea851ff

Please sign in to comment.