From b7c6631a92fdd9cc54d68e12e6ac4f1703a97399 Mon Sep 17 00:00:00 2001 From: Kim Gustyr Date: Fri, 6 Mar 2026 16:23:57 +0000 Subject: [PATCH 1/2] feat: Add `created_date` to `EnvironmentV2IdentityOverride` Aligns with Flagsmith/flagsmith#6863 which stores a creation timestamp in the identity override v2 DynamoDB document. --- src/flagsmith_schemas/dynamodb.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/flagsmith_schemas/dynamodb.py b/src/flagsmith_schemas/dynamodb.py index bc8a9ea9..477b314d 100644 --- a/src/flagsmith_schemas/dynamodb.py +++ b/src/flagsmith_schemas/dynamodb.py @@ -404,3 +404,6 @@ class EnvironmentV2IdentityOverride(TypedDict): """The UUID for this identity, used by `edge-identities` APIs in Core. **INDEXED**.""" feature_state: FeatureState """The feature state override for this identity.""" + created_date: DateTimeStr + """ISO 8601 creation timestamp. Note: might change between updates due to how it's written by Core. + """ From 24700a49ac6e555e3d0a07a997e38da8c1a7a7c8 Mon Sep 17 00:00:00 2001 From: Kim Gustyr Date: Thu, 12 Mar 2026 17:54:04 +0000 Subject: [PATCH 2/2] fix backwards compatibility --- src/flagsmith_schemas/dynamodb.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/flagsmith_schemas/dynamodb.py b/src/flagsmith_schemas/dynamodb.py index 477b314d..4133485b 100644 --- a/src/flagsmith_schemas/dynamodb.py +++ b/src/flagsmith_schemas/dynamodb.py @@ -404,6 +404,6 @@ class EnvironmentV2IdentityOverride(TypedDict): """The UUID for this identity, used by `edge-identities` APIs in Core. **INDEXED**.""" feature_state: FeatureState """The feature state override for this identity.""" - created_date: DateTimeStr + created_date: NotRequired[DateTimeStr] """ISO 8601 creation timestamp. Note: might change between updates due to how it's written by Core. """