Skip to content

Commit

Permalink
Add updated_at and created_at to organization and member models (#203)
Browse files Browse the repository at this point in the history
  • Loading branch information
bgier-stytch authored May 29, 2024
1 parent 3896ee1 commit fa1e61b
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
8 changes: 8 additions & 0 deletions stytch/b2b/models/organizations.py
Original file line number Diff line number Diff line change
Expand Up @@ -235,6 +235,8 @@ class Organization(pydantic.BaseModel):
- scim_active_connections: An array of active [SCIM Connection references](https://stytch.com/docs/b2b/api/scim-connection-object).
- trusted_metadata: An arbitrary JSON object for storing application-specific data or identity-provider-specific data.
- created_at: The timestamp of the Organization's creation. Values conform to the RFC 3339 standard and are expressed in UTC, e.g. `2021-12-29T12:33:09Z`.
- updated_at: The timestamp of when the Organization was last updated. Values conform to the RFC 3339 standard and are expressed in UTC, e.g. `2021-12-29T12:33:09Z`.
- sso_default_connection_id: The default connection used for SSO when there are multiple active connections.
""" # noqa

Expand All @@ -256,6 +258,8 @@ class Organization(pydantic.BaseModel):
allowed_mfa_methods: List[str]
scim_active_connections: List[ActiveSCIMConnection]
trusted_metadata: Optional[Dict[str, Any]] = None
created_at: Optional[datetime.datetime] = None
updated_at: Optional[datetime.datetime] = None
sso_default_connection_id: Optional[str] = None


Expand Down Expand Up @@ -328,6 +332,8 @@ class Member(pydantic.BaseModel):
- untrusted_metadata: An arbitrary JSON object of application-specific data. These fields can be edited directly by the
frontend SDK, and should not be used to store critical information. See the [Metadata resource](https://stytch.com/docs/b2b/api/metadata)
for complete field behavior details.
- created_at: The timestamp of the Member's creation. Values conform to the RFC 3339 standard and are expressed in UTC, e.g. `2021-12-29T12:33:09Z`.
- updated_at: The timestamp of when the Member was last updated. Values conform to the RFC 3339 standard and are expressed in UTC, e.g. `2021-12-29T12:33:09Z`.
""" # noqa

organization_id: str
Expand All @@ -350,6 +356,8 @@ class Member(pydantic.BaseModel):
roles: List[MemberRole]
trusted_metadata: Optional[Dict[str, Any]] = None
untrusted_metadata: Optional[Dict[str, Any]] = None
created_at: Optional[datetime.datetime] = None
updated_at: Optional[datetime.datetime] = None


class SearchQuery(pydantic.BaseModel):
Expand Down
2 changes: 1 addition & 1 deletion stytch/version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "9.5.1"
__version__ = "9.6.0"

0 comments on commit fa1e61b

Please sign in to comment.