Skip to content

Commit

Permalink
Release 1.6.7
Browse files Browse the repository at this point in the history
  • Loading branch information
fern-api[bot] committed Jul 3, 2024
1 parent 2f34b56 commit 7b39fc6
Show file tree
Hide file tree
Showing 8 changed files with 34 additions and 2 deletions.
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 = "flagright"
version = "1.6.6"
version = "1.6.7"
description = ""
readme = "README.md"
authors = []
Expand Down
2 changes: 1 addition & 1 deletion src/flagright/core/client_wrapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ def get_headers(self) -> typing.Dict[str, str]:
headers: typing.Dict[str, str] = {
"X-Fern-Language": "Python",
"X-Fern-SDK-Name": "flagright",
"X-Fern-SDK-Version": "1.6.6",
"X-Fern-SDK-Version": "1.6.7",
}
headers["x-api-key"] = self.api_key
return headers
Expand Down
10 changes: 10 additions & 0 deletions src/flagright/resources/business_users/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ def create(
user_id: str,
created_timestamp: float,
legal_entity: LegalEntity,
activated_timestamp: typing.Optional[float] = OMIT,
user_state_details: typing.Optional[UserStateDetails] = OMIT,
kyc_status_details: typing.Optional[KycStatusDetails] = OMIT,
share_holders: typing.Optional[typing.List[Person]] = OMIT,
Expand Down Expand Up @@ -80,6 +81,8 @@ def create(
- legal_entity: LegalEntity.
- activated_timestamp: typing.Optional[float]. Timestamp when the user was activated
- user_state_details: typing.Optional[UserStateDetails].
- kyc_status_details: typing.Optional[KycStatusDetails].
Expand Down Expand Up @@ -127,6 +130,8 @@ def create(
"createdTimestamp": created_timestamp,
"legalEntity": legal_entity,
}
if activated_timestamp is not OMIT:
_request["activatedTimestamp"] = activated_timestamp
if user_state_details is not OMIT:
_request["userStateDetails"] = user_state_details
if kyc_status_details is not OMIT:
Expand Down Expand Up @@ -223,6 +228,7 @@ async def create(
user_id: str,
created_timestamp: float,
legal_entity: LegalEntity,
activated_timestamp: typing.Optional[float] = OMIT,
user_state_details: typing.Optional[UserStateDetails] = OMIT,
kyc_status_details: typing.Optional[KycStatusDetails] = OMIT,
share_holders: typing.Optional[typing.List[Person]] = OMIT,
Expand Down Expand Up @@ -258,6 +264,8 @@ async def create(
- legal_entity: LegalEntity.
- activated_timestamp: typing.Optional[float]. Timestamp when the user was activated
- user_state_details: typing.Optional[UserStateDetails].
- kyc_status_details: typing.Optional[KycStatusDetails].
Expand Down Expand Up @@ -305,6 +313,8 @@ async def create(
"createdTimestamp": created_timestamp,
"legalEntity": legal_entity,
}
if activated_timestamp is not OMIT:
_request["activatedTimestamp"] = activated_timestamp
if user_state_details is not OMIT:
_request["userStateDetails"] = user_state_details
if kyc_status_details is not OMIT:
Expand Down
10 changes: 10 additions & 0 deletions src/flagright/resources/consumer_users/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ def create(
*,
user_id: str,
created_timestamp: float,
activated_timestamp: typing.Optional[float] = OMIT,
user_details: typing.Optional[UserDetails] = OMIT,
user_state_details: typing.Optional[UserStateDetails] = OMIT,
kyc_status_details: typing.Optional[KycStatusDetails] = OMIT,
Expand Down Expand Up @@ -86,6 +87,8 @@ def create(
- created_timestamp: float. Timestamp when userId is created
- activated_timestamp: typing.Optional[float]. Timestamp when user was activated
- user_details: typing.Optional[UserDetails].
- user_state_details: typing.Optional[UserStateDetails].
Expand Down Expand Up @@ -193,6 +196,8 @@ def create(
)
"""
_request: typing.Dict[str, typing.Any] = {"userId": user_id, "createdTimestamp": created_timestamp}
if activated_timestamp is not OMIT:
_request["activatedTimestamp"] = activated_timestamp
if user_details is not OMIT:
_request["userDetails"] = user_details
if user_state_details is not OMIT:
Expand Down Expand Up @@ -300,6 +305,7 @@ async def create(
*,
user_id: str,
created_timestamp: float,
activated_timestamp: typing.Optional[float] = OMIT,
user_details: typing.Optional[UserDetails] = OMIT,
user_state_details: typing.Optional[UserStateDetails] = OMIT,
kyc_status_details: typing.Optional[KycStatusDetails] = OMIT,
Expand Down Expand Up @@ -338,6 +344,8 @@ async def create(
- created_timestamp: float. Timestamp when userId is created
- activated_timestamp: typing.Optional[float]. Timestamp when user was activated
- user_details: typing.Optional[UserDetails].
- user_state_details: typing.Optional[UserStateDetails].
Expand Down Expand Up @@ -445,6 +453,8 @@ async def create(
)
"""
_request: typing.Dict[str, typing.Any] = {"userId": user_id, "createdTimestamp": created_timestamp}
if activated_timestamp is not OMIT:
_request["activatedTimestamp"] = activated_timestamp
if user_details is not OMIT:
_request["userDetails"] = user_details
if user_state_details is not OMIT:
Expand Down
3 changes: 3 additions & 0 deletions src/flagright/types/business_optional.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@ class BusinessOptional(pydantic.BaseModel):
Model for a business user - optional fields
"""

activated_timestamp: typing.Optional[float] = pydantic.Field(
alias="activatedTimestamp", description="Timestamp when the user was activated"
)
user_state_details: typing.Optional[UserStateDetails] = pydantic.Field(alias="userStateDetails")
kyc_status_details: typing.Optional[KycStatusDetails] = pydantic.Field(alias="kycStatusDetails")
legal_entity: typing.Optional[LegalEntity] = pydantic.Field(alias="legalEntity")
Expand Down
3 changes: 3 additions & 0 deletions src/flagright/types/business_with_rules_result.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,9 @@ class BusinessWithRulesResult(pydantic.BaseModel):
alias="createdTimestamp", description="Timestamp when the user was created"
)
legal_entity: LegalEntity = pydantic.Field(alias="legalEntity")
activated_timestamp: typing.Optional[float] = pydantic.Field(
alias="activatedTimestamp", description="Timestamp when the user was activated"
)
user_state_details: typing.Optional[UserStateDetails] = pydantic.Field(alias="userStateDetails")
kyc_status_details: typing.Optional[KycStatusDetails] = pydantic.Field(alias="kycStatusDetails")
share_holders: typing.Optional[typing.List[Person]] = pydantic.Field(
Expand Down
3 changes: 3 additions & 0 deletions src/flagright/types/user_optional.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,9 @@ class UserOptional(pydantic.BaseModel):
Model for User details
"""

activated_timestamp: typing.Optional[float] = pydantic.Field(
alias="activatedTimestamp", description="Timestamp when user was activated"
)
user_details: typing.Optional[UserDetails] = pydantic.Field(alias="userDetails")
user_state_details: typing.Optional[UserStateDetails] = pydantic.Field(alias="userStateDetails")
kyc_status_details: typing.Optional[KycStatusDetails] = pydantic.Field(alias="kycStatusDetails")
Expand Down
3 changes: 3 additions & 0 deletions src/flagright/types/user_with_rules_result.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,9 @@
class UserWithRulesResult(pydantic.BaseModel):
user_id: str = pydantic.Field(alias="userId", description="Unique user ID")
created_timestamp: float = pydantic.Field(alias="createdTimestamp", description="Timestamp when userId is created")
activated_timestamp: typing.Optional[float] = pydantic.Field(
alias="activatedTimestamp", description="Timestamp when user was activated"
)
user_details: typing.Optional[UserDetails] = pydantic.Field(alias="userDetails")
user_state_details: typing.Optional[UserStateDetails] = pydantic.Field(alias="userStateDetails")
kyc_status_details: typing.Optional[KycStatusDetails] = pydantic.Field(alias="kycStatusDetails")
Expand Down

0 comments on commit 7b39fc6

Please sign in to comment.