Skip to content

Commit 82cd771

Browse files
Automatically update Python SDK
1 parent 7468180 commit 82cd771

File tree

2 files changed

+15
-1
lines changed

2 files changed

+15
-1
lines changed

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
44

55
[project]
66
name = "trophy"
7-
version = "1.0.21"
7+
version = "1.0.22"
88
description = "A Python library for the Trophy API"
99
license = {text = "MIT"}
1010
readme = "README.md"

trophy/types/event_response.py

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,20 @@ class EventResponse(UniversalBaseModel):
5252
A map of points systems by key that were affected by this event.
5353
"""
5454

55+
idempotency_key: typing_extensions.Annotated[
56+
typing.Optional[str], FieldMetadata(alias="idempotencyKey")
57+
] = pydantic.Field(default=None)
58+
"""
59+
The idempotency key used for the event, if one was provided.
60+
"""
61+
62+
idempotent_replayed: typing_extensions.Annotated[
63+
typing.Optional[bool], FieldMetadata(alias="idempotentReplayed")
64+
] = pydantic.Field(default=None)
65+
"""
66+
Whether the event was replayed due to idempotency.
67+
"""
68+
5569
if IS_PYDANTIC_V2:
5670
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(
5771
extra="allow", frozen=True

0 commit comments

Comments
 (0)