Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/ChangeEmail200Response.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**user** | [**User**](.md) | | [optional]
**user** | [**User**](User.md) | | [optional]
**status** | **bool** | Indicates if the request was successful |
**message** | **str** | Status message of the email change process | [optional]

Expand Down
2 changes: 1 addition & 1 deletion docs/SignInEmail200Response.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ Name | Type | Description | Notes
**redirect** | **bool** | |
**token** | **str** | Session token |
**url** | **str** | | [optional]
**user** | [**User**](.md) | |
**user** | [**User**](User.md) | |

## Example

Expand Down
2 changes: 1 addition & 1 deletion docs/SocialSignIn200Response.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Session response when idToken is provided
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**token** | **str** | |
**user** | [**User**](.md) | |
**user** | [**User**](User.md) | |
**url** | **str** | | [optional]
**redirect** | **bool** | |

Expand Down
2 changes: 1 addition & 1 deletion docs/UpdateUser200Response.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**user** | [**User**](.md) | | [optional]
**user** | [**User**](User.md) | | [optional]

## Example

Expand Down
2 changes: 1 addition & 1 deletion docs/VerifyEmailGet200Response.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**user** | [**User**](.md) | |
**user** | [**User**](User.md) | |
**status** | **bool** | Indicates if the email was verified successfully |

## Example
Expand Down
12 changes: 0 additions & 12 deletions openapi-generator/better-auth.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -383,14 +383,11 @@ paths:
token:
type: string
user:
type: object
$ref: "#/components/schemas/User"
url:
type: string
redirect:
type: boolean
enum:
- false
required:
- redirect
- token
Expand Down Expand Up @@ -828,16 +825,13 @@ paths:
properties:
redirect:
type: boolean
enum:
- false
token:
type: string
description: Session token
url:
type: string
nullable: true
user:
type: object
$ref: "#/components/schemas/User"
required:
- redirect
Expand Down Expand Up @@ -1029,7 +1023,6 @@ paths:
type: object
properties:
user:
type: object
$ref: "#/components/schemas/User"
status:
type: boolean
Expand Down Expand Up @@ -1229,7 +1222,6 @@ paths:
type: object
properties:
user:
type: object
$ref: "#/components/schemas/User"
status:
type: boolean
Expand Down Expand Up @@ -1483,7 +1475,6 @@ paths:
type: object
properties:
user:
type: object
$ref: "#/components/schemas/User"
"400":
content:
Expand Down Expand Up @@ -3694,8 +3685,6 @@ paths:
status:
type: boolean
description: Indicates if the backup codes were generated successfully
enum:
- true
backupCodes:
type: array
items:
Expand Down Expand Up @@ -5888,7 +5877,6 @@ paths:
nullable: true
required:
- email
- password
- name
responses:
"200":
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "better-auth"
version = "0.0.1-beta11"
version = "0.0.1-beta12"
description = "Python SDK for better-auth - generated by OpenAPI Generator"
authors = [
{name = "Chasen Gao",email = "chasenspace@gmail.com"},
Expand Down
2 changes: 1 addition & 1 deletion src/better_auth/models/admin_create_user_request.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ class AdminCreateUserRequest(BaseModel):
AdminCreateUserRequest
""" # noqa: E501
email: StrictStr = Field(description="The email of the user")
password: StrictStr = Field(description="The password of the user")
password: Optional[StrictStr] = Field(default=None, description="The password of the user")
name: StrictStr = Field(description="The name of the user")
role: Optional[StrictStr] = None
data: Optional[StrictStr] = None
Expand Down
3 changes: 2 additions & 1 deletion src/better_auth/models/change_email200_response.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,15 @@

from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr, field_validator
from typing import Any, ClassVar, Dict, List, Optional
from better_auth.models.user import User
from typing import Optional, Set
from typing_extensions import Self

class ChangeEmail200Response(BaseModel):
"""
ChangeEmail200Response
""" # noqa: E501
user: Optional[Dict[str, Any]] = None
user: Optional[User] = None
status: StrictBool = Field(description="Indicates if the request was successful")
message: Optional[StrictStr] = Field(default=None, description="Status message of the email change process")
__properties: ClassVar[List[str]] = ["user", "status", "message"]
Expand Down
7 changes: 4 additions & 3 deletions src/better_auth/models/sign_in_email200_response.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@

from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr, field_validator
from typing import Any, ClassVar, Dict, List, Optional
from better_auth.models.user import User
from typing import Optional, Set
from typing_extensions import Self

Expand All @@ -30,14 +31,14 @@ class SignInEmail200Response(BaseModel):
redirect: StrictBool
token: StrictStr = Field(description="Session token")
url: Optional[StrictStr] = None
user: Dict[str, Any]
user: User
__properties: ClassVar[List[str]] = ["redirect", "token", "url", "user"]

@field_validator('redirect')
def redirect_validate_enum(cls, value):
"""Validates the enum"""
if value not in set(['false']):
raise ValueError("must be one of enum values ('false')")
if value not in set([False]):
raise ValueError("must be one of enum values (False)")
return value

model_config = ConfigDict(
Expand Down
3 changes: 2 additions & 1 deletion src/better_auth/models/social_sign_in200_response.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@

from pydantic import BaseModel, ConfigDict, StrictBool, StrictStr, field_validator
from typing import Any, ClassVar, Dict, List, Optional
from better_auth.models.user import User
from typing import Optional, Set
from typing_extensions import Self

Expand All @@ -28,7 +29,7 @@ class SocialSignIn200Response(BaseModel):
Session response when idToken is provided
""" # noqa: E501
token: StrictStr
user: Dict[str, Any]
user: User
url: Optional[StrictStr] = None
redirect: StrictBool
__properties: ClassVar[List[str]] = ["token", "user", "url", "redirect"]
Expand Down
3 changes: 2 additions & 1 deletion src/better_auth/models/update_user200_response.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,15 @@

from pydantic import BaseModel, ConfigDict
from typing import Any, ClassVar, Dict, List, Optional
from better_auth.models.user import User
from typing import Optional, Set
from typing_extensions import Self

class UpdateUser200Response(BaseModel):
"""
UpdateUser200Response
""" # noqa: E501
user: Optional[Dict[str, Any]] = None
user: Optional[User] = None
__properties: ClassVar[List[str]] = ["user"]

model_config = ConfigDict(
Expand Down
3 changes: 2 additions & 1 deletion src/better_auth/models/verify_email_get200_response.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,15 @@

from pydantic import BaseModel, ConfigDict, Field, StrictBool
from typing import Any, ClassVar, Dict, List
from better_auth.models.user import User
from typing import Optional, Set
from typing_extensions import Self

class VerifyEmailGet200Response(BaseModel):
"""
VerifyEmailGet200Response
""" # noqa: E501
user: Dict[str, Any]
user: User
status: StrictBool = Field(description="Indicates if the email was verified successfully")
__properties: ClassVar[List[str]] = ["user", "status"]

Expand Down
Loading